コード例 #1
0
ファイル: fuzzing.py プロジェクト: zaphoyd/Autobahn
    def __init__(self, spec):

        debug = spec.get("debug", False)
        debugCodePaths = spec.get("debugCodePaths", False)

        WebSocketServerFactory.__init__(self, debug=debug, debugCodePaths=debugCodePaths)
        FuzzingFactory.__init__(self, debug=debug, outdir=spec.get("outdir", "./reports/clients/"))

        ## WebSocket session parameters
        ##
        self.setSessionParameters(
            url=spec["url"],
            protocols=spec.get("protocols", []),
            server="AutobahnWebSocketsTestSuite/%s" % autobahn.version,
        )

        ## WebSocket protocol options
        ##
        self.setProtocolOptions(**spec.get("options", {}))

        self.spec = spec
        self.specCases = parseSpecCases(self.spec)
        self.specExcludeAgentCases = parseExcludeAgentCases(self.spec)
        print "Autobahn WebSockets %s Fuzzing Server" % autobahn.version
        print "Ok, will run %d test cases for any clients connecting" % len(self.specCases)
        print "Cases = %s" % str(self.specCases)
コード例 #2
0
    def __init__(self, spec):

        debug = spec.get("debug", False)
        debugCodePaths = spec.get("debugCodePaths", False)

        WebSocketServerFactory.__init__(self,
                                        debug=debug,
                                        debugCodePaths=debugCodePaths)
        FuzzingFactory.__init__(self,
                                debug=debug,
                                outdir=spec.get("outdir",
                                                "./reports/clients/"))

        ## WebSocket session parameters
        ##
        self.setSessionParameters(url=spec["url"],
                                  protocols=spec.get("protocols", []),
                                  server="AutobahnWebSocketsTestSuite/%s" %
                                  autobahn.version)

        ## WebSocket protocol options
        ##
        self.setProtocolOptions(**spec.get("options", {}))

        self.spec = spec
        self.specCases = parseSpecCases(self.spec)
        self.specExcludeAgentCases = parseExcludeAgentCases(self.spec)
        print "Autobahn WebSockets %s Fuzzing Server" % autobahn.version
        print "Ok, will run %d test cases for any clients connecting" % len(
            self.specCases)
        print "Cases = %s" % str(self.specCases)
コード例 #3
0
   def __init__(self, spec, debug = False, outdir = "reports/clients"):

      WebSocketServerFactory.__init__(self, debug = debug)
      FuzzingFactory.__init__(self, debug = debug, outdir = outdir)

      self.spec = spec
      self.specCases = parseSpecCases(self.spec)
      print "Autobahn WebSockets %s Fuzzing Server" % autobahn.version
      print "Ok, will run %d test cases for any clients connecting" % len(self.specCases)
      print "Cases = %s" % str(self.specCases)
コード例 #4
0
 def __init__(self,
              url,
              debug=False,
              debugCodePaths=False,
              debugWamp=False):
     WebSocketServerFactory.__init__(self,
                                     url,
                                     protocols=["wamp"],
                                     debug=debug,
                                     debugCodePaths=debugCodePaths)
     self.debugWamp = debugWamp
コード例 #5
0
    def __init__(self, spec, debug=False, outdir="reports/clients"):

        WebSocketServerFactory.__init__(self, debug=debug)
        FuzzingFactory.__init__(self, debug=debug, outdir=outdir)

        self.spec = spec
        self.specCases = parseSpecCases(self.spec)
        print "Autobahn WebSockets %s Fuzzing Server" % autobahn.version
        print "Ok, will run %d test cases for any clients connecting" % len(
            self.specCases)
        print "Cases = %s" % str(self.specCases)
コード例 #6
0
ファイル: wamp.py プロジェクト: hansent/Autobahn
 def __init__(self, url, debug = False, debugCodePaths = False, debugWamp = False):
    WebSocketServerFactory.__init__(self, url, protocols = ["wamp"], debug = debug, debugCodePaths = debugCodePaths)
    self.debugWamp = debugWamp
コード例 #7
0
ファイル: fuzzing.py プロジェクト: Frikanalen/mltplayout
 def __init__(self, debug = False, outdir = "reports/clients"):
    WebSocketServerFactory.__init__(self, debug = debug)
    FuzzingFactory.__init__(self, debug = debug, outdir = outdir)
コード例 #8
0
ファイル: autobahn.py プロジェクト: chadselph/Autobahn
 def __init__(self, debug = False, debug_autobahn = False):
    WebSocketServerFactory.__init__(self, debug = debug)
    self.debug_autobahn = debug_autobahn
コード例 #9
0
 def __init__(self, debug = False, debug_autobahn = False):
    WebSocketServerFactory.__init__(self, debug = debug)
    self.debug_autobahn = debug_autobahn