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
Page 353 ex 42
Gh
intresting pattern
sensi cod
My first experience on rextester !
Achinta
list_copy_shallow_deep.py
number factor memoised
Metric failed
Help me