Last active
November 20, 2020 16:28
-
-
Save atucom/311618c7e28f6d451eda8d5a8ec785dd to your computer and use it in GitHub Desktop.
Quick FTP Server On AWS EC2/Lightsail
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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