Preparation/ResearchWe will create a simple web server. When accessed by a browser, the server will return the output from simple system commands, e.g. "ps" or "ifconfig" on Linux/Mac, "ipconfig" or "dir" on Windows. Note that such a server in general is a bad idea from a security perspective unless access is contained carefully or the commands can be well restricted.
Preparation Tasks:- Research how to run a shell command and capture its output from python.
- Look for a module that allows you to create a web server.
|