mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
add jsonpickle and pexpect libs in case of unsafe decoding and secondary command execution, add proper test cases
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import pexpect
|
||||
from pexpect import popen_spawn
|
||||
|
||||
cmd = "ls -la"
|
||||
result = pexpect.run(cmd) # $ getCommand=cmd
|
||||
result = pexpect.runu(cmd) # $ getCommand=cmd
|
||||
result = pexpect.spawn(cmd) # $ getCommand=cmd
|
||||
result = pexpect.spawnu(cmd) # $ getCommand=cmd
|
||||
result = popen_spawn.PopenSpawn(cmd) # $ getCommand=cmd
|
||||
Reference in New Issue
Block a user