UPLOAD - andreydiveev/wiki GitHub Wiki

Netcat receive:

nc -l -p 1234 > out.file

Netcat send:

pv out.file | nc -w 3 <host> 1234

PHP upload scribe:

<?php
$target_path = "uploads/";
$target_path = $target_path . basename( $_FILES['uploadedfile']['name']); 
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".  basename( $_FILES['uploadedfile']['name']). " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
}

Curl upload command:

curl -F "uploadedfile=@/path/to/my/file" http://mywebserver.com/uploads.php
⚠️ **GitHub.com Fallback** ⚠️