qeeqbox / honeypots

30 different honeypots in one package! (dhcp, dns, elastic, ftp, http proxy, https proxy, http, https, imap, ipp, irc, ldap, memcache, mssql, mysql, ntp, oracle, pjl, pop3, postgres, rdp, redis, sip, smb, smtp, snmp, socks5, ssh, telnet, vnc)
GNU Affero General Public License v3.0
697 stars 111 forks source link

No output being produced #74

Open antoniolm23 opened 2 months ago

antoniolm23 commented 2 months ago

I had installed honeypots from pip3 in python virtual env on Ubunut Server 24.04.

Whenever I run the command:

./venv/bin/python3 -m honeypots --setup all

nothing happens, simply a new prompt is being issued. Tried to have a verbose output, but there seems to be nothing wrong. How can I solve?

sysfu commented 2 months ago

Reproduced this problem on a fresh install within Ubuntu server 24.04 LTS VM.

Try using the python3 -v option and capturing the output into a text file.

I did so with this command for my setup

/var/opt/honeypots/bin/python3 -v -m honeypots --setup all &> /tmp/honeypots.log

Examining the output, it does seem to crap right after trying to import psycopg2.sql

# /var/opt/honeypots/lib/python3.12/site-packages/psycopg2/__pycache__/sql.cpython-312.pyc matches /var/opt/honeypots/lib/python3.12/site-packages/psycopg2/sql.py
# code object from '/var/opt/honeypots/lib/python3.12/site-packages/psycopg2/__pycache__/sql.cpython-312.pyc'
import 'psycopg2.sql' # <_frozen_importlib_external.SourceFileLoader object at 0x7bb67f44d100>
# cleanup[2] removing sys

honeypots.log

giga-a commented 2 months ago

Hi @sysfu and @antoniolm23 - How did you install that honeypot package? Is that v0.66?

sysfu commented 2 months ago

Hi @sysfu and @antoniolm23 - How did you install that honeypot package? Is that v0.66?

Honeypots pip pkg version is 0.65.

Installed it via pip with these commands

sudo apt install -y python3-pip libpq-dev python3.12-venv
cd /var/opt/; sudo python3 -m venv honeypots
sudo /var/opt/honeypots/bin/pip3 install honeypots
giga-a commented 2 months ago

@sysfu I did remove the psycopg2 package in v0.66 - I'm going to push that update to pypi

giga-a commented 2 months ago

Done, could you please check the new package 0.66

sysfu commented 2 months ago

Package successfully updated and here is the terminal output now of v0.66 /var/opt/honeypots/bin/python3 -m honeypots --setup all

Traceback (most recent call last):
  File "<frozen runpy>", line 189, in _run_module_as_main
  File "<frozen runpy>", line 148, in _get_module_details
  File "<frozen runpy>", line 112, in _get_module_details
  File "/var/opt/honeypots/lib/python3.12/site-packages/honeypots/__init__.py", line 30, in <module>
    from .sniffer import QSniffer
  File "/var/opt/honeypots/lib/python3.12/site-packages/honeypots/sniffer.py", line 10, in <module>
    from scapy.layers.inet import IP, TCP
  File "/var/opt/honeypots/lib/python3.12/site-packages/scapy/layers/inet.py", line 20, in <module>
    from scapy.utils import checksum, do_graph, incremental_label, \
  File "/var/opt/honeypots/lib/python3.12/site-packages/scapy/utils.py", line 33, in <module>
    from scapy.modules.six.moves import range, input, zip_longest
ModuleNotFoundError: No module named 'scapy.modules.six.moves'

Full python3 -v output log attached hpsetupverbose.log