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)
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)
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)
def __init__(self, url, debug=False, debugCodePaths=False, debugWamp=False): WebSocketServerFactory.__init__(self, url, protocols=["wamp"], debug=debug, debugCodePaths=debugCodePaths) self.debugWamp = debugWamp
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)
def __init__(self, url, debug = False, debugCodePaths = False, debugWamp = False): WebSocketServerFactory.__init__(self, url, protocols = ["wamp"], debug = debug, debugCodePaths = debugCodePaths) self.debugWamp = debugWamp
def __init__(self, debug = False, outdir = "reports/clients"): WebSocketServerFactory.__init__(self, debug = debug) FuzzingFactory.__init__(self, debug = debug, outdir = outdir)
def __init__(self, debug = False, debug_autobahn = False): WebSocketServerFactory.__init__(self, debug = debug) self.debug_autobahn = debug_autobahn