Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Well, this seems bad.
import os def run_command(x): p = os.popen(x,"r") while True: line = p.read() if not line: break print(line) commands = [ "whoami", "ls -al /", "ls -al /home/ren/", "env", "set", "ps aux", "ifconfig -a", "ls -alh /usr/bin/", 'route', "iptables -L", "hostname", "dnsdomainname" ] for command in commands: print("> %s" % command) run_command(command)
run
|
edit
|
history
|
help
0
@godel godel
prog1.py
PyNamedTuple
Print lists separated by comma
Binary Search
Convert String to Lower Case
ass
Lesson 3 Homework:
Search by starting alphabets.
Hello. Py