Update sunami.py

main
m0builds 2024-04-03 15:27:44 +01:00 committed by GitHub
parent 5ceb13cb7b
commit 39e9d90eab
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,5 @@
# Imports -------------------------------------------------
import lib.payloads as payloads
import lib.parsing as parsing
import lib.banner
@ -5,11 +7,16 @@ import socket
import os
import sys
import time
# Prints Banner for program ------------------------------
print(lib.banner.subanner)
args=parsing.parser()
result=""
escapedres=""
# Functions ---------------------------------------------------------------------------
def routeres(comm, local):
if local:
localexec(comm)
@ -36,6 +43,8 @@ def genshell(ip, port, protocol, shelltype, shell):
return payloads.func_dict2[shell](ip, port, protocol)
else:
return payloads.func_dict[shell](ip, port, protocol)
# IF statements that allow the user to perform multiple actions ---------------------------------------------
if args.command == "genshell":
cmd=""
@ -112,6 +121,8 @@ if args.command == "rfs":
return ""
if __name__ == "__main__":
app.run(host=args.ip, port=int(args.port))
# Help menu -------------------------------------------------------
if args.command == "help":
print("""