No module named honssh.config
stuartt44 opened this issue · 5 comments
Hi,
Im a complete Linux noob and as part of a uni project need to setup HonSSH, I believe I've installed everything correctly and when starting to start honssh I keep getting the subject error.
Been following this guide (but on host rather than virtual env):
https://www.linkedin.com/pulse/analyse-your-attackers-vectors-ssh-honey-pot-robert-putt
There is a honssh.cfg file so not really sure what to do. Is this the file its referring to or is there another file in a different location?
Hi @stuartt44
This appears to be a PYTHONPATH issue to me. Try typing pwd whilst in the top level of your HonSSH git clone and then exporting the environment variable with your pwd, then try re-running HonSSH.
e.g.
Roberts-MacBook-Pro:honssh robe8437$ pwd
/Users/robe8437/Documents/Python/projects/honssh
Roberts-MacBook-Pro:honssh robe8437$ export PYTHONPATH=/Users/robe8437/Documents/Python/projects/honssh
Roberts-MacBook-Pro:honssh robe8437$
BTW that article is almost 2 years old now, you might be better off checking out the docs in the wiki in here instead... https://github.com/tnich/honssh/wiki/Deployment-Guide
Best Regards,
Rob
Thanks for answering, I've done that - pythonpath="/root/honssh" and still get the same error. Any other ideas?
I've looked at those pages and they're not really helpful for newbies like myself that have very limited Linux knowledge, I can essentially install stuff and navigate the files, but would have no idea how to install and actually start HonSSH.
Hi @stuartt44
Is your host listening publicly on the internet? I'd be more than happy to SSH in and take a poke at this for you as I am guessing time is of the essence due to it being a university project.
Best Regards,
Rob
Hi @stuartt44
And I have the same problem about the PYTHONPATH.
export PYTHONPATH="$PYTHONPATH:/folder/to/honssh"
and export PYTHONPATH=/path/to/honssh
are not work for me, too. (idk why...)
Anyway, python scripts are easy to debug.
Try to fix bugs
In honssh.tac, add sys.path.append('/path/to/honssh')
before loading honssh.config module.
And then, No module named GeoIP occurred in output_handler.py.
pip install GeoIP
key problem, cant find the signature? I forgot the error message.
pip install -U pyopenssl
Hope you can fix the problem and sorry for my poor English.
Modifying honssh.tac works for me.
Thanks!!!