Enable shell commands

pull/24/head
Zach Riggle 10 years ago
parent 5703cc1acb
commit ca5ca2af7b

@ -55,21 +55,20 @@ shellcmds = [
"vi", "vi",
"vim", "vim",
"w", "w",
"wc",
"wget", "wget",
"who", "who",
"whoami", "whoami",
"zsh", "zsh",
] ]
# def register_shell_function(cmd): def register_shell_function(cmd):
# def handler(*a): def handler(*a):
# """Invokes %s""" % cmd """Invokes %s""" % cmd
# if os.fork() == 0: if os.fork() == 0:
# os.execvp(cmd, (cmd,) + a) os.execvp(cmd, (cmd,) + a)
# os.wait() os.wait()
# handler.__name__ = cmd handler.__name__ = cmd
# pwndbg.commands.Command(handler) pwndbg.commands.Command(handler)
# for cmd in shellcmds: for cmd in shellcmds:
# register_shell_function(cmd) register_shell_function(cmd)

Loading…
Cancel
Save