Skip to content

Commit

Permalink
update search and show options to function properly
Browse files Browse the repository at this point in the history
  • Loading branch information
HackingDave committed Mar 10, 2021
1 parent f3a333f commit 18f6c6f
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 12 deletions.
6 changes: 6 additions & 0 deletions readme/CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
~~~~~~~~~~~~~~~~~
version 2.4.6
~~~~~~~~~~~~~~~~~

* fix an issue with PTF prompts when using a module and typing show options

~~~~~~~~~~~~~~~~~
version 2.4.5
~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion src/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def count_modules():
return counter

# version information
grab_version = "2.4.5"
grab_version = "2.4.6"

# banner
banner = bcolors.RED + r"""
Expand Down
23 changes: 12 additions & 11 deletions src/framework.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,26 +329,27 @@ def use_module(module, all_trigger):
if "use " in prompt:
return prompt

# options menu - was a choice here to load upon initial load of dynamically pull each time
# if changes are made, it makes sense to keep it loading each time
#if prompt.lower() == "show options":
# print("Module options (%s):" % module)

# if we are searching for something
if "search " in prompt:
if search(prompt):
prompt("")
if "show " in prompt:
prompt = split("/","")[1]
search(prompt)

if prompt == "" or len(prompt) < 1:
print_error("No prompt given. Returning to base")
prompt(back)

#if "show " in prompt:
# prompt = split("/","")[1]
# search(prompt)

# options menu - was a choice here to load upon initial load of dynamically pull each time
# if changes are made, it makes sense to keep it loading each time
if prompt.lower() == "show options":
print("Module options (%s):" % module)
if prompt == "" or len(prompt) < 1:
print("[*] No prompt given, type help, back, show options, or run to proceed.")
#prompt(back)

# if we are using a normal module
if module != "modules/install_update_all":
if "show options" in prompt:

print("\n\n")
print(bcolors.BOLD + "Module Author: " + bcolors.ENDC + author)
Expand Down

0 comments on commit 18f6c6f

Please sign in to comment.