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
(P3) Rok przestępny
Calc1
Q5
Linear Regression Python
emoji replace
course 2 steve sch
Remove all Adjacent duplicates using a loop
PythonClosure2
count(even/odd)fromlist.py
(P3) Scrabble