Jump to content

Running a ICS/SCADA Honeypot on a Raspberry Pi


Anonymous123

Recommended Posts

I first ran this command sudo apt-get install libsmi2ldbl snmp-mibs-downloader python-dev libevent-dev libxslt1-dev libxml2-dev and it ran fine but then I tried to install conpot with sudo pip install conpot I got an error. I am stuck. Please help!


Welcome to Ubuntu 15.04 (GNU/Linux 3.18.0-20-rpi2 armv7l)


* Documentation: https://help.ubuntu.com/


2 packages can be updated.

0 updates are security updates.


Last login: Sat Jul 11 20:09:45 2015 from 192.168.1.103

anonymous@anonymous-desktop:~$ clear


anonymous@anonymous-desktop:~$ sudo pip install conpot

[sudo] password for anonymous:

Downloading/unpacking conpot

Downloading Conpot-0.4.0.tar.gz (97kB): 97kB downloaded

Running setup.py (path:/tmp/pip-build-3xfyDP/conpot/setup.py) egg_info for package conpot


Downloading/unpacking gevent>=1.0 (from conpot)

Downloading gevent-1.0.2.tar.gz (1.7MB): 1.7MB downloaded

Running setup.py (path:/tmp/pip-build-3xfyDP/gevent/setup.py) egg_info for package gevent


Downloading/unpacking pysnmp>=4.2.4 (from conpot)

Downloading pysnmp-4.2.5.tar.gz (225kB): 225kB downloaded

Running setup.py (path:/tmp/pip-build-3xfyDP/pysnmp/setup.py) egg_info for package pysnmp


Requirement already satisfied (use --upgrade to upgrade): lxml in /usr/lib/python2.7/dist-packages (from conpot)

Downloading/unpacking bottle (from conpot)

Downloading bottle-0.12.8.tar.gz (69kB): 69kB downloaded

Running setup.py (path:/tmp/pip-build-3xfyDP/bottle/setup.py) egg_info for package bottle


Downloading/unpacking jinja2 (from conpot)

Downloading Jinja2-2.7.3.tar.gz (378kB): 378kB downloaded

Running setup.py (path:/tmp/pip-build-3xfyDP/jinja2/setup.py) egg_info for package jinja2


warning: no files found matching '*' under directory 'custom_fixers'

warning: no previously-included files matching '*' found under directory 'docs/_build'

warning: no previously-included files matching '*.pyc' found under directory 'jinja2'

warning: no previously-included files matching '*.pyc' found under directory 'docs'

warning: no previously-included files matching '*.pyo' found under directory 'jinja2'

warning: no previously-included files matching '*.pyo' found under directory 'docs'

Downloading/unpacking beautifulsoup4 (from conpot)

Downloading beautifulsoup4-4.4.0-py2-none-any.whl (81kB): 81kB downloaded

Requirement already satisfied (use --upgrade to upgrade): requests in /usr/lib/python2.7/dist-packages (from conpot)

Downloading/unpacking sphinx (from conpot)

Downloading Sphinx-1.3.1-py2.py3-none-any.whl (1.3MB): 1.3MB downloaded

Downloading/unpacking libtaxii>=1.1.0 (from conpot)

Downloading libtaxii-1.1.106.tar.gz (132kB): 132kB downloaded

Running setup.py (path:/tmp/pip-build-3xfyDP/libtaxii/setup.py) egg_info for package libtaxii


warning: no files found matching 'README.md'

warning: no previously-included files matching '*.pyc' found under directory 'docs'

warning: no previously-included files matching '*.pyo' found under directory 'docs'

no previously-included directories found matching 'docs/_build'

Downloading/unpacking MySQL-python (from conpot)

Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded

Running setup.py (path:/tmp/pip-build-3xfyDP/MySQL-python/setup.py) egg_info for package MySQL-python

sh: 1: mysql_config: not found

Traceback (most recent call last):

File "<string>", line 17, in <module>

File "/tmp/pip-build-3xfyDP/MySQL-python/setup.py", line 17, in <module>

metadata, options = get_config()

File "setup_posix.py", line 43, in get_config

libs = mysql_config("libs_r")

File "setup_posix.py", line 25, in mysql_config

raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

Complete output from command python setup.py egg_info:

sh: 1: mysql_config: not found


Traceback (most recent call last):


File "<string>", line 17, in <module>


File "/tmp/pip-build-3xfyDP/MySQL-python/setup.py", line 17, in <module>


metadata, options = get_config()


File "setup_posix.py", line 43, in get_config


libs = mysql_config("libs_r")


File "setup_posix.py", line 25, in mysql_config


raise EnvironmentError("%s not found" % (mysql_config.path,))


EnvironmentError: mysql_config not found


----------------------------------------

Cleaning up...

Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-3xfyDP/MySQL-python

Storing debug log for failure in /home/anonymous/.pip/pip.log

anonymous@anonymous-desktop:~$


Link to comment
Share on other sites

Thank you but now I am getting this error. sudo conpot --template default

_

___ ___ ___ ___ ___| |_

| _| . | | . | . | _|

|___|___|_|_| _|___|_|

|_|

Version 0.4.0

Glastopf Project

2015-07-12 09:17:07,191 Starting Conpot using template: /usr/local/lib/python2.7/dist-packages/conpot/templates/default

2015-07-12 09:17:07,192 Starting Conpot using configuration found in: /usr/local/lib/python2.7/dist-packages/conpot/conpot.cfg

2015-07-12 09:17:07,251 Starting new HTTP connection (1): www.telize.com

2015-07-12 09:17:07,510 Fetched 208.58.43.151 as external ip.

Traceback (most recent call last):

File "/usr/local/bin/conpot", line 331, in <module>

main()

File "/usr/local/bin/conpot", line 260, in main

server = server_class(protocol_template, root_template_directory, args)

File "/usr/local/lib/python2.7/dist-packages/conpot/protocols/modbus/modbus_server.py", line 34, in __init__

self._configure_slaves(template)

File "/usr/local/lib/python2.7/dist-packages/conpot/protocols/modbus/modbus_server.py", line 41, in _configure_slaves

slave = self.add_slave(slave_id)

File "/usr/local/lib/python2.7/dist-packages/modbus_tk/modbus.py", line 889, in add_slave

return self._databank.add_slave(slave_id, unsigned)

TypeError: add_slave() takes exactly 2 arguments (3 given)

anonymous@anonymous-desktop:~$

Edited by rpiswag
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...