Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No output being produced #74

Open
antoniolm23 opened this issue Sep 20, 2024 · 6 comments
Open

No output being produced #74

antoniolm23 opened this issue Sep 20, 2024 · 6 comments

Comments

@antoniolm23
Copy link

antoniolm23 commented Sep 20, 2024

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
Copy link

sysfu commented Sep 20, 2024

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
Copy link
Member

giga-a commented Sep 24, 2024

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

@sysfu
Copy link

sysfu commented Sep 24, 2024

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
Copy link
Member

giga-a commented Sep 24, 2024

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

@giga-a
Copy link
Member

giga-a commented Sep 24, 2024

Done, could you please check the new package 0.66

@giga-a giga-a closed this as completed Sep 24, 2024
@sysfu
Copy link

sysfu commented Sep 24, 2024

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

@giga-a giga-a reopened this Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants