mushorg / conpot

ICS/SCADA honeypot
GNU General Public License v2.0
1.23k stars 415 forks source link

FTP not working, commands are async and random responses are returned #573

Open bestrocker221 opened 2 years ago

bestrocker221 commented 2 years ago

Hi, when connecting via FTP towards the default conpot configuration, commands and response are randomly returned.

To Reproduce

  1. conpot default template
  2. ftp 2121
  3. ls multiple times

Expected behavior

ftp> ls
150 Here comes the directory listing.
-rwxrwxrwx   1 nobody   ftp            49 Aug 01  2018 ftp_data.txt

Received:

ftp> ls
226 Transfer complete.
200 PORT Command Successful. Consider using PASV.
ftp> ls
150 Here comes the directory listing.
ftp> ls
226 Directory send OK.
200 PORT Command Successful. Consider using PASV.
ftp> ls
150 Here comes the directory listing.
ftp> ls
226 Directory send OK.
226 Transfer complete.
ftp> ls
150 Here comes the directory listing.
ftp> ls
226 Directory send OK.
501 Invalid PORT format.
ftp> ls
200 PORT Command Successful. Consider using PASV.
150 Here comes the directory listing.
-rwxrwxrwx   1 nobody   ftp            49 Aug 01  2018 ftp_data.txt
226 Directory send OK.
ftp> ls
226 Transfer complete.
200 PORT Command Successful. Consider using PASV.
ftp> ls
150 Here comes the directory listing.
ftp> ls
226 Directory send OK.
501 Invalid PORT format.

Desktop (please complete the following information):