bandit/examples/partial_path_process.py

14 lines
314 B
Python

from subprocess import Popen as pop
pop('gcc --version', shell=False)
pop('/bin/gcc --version', shell=False)
pop(var, shell=False)
pop(['ls', '-l'], shell=False)
pop(['/bin/ls', '-l'], shell=False)
pop('../ls -l', shell=False)
pop('c:\hello\something', shell=False)
pop('c:/hello/something_else', shell=False)