diff --git a/pwndbg/commands/shell.py b/pwndbg/commands/shell.py index 08e14b855..d9be4455b 100644 --- a/pwndbg/commands/shell.py +++ b/pwndbg/commands/shell.py @@ -10,6 +10,7 @@ import os import gdb import pwndbg.commands +import pwndbg.which shellcmds = [ "asm", # pwntools @@ -69,6 +70,8 @@ shellcmds = [ "zsh", ] +shellcmds = filter(pwndbg.which.which, shellcmds) + def register_shell_function(cmd): def handler(*a): """Invokes %s""" % cmd