add local web server to fuzzing_server
This commit is contained in:
@@ -19,12 +19,22 @@
|
||||
import sys
|
||||
from twisted.python import log
|
||||
from twisted.internet import reactor
|
||||
from twisted.web.server import Site
|
||||
from twisted.web.static import File
|
||||
from autobahn.fuzzing import FuzzingServerFactory
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
log.startLogging(sys.stdout)
|
||||
factory = FuzzingServerFactory(debug = False, outdir = "reports/clients")
|
||||
reactor.listenTCP(9001, factory)
|
||||
|
||||
## fuzzing server
|
||||
fuzzer = FuzzingServerFactory(debug = False, outdir = "reports/clients")
|
||||
reactor.listenTCP(9001, fuzzer)
|
||||
|
||||
## web server
|
||||
webdir = File(".")
|
||||
web = Site(webdir)
|
||||
reactor.listenTCP(9090, web)
|
||||
|
||||
reactor.run()
|
||||
|
||||
22
testsuite/websockets/index.html
Normal file
22
testsuite/websockets/index.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<style lang="css">
|
||||
body {
|
||||
font-family: Segoe UI,Tahoma,Arial,Verdana,sans-serif;
|
||||
color: #333;
|
||||
}
|
||||
li {
|
||||
padding: 0.4em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Autobahn WebSockets Test Suite</h1>
|
||||
<ul>
|
||||
<li><a href="./clients/test_browser.html">Test your browser</a></li>
|
||||
<li><a href="./reports/clients/index.html">Client reports</a></li>
|
||||
<li><a href="./reports/servers/index.html">Server reports</a></li>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user