mushorg / conpot

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

getting error during enip port scanning #440

Closed prashantvidja closed 4 years ago

prashantvidja commented 5 years ago

Hello,

I have deploy conpot docker image. But when I scanning 44818 port of enip using nmap using below coomand.

nmap -p 44818 -A -v -Pn [MY_IP]

I am getting below exception.

Failed with exception: Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/lmntrixdecoy/protocols/enip/enip_server.py", line 163, in handle_tcp File "/usr/local/lib/python3.6/dist-packages/cpppo/automata.py", line 645, in run source=source, machine=machine, path=path, data=data, ending=ending ): File "/usr/local/lib/python3.6/dist-packages/cpppo/automata.py", line 1226, in delegate for which,target in submach: # 75% of runtime is spent inside 'run' File "/usr/local/lib/python3.6/dist-packages/cpppo/automata.py", line 645, in run source=source, machine=machine, path=path, data=data, ending=ending ): File "/usr/local/lib/python3.6/dist-packages/cpppo/automata.py", line 1226, in delegate for which,target in submach: # 75% of runtime is spent inside 'run' File "/usr/local/lib/python3.6/dist-packages/cpppo/automata.py", line 645, in run source=source, machine=machine, path=path, data=data, ending=ending ): File "/usr/local/lib/python3.6/dist-packages/cpppo/automata.py", line 1226, in delegate for which,target in submach: # 75% of runtime is spent inside 'run' File "/usr/local/lib/python3.6/dist-packages/cpppo/automata.py", line 610, in run "%s detected no progress before finding acceptable symbol" % ( self ) AssertionError: ((byte)) detected no progress before finding acceptable symbol

Please help me.

Thanks.

JesseBowling commented 4 years ago

I'd also like to know if this is something that should be fixed. In an nearly identical scenario I'm seeing these errors. I'm actually trying to figure out why connections to this port don't result in messages being send to the hpfeeds logging mechanism; no messages are sent for this port almost all of the logging for these connections is filled with tracebacks.

prashantvidja commented 4 years ago

Hi, I have fixed the issue by making some changes. Please check below enip_server.py file. enip_server.zip

adepasquale commented 4 years ago

@prashantvidja so you basically added a session?

Please make a pull request instead of uploading a zip file