honeynet / riotpot

the IoT and OT (Operational Technology) Honeypot
MIT License
18 stars 4 forks source link

Added high-level FTP service #29

Closed eltsai closed 1 year ago

eltsai commented 1 year ago

I am using alpine-ftp-server, since it is a vsftpd server and supports SFTP - in case in the future we want SFTP service, we can just modify it.

Below are the tests for the FTP server (including login, ls, cd and put)

Connected to localhost.
220 Welcome Alpine ftp server https://hub.docker.com/r/delfer/alpine-ftp-server/
Name (localhost:username): ftpuser
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
227 Entering Passive Mode (172,27,0,2,82,8).
150 Here comes the directory listing.
226 Directory send OK.
ftp> pwd
257 "/ftp/ftpuser" is the current directory
ftp> put /home/username/test.json /ftp/ftpuser/test.json
local: /home/username/test.json remote: /ftp/ftpuser/test.json
227 Entering Passive Mode (172,27,0,2,82,13).
150 Ok to send data.
226 Transfer complete.
17 bytes sent in 0.00 secs (368.9236 kB/s)