aikinci / thug Goto Github PK
View Code? Open in Web Editor NEWA dockerized Thug https://github.com/buffer/thug instance
License: GNU General Public License v2.0
A dockerized Thug https://github.com/buffer/thug instance
License: GNU General Public License v2.0
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.