Giter Club home page Giter Club logo

thug's Issues

Add requeue socks dependency to Dockerfile for Thug 0.6.1 support

Using the current Dockerfile (which will pull and build Thug 0.6.1)

root@b2bd55d3ee0d:/opt/thug/src# python thug.py -h
Traceback (most recent call last):
  File "thug.py", line 24, in <module>
    from ThugAPI import *
  File "/opt/thug/src/ThugAPI/__init__.py", line 1, in <module>
    from .ThugAPI import ThugAPI
  File "/opt/thug/src/ThugAPI/ThugAPI.py", line 30, in <module>
    from DOM import Window, HTTPSession, DFT, MIMEHandler, SchemeHandler
  File "/opt/thug/src/DOM/Window.py", line 36, in <module>
    from .Navigator import Navigator
  File "/opt/thug/src/DOM/Navigator.py", line 36, in <module>
    from .HTTPSession import AboutBlank, FetchForbidden
  File "/opt/thug/src/DOM/HTTPSession.py", line 21, in <module>
    import requesocks
ImportError: No module named requesocks

Verified that adding requesocks to the pip install line fixes the issue

root@1c4351bb0a4c:/opt/thug/src# python thug.py --version
Thug 0.6.1

I also experienced the same issue when pulling the latest from the honeynet docker registry, not sure if this is the right place to report that issue?

Incomplete image - Missing Magic-file-extensions (0.2)

Without the python-magic (Magic-file-extensions (0.2)) non local analysis doesn't work properly. Installing it from the ubuntu repository solves the problem. Took me a while to realize which package was causing this to not work as expected:

cd /opt/thug/samples; python -m SimpleHTTPServer &

# works fine (local)
python /opt/thug/src/thug.py -l /opt/thug/samples/exploits/4042.html

# doesn't analyze
python /opt/thug/src/thug.py http://localhost:8000/exploits/4042.html

apt-get update && apt-get install python-magic

# works fine (same as local)
python /opt/thug/src/thug.py http://localhost:8000/exploits/4042.html

I'll try to submit a pull request tomorrow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.