Skip to content

Commit

Permalink
Merge pull request trustedsec#153 from thejoker3000/master
Browse files Browse the repository at this point in the history
Update unicorn.py help menu
  • Loading branch information
HackingDave authored Dec 10, 2020
2 parents 87c2f96 + 47e6396 commit 9eb67da
Showing 1 changed file with 42 additions and 1 deletion.
43 changes: 42 additions & 1 deletion unicorn.py
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,48 @@ def ms_voodoo_stuff():
ps1path = ""

if len(sys.argv) > 1:
if sys.argv[1] == "--help":
os.system("clear")
gen_unicorn()
payload_options = ["powershell","macro","hta","cert","custom","dde","cobalt","general"]
help_options = ["-h","--help"]

if len(sys.argv) > 2:
if sys.argv[2] in payload_options:
# Show help for specific payload options
if sys.argv[2] == "powershell":
ps_help()
gen_usage()
sys.exit()
elif sys.argv[2] == "macro":
macro_help()
gen_usage()
sys.exit()
elif sys.argv[2] == "hta":
hta_help()
gen_usage()
sys.exit()
elif sys.argv[2] == "cert":
cert_help()
gen_usage()
sys.exit()
elif sys.argv[2] == "custom":
custom_ps1_help()
custom_shellcode()
gen_usage()
sys.exit()
elif sys.argv[2] == "dde":
dde_help()
gen_usage()
sys.exit()
elif sys.argv[2] == "cobalt":
cobalt_strike()
gen_usage()
sys.exit()
elif sys.argv[2] == "general":
gen_usage()
sys.exit()
elif len(sys.argv) <= 2 and sys.argv[1] in help_options:
# Show all help menus if none specified
ps_help()
macro_help()
hta_help()
Expand Down

0 comments on commit 9eb67da

Please sign in to comment.