Skip to content

Commit

Permalink
do not list EXPs on start
Browse files Browse the repository at this point in the history
  • Loading branch information
jm33-m0 committed Dec 25, 2019
1 parent 17abf5e commit 5ee0756
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions lib/cli/cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,17 @@ def run_exploits(**kwargs):
"""
List all usable exploits
"""
do_print = kwargs.get("do_print", True)
exp_list = futil.list_exp()
if do_print:
# pass this list to readline completer
return exp_list

colors.colored_print('[+] Available exploits: ', colors.CYAN)

exp_list = futil.list_exp()
for poc in exp_list:
colors.colored_print(poc, colors.BLUE)

# pass this list to readline completer
return exp_list
return None


def run_help(**kwargs):
Expand Down
2 changes: 1 addition & 1 deletion lib/cli/rlinit.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def readline_init(session):
command_list += ["tomcat", "jboss", "jenkins", "weblogic", "/tmp/", "attack",
"reset", "clear", "quit", "redis", "ssh_bruteforcer", "witbe"]
# add from list_exp
command_list += run_exploits()
command_list += run_exploits(do_print=False)

if not os.path.exists(HISTFILE):
os.system('touch {}'.format(HISTFILE))
Expand Down

0 comments on commit 5ee0756

Please sign in to comment.