Init WFuzz state

This commit is contained in:
Jan Stárek
2019-10-09 13:24:01 +02:00
parent 7c3ed5ef0b
commit a5eb2a97e1
114 changed files with 6221 additions and 0 deletions

15
tests/httpd.py Normal file
View File

@@ -0,0 +1,15 @@
import sys
import importlib
from http.server import HTTPServer
from pprint import pprint
handler_class = importlib.import_module(sys.argv[1][2:] + ".handler").RequestHandler
def run(server_class=HTTPServer, handler_class=handler_class, port=5000):
server_address = ('', port)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()
if __name__ == "__main__":
run()