This Repository is a collection of different ethical hacking tools and malware's for penetration testing and research purpose written in python, ruby, rust, c++, go and c.
JavaScript algorithmsartificial-intelligencebugbountycryptographycyber-threat-intelligencecybersecurity-projectsethical-hackinghacking-toolsmalwarenessusnetwork-monitoringnetwork-securitynmapportscannerpythonpythonprojectsthreat-intelligencevirus-scanning
Create http_server.py
Abdul Wahab Junaid863616765478
diff --git a/Python Tools/HTTP_Server/http_server.py b/Python Tools/HTTP_Server/http_server.pynew file mode 100644index 0000000..907bea9--- /dev/null+++ b/Python Tools/HTTP_Server/http_server.py@@ -0,0 +1,14 @@+import socket++mySocket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)+mySocket.bind(('localhost', 8080))++mySocket.listen(5)++while True:+ print('Waiting for connections')+ (recvSocket, address) = mySocket.accept()+ print('HTTP request received:')+ print(recvSocket.recv(1024))+ recvSocket.send(bytes("HTTP/1.1 200 OK\r\n\r\n <html><body><h1>Hello World!</h1></body></html> \r\n",'utf-8'))+ recvSocket.close()