mushorg / conpot

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

Unable to run IPMI #481

Open Rajeshinfosec opened 4 years ago

Rajeshinfosec commented 4 years ago

Hi, i am trying to run the conpot with IPIM template. it is showing below error. Can you please have a look at the below error. could you please guide me.

WARNING:root:--force option specified. Using testing configuration
2020-03-11 13:31:00,371 --force option specified. Using testing configuration
2020-03-11 13:31:00,372 Starting Conpot using template: /home/testing/conpot/lib/python3.6/site-packages/conpot/templates/ipmi
2020-03-11 13:31:00,373 Starting Conpot using configuration found in: /home/testing/conpot/lib/python3.6/site-packages/conpot/testing.cfg
2020-03-11 13:31:00,377 Can't find the temp directory. Conpot VFS would be kept at : /home/testing/conpot/lib/python3.6/site-packages/conpot/ConpotTempFS
WARNING:conpot.core.virtual_fs:Using default FS path. tar:///home/testing/conpot/lib/python3.6/site-packages/conpot/data.tar
2020-03-11 13:31:00,378 Using default FS path. tar:///home/testing/conpot/lib/python3.6/site-packages/conpot/data.tar
2020-03-11 13:31:00,380 Initializing Virtual File System at /home/testing/conpot/lib/python3.6/site-packages/conpot/ConpotTempFS/__conpot__mndmzsbo. Source specified : tar:///home/testing/conpot/lib/python3.6/site-packages/conpot/data.tar
 Please wait while the system copies all specified files
2020-03-11 13:31:05,955 Fetched 14.143.79.206 as external ip.
2020-03-11 13:31:05,959 IPMI BMC initialized.
2020-03-11 13:31:05,959 Conpot IPMI initialized using /home/testing/conpot/lib/python3.6/site-packages/conpot/templates/ipmi/ipmi/ipmi.xml template
2020-03-11 13:31:05,959 Found and enabled ('ipmi', <conpot.protocols.ipmi.ipmi_server.IpmiServer object at 0x7f8b14a5df28>) protocol.
2020-03-11 13:31:05,961 No proxy template found. Service will remain unconfigured/stopped.
Traceback (most recent call last):
  File "src/gevent/greenlet.py", line 766, in gevent._greenlet.Greenlet.run
  File "/home/testing/conpot/lib/python3.6/site-packages/conpot/protocols/ipmi/ipmi_server.py", line 437, in start
    self.sock.bind(connection)
PermissionError: [Errno 1] Operation not permitted
2020-03-11T08:01:06Z <Greenlet at 0x7f8b1538de48: <bound method IpmiServer.start of <conpot.protocols.ipmi.ipmi_server.IpmiServer object at 0x7f8b14a5df28>>('0.0.0.0', 623)> failed with PermissionError

ERROR:root:Stopping because <Greenlet at 0x7f8b1538de48: <bound method IpmiServer.start of <conpot.protocols.ipmi.ipmi_server.IpmiServer object at 0x7f8b14a5df28>>('0.0.0.0', 623)> died: [Errno 1] Operation not permitted
2020-03-11 13:31:06,021 Stopping because <Greenlet at 0x7f8b1538de48: <bound method IpmiServer.start of <conpot.protocols.ipmi.ipmi_server.IpmiServer object at 0x7f8b14a5df28>>('0.0.0.0', 623)> died: [Errno 1] Operation not permitted
(conpot) testing@ubuntu:~$
xandfury commented 4 years ago

For binding port 623 you need sudo permissions. Since we do not recommend running conpot as root user, you can either: