mushorg / conpot

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

conpot run error #585

Closed ringringboy closed 10 months ago

ringringboy commented 10 months ago
Ubuntu18.04 + conpot0.6 + python3.6 + virtualenv
(conpot-env) syr@syr:~/desktop/conpot-env$ conpot --template default
/home/syr/desktopconpot-env/lib/python3.6/site-packages/pyghmi/ipmi/private/session.py:29: CryptographyDeprecationWarning: Python 3.6 is no longer supported by the Python core team. Therefore, support for it is deprecated in cryptography. The next release of cryptography will remove support for Python 3.6.
  from cryptography.hazmat.backends import default_backend
Traceback (most recent call last):
  File "/home/syr/desktop/conpot-env/bin/conpot", line 45, in <module>
    from conpot.protocols.IEC104.IEC104_server import IEC104Server
  File "/home/syr/desktop/conpot-env/lib/python3.6/site-packages/conpot/protocols/IEC104/IEC104_server.py", line 17, in <module>
    from conpot.protocols.IEC104.DeviceDataController import DeviceDataController
  File "/home/syr/desktop/conpot-env/lib/python3.6/site-packages/conpot/protocols/IEC104/DeviceDataController.py", line 19, in <module>
    from conpot.protocols.IEC104.frames import *
  File "/home/syr/desktop/conpot-env/lib/python3.6/site-packages/conpot/protocols/IEC104/frames.py", line 258, in <module>
    class QOS(Packet):
  File "/home/syr/desktop/conpot-env/lib/python3.6/site-packages/scapy/base_classes.py", line 345, in __new__
    for f in dct["fields_desc"]
  File "/home/syr/desktop/conpot-env/lib/python3.6/site-packages/scapy/base_classes.py", line 345, in <listcomp>
    for f in dct["fields_desc"]
  File "/usr/lib/python3.6/inspect.py", line 2488, in __init__
    raise ValueError('{!r} is not a valid parameter name'.format(name))
ValueError: 'S/E' is not a valid parameter name

I only use

pip3 install conpot
conpot --template default
HantaoGG commented 3 months ago

@ringringboy Pls how did you solve this problem, I had the same problem Thank you very much

HantaoGG commented 3 months ago

@ringringboy I also wanted to ask you if your MAC address modification feature is available, it's at the very bottom of test.cfg

ringringboy commented 3 months ago

@ringringboy I would also like to ask you if your MAC address modification feature is available?

Sorry for not visiting git-hub for a long time, I just saw your reply today! (1) I used the command "conpot -f -t default" and it worked! (2) I scanned my conpot with Nmap and it showed the MAC address, but I didn't resolve it.

(If you're interested, you can visit my CSDN blog post, which I'm sure will be helpful! ) https://blog.csdn.net/qq_43629220/article/details/134817688?spm=1001.2014.3001.5501