Skip to content

Instantly share code, notes, and snippets.

@atucom
Last active November 20, 2020 16:28
Show Gist options
  • Save atucom/311618c7e28f6d451eda8d5a8ec785dd to your computer and use it in GitHub Desktop.
Save atucom/311618c7e28f6d451eda8d5a8ec785dd to your computer and use it in GitHub Desktop.
Quick FTP Server On AWS EC2/Lightsail
# Start an EC2 or lightsail box, change security group permissions to allow all ports (or at least 21,8000-9000)
sudo apt update
sudo apt install -y python3-pip #because we're not 2.7 cavemen
sudo pip3 install pyftpdlib
mkdir /tmp/temp-ftp-dir
sudo python3 -m pyftpdlib --directory=/tmp/temp-ftp-dir --port=21 --write --debug --nat-address=$(curl ifconfig.io)
# Connect from Kali:
pftp example.com
# login as anonymous with whatever password
# Transfer files as you'd like
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment