Run Code
|
API
|
Code Wall
|
Users
|
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
Please
log in
to post a comment.
PythonClosure2
inverse matrix gauss jordan
permutations example
Hr
Hello world
playing around with python
https://rextester.com/HYVN80193
Sum of subsets (Python)
practice
Ej2_PYTHON_203700377.
Please log in to post a comment.