예제 #1
0
 def __init__(self, args):
     self.args = args
     self.thug_version = __thug_version__
     log.ThugOpts = ThugOpts()
     log.ThugVulnModules = ThugVulnModules()
     log.MIMEHandler = MIMEHandler.MIMEHandler()
     log.SchemeHandler = SchemeHandler.SchemeHandler()
     log.JSClassifier = JSClassifier.JSClassifier()
     log.URLClassifier = URLClassifier.URLClassifier()
예제 #2
0
 def __init__(self, args):
     self.args = args
     self.thug_version = __thug_version__
     log.ThugOpts = ThugOpts()
     log.ThugVulnModules = ThugVulnModules()
     log.WebTracking = WebTracking.WebTracking()
     log.MIMEHandler = MIMEHandler.MIMEHandler()
     log.SchemeHandler = SchemeHandler.SchemeHandler()
     log.JSClassifier = JSClassifier.JSClassifier()
     log.URLClassifier = URLClassifier.URLClassifier()
     log.SampleClassifier = SampleClassifier.SampleClassifier()
     log.Encoding = Encoding.Encoding()
예제 #3
0
파일: ThugAPI.py 프로젝트: mshirley/thug
 def __init__(self, args, configuration_path = None):
     self.args               = args
     self.thug_version       = __thug_version__
     log.configuration_path  = configuration_path
     log.personalities_path  = os.path.join(configuration_path, "personalities") if configuration_path else None
     log.ThugOpts            = ThugOpts()
     log.ThugVulnModules     = ThugVulnModules()
     log.WebTracking         = WebTracking.WebTracking()
     log.MIMEHandler         = MIMEHandler.MIMEHandler()
     log.SchemeHandler       = SchemeHandler.SchemeHandler()
     log.JSClassifier        = JSClassifier.JSClassifier()
     log.URLClassifier       = URLClassifier.URLClassifier()
     log.SampleClassifier    = SampleClassifier.SampleClassifier()
     log.Encoding            = Encoding.Encoding()
예제 #4
0
from DOM import Window, DFT
from DOM.W3C import w3c

from DOM import MIMEHandler, SchemeHandler

from ThugAPI.ThugOpts import ThugOpts
from ThugAPI.ThugVulnModules import ThugVulnModules

consolehandler = logging.StreamHandler()
logging.getLogger().addHandler(consolehandler)
logging.getLogger().setLevel(logging.WARNING)

log = logging.getLogger("Thug")
log.ThugOpts = ThugOpts()
log.ThugVulnModules = ThugVulnModules()
log.MIMEHandler = MIMEHandler.MIMEHandler()
log.SchemeHandler = SchemeHandler.SchemeHandler()

html = '''
<html>
    <head>
        <title>Foo Title</title>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.js"></script>
        <ript type="text/javascript" src="http://www.download.am/assets/js/prototype.js"></ript>
    </head>
    <body>
        <div id="foo">bar</div>
        <script type="text/javascript">
            document.write("f**k");
            //$('#foo').html('mighty!');
            $('#foo').html('mighty!');