For the complete documentation index, see llms.txt. This page is also available as Markdown.

Transfering Files

Validating File Transfers

After transferring a file, confirm type and integrity:

# Linux — check file type
file shell
# e.g. shell: ELF 64-bit LSB executable, x86-64 ...

# Linux — MD5 hash
md5sum shell

# Windows — MD5 hash
Get-FileHash C:\Users\Public\file.exe -Algorithm MD5

Hashes must match on both sides; if not, re-transfer.


Nginx PUT Upload Server

# /etc/nginx/sites-available/upload.conf
server {
    listen 9001;
    location /SecretUploadDirectory/ {
        root    /var/www/uploads;
        dav_methods PUT;
    }
}

Sub-Pages

Page
Covers

Net.WebClient, Invoke-WebRequest, BITS, Base64, PSUpload, WinRM, COM objects, AES encryption, evasion

wget, curl, fileless, bash /dev/tcp, base64, SCP, OpenSSL

http.server, uploadserver, download/upload one-liners

PHP web server, download one-liners, upload receiver

Ruby web server, Ruby/Perl download one-liners

Impacket SMB server, Windows copy, WebDav

pyftpdlib, PowerShell FTP, FTP command files

nc/ncat send/receive, /dev/tcp, gzip compression

CertUtil, Bitsadmin, CertReq, RDP mount, cscript JS/VBS, LOLBINs

Last updated