mushorg / conpot

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

Implementing a custom web interface #557

Closed soso288 closed 3 years ago

soso288 commented 3 years ago

I want conpot to be more realistic and to provide a higher level of interaction. Therefore I tried implementing my own webpage and put it under .../site-packages/conpot/templates/s7-300/http/htdocs/index.html. When I open the page in my browser it can't be loaded and I get this error in conpot: Unbenannt Can somebody help me understand it? I use conpot with virtualenv on Ubuntu 18.04

glaslos commented 3 years ago

Hi, please provide the error message as text, it makes it searchable and more accessible. It seems to be an encoding issue in the html file. Either try to find the issue (character in position 594) or modify the Conpot to ignore encoding errors.

soso288 commented 3 years ago

@glaslos Thank you I was able to solve the problem. I have another two questions:

  1. How can I modify the s7comm.xml file so that I can view the module and component information with plcscan? Plcscan always displays the following error: Unknown TPKT format
  2. How can I modify the modbus.xml so that plcscan gives other output than slave device failure when scanning the honeypot?

Thanks for your help!