Skip to content

Instantly share code, notes, and snippets.

@reachtarunhere
Created March 26, 2015 21:34
Show Gist options
  • Save reachtarunhere/f20375f2c9343fe8c05a to your computer and use it in GitHub Desktop.
Save reachtarunhere/f20375f2c9343fe8c05a to your computer and use it in GitHub Desktop.
A dead simple demo of Thug API based on thug.py file in thug
import logging
from ThugAPI import ThugAPI
log = logging.getLogger("Thug")
class Thug(ThugAPI):
def __init__(self, args):
ThugAPI.__init__(self, args)
def analyze(self):
self.log_init('http://google.com')
self.run_remote('http://google.com')
#self.set_log_output('/myoutput.txt')
self.log_event()
return log
Thug(None)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment