This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import sys | |
import getopt | |
import threading | |
import subprocess | |
# Defining constants | |
LISTEN = False | |
COMMAND = False | |
UPLOAD = False |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer | |
from os import curdir, sep | |
PORT_NUMBER = 8080 | |
#message = "\nThis is a test WebServer.\n" | |
#This class will handle any incoming request from | |
#the browser | |
class MyHandler(BaseHTTPRequestHandler): |