Created
March 26, 2015 21:34
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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