Skip to content

Instantly share code, notes, and snippets.

@krmaxwell
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save krmaxwell/9122733 to your computer and use it in GitHub Desktop.
Save krmaxwell/9122733 to your computer and use it in GitHub Desktop.
Running thug under docker on EC2
  1. Started an EC2 instance using Docker instructions
  2. Installed thug with sudo docker pull jnazario/thug
  3. Created directory in my home named thuglogs (can be anything)
  4. alias thug='docker run -w /usr/local/src/thug/src -v /home/ubuntu/thuglogs:/usr/local/src/thug/logs jnazario/thug python thug.py'
  5. thug -r http://example.net/myreferer http://evil.example.com/badstuffhere
  6. Logs will go in /home/ubuntu/thuglogs or whatever directory you specify in the alias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment