python include fix, web service finder: osticket

This commit is contained in:
2021-05-12 15:58:19 +02:00
parent e0e5ce3228
commit 73c9f72561
6 changed files with 37 additions and 10 deletions

View File

@@ -1,19 +1,22 @@
#!/usr/bin/env python
from hackingscripts import util, xss_handler
from http.server import BaseHTTPRequestHandler, HTTPServer
import threading
import requests
import sys
import os
import ssl
# import xss_handler
import util
import xss_handler
class FileServerRequestHandler(BaseHTTPRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
def do_HEAD(self):
self.do_GET()
def do_POST(self):
self.do_GET()
@@ -35,7 +38,7 @@ class FileServerRequestHandler(BaseHTTPRequestHandler):
self.send_response(code)
self.end_headers()
if data:
if data and self.command != "HEAD":
self.wfile.write(data)
else:
self.send_response(404)