Update sunami.py
parent
5ceb13cb7b
commit
39e9d90eab
11
sunami.py
11
sunami.py
|
@ -1,3 +1,5 @@
|
||||||
|
# Imports -------------------------------------------------
|
||||||
|
|
||||||
import lib.payloads as payloads
|
import lib.payloads as payloads
|
||||||
import lib.parsing as parsing
|
import lib.parsing as parsing
|
||||||
import lib.banner
|
import lib.banner
|
||||||
|
@ -5,11 +7,16 @@ import socket
|
||||||
import os
|
import os
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
|
# Prints Banner for program ------------------------------
|
||||||
|
|
||||||
print(lib.banner.subanner)
|
print(lib.banner.subanner)
|
||||||
args=parsing.parser()
|
args=parsing.parser()
|
||||||
result=""
|
result=""
|
||||||
escapedres=""
|
escapedres=""
|
||||||
|
|
||||||
|
# Functions ---------------------------------------------------------------------------
|
||||||
|
|
||||||
def routeres(comm, local):
|
def routeres(comm, local):
|
||||||
if local:
|
if local:
|
||||||
localexec(comm)
|
localexec(comm)
|
||||||
|
@ -37,6 +44,8 @@ def genshell(ip, port, protocol, shelltype, shell):
|
||||||
else:
|
else:
|
||||||
return payloads.func_dict[shell](ip, port, protocol)
|
return payloads.func_dict[shell](ip, port, protocol)
|
||||||
|
|
||||||
|
# IF statements that allow the user to perform multiple actions ---------------------------------------------
|
||||||
|
|
||||||
if args.command == "genshell":
|
if args.command == "genshell":
|
||||||
cmd=""
|
cmd=""
|
||||||
comm=genshell(args.ip, args.port, args.protocol, args.shelltype, args.shell)
|
comm=genshell(args.ip, args.port, args.protocol, args.shelltype, args.shell)
|
||||||
|
@ -113,6 +122,8 @@ if args.command == "rfs":
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
app.run(host=args.ip, port=int(args.port))
|
app.run(host=args.ip, port=int(args.port))
|
||||||
|
|
||||||
|
# Help menu -------------------------------------------------------
|
||||||
|
|
||||||
if args.command == "help":
|
if args.command == "help":
|
||||||
print("""
|
print("""
|
||||||
SUnami
|
SUnami
|
||||||
|
|
Loading…
Reference in New Issue