1
0
mirror of https://github.com/calebstewart/pwncat.git synced 2024-11-27 19:04:15 +01:00

Added requests module into requrements. Should fix #9

This commit is contained in:
John Hammond 2020-05-13 10:43:45 -04:00
parent d797eed718
commit 96c708a169
3 changed files with 23 additions and 1 deletions

View File

@ -11,6 +11,7 @@
"payload": "{command} 2>/dev/null",
// This is used to pass arguments to the application (auto-merged
// into "{command}".
// IF YOUR COMMAND TAKES ARGUMENTS, YOU MUST SUPPLY THEM HERE.
"args": ["if={lfile}"],
// Prepends arguments, if any to the "args" for setuid context.
"suid": [],

20
gtfobinstest.py Normal file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env python3
from pwncat.gtfobins import *
import subprocess
def which(path: str, quote=False):
try:
output = subprocess.check_output(f"which {path}", shell=True)
except subprocess.CalledProcessError:
return None
return output.decode("utf-8").strip()
gtfo = GTFOBins("data/gtfobins.json", which)
all_binaries = list(gtfo.iter_methods(Capability.SHELL))
print(all_binaries[0].build(shell="/bin/bash", suid=True))

View File

@ -5,3 +5,4 @@ netifaces==0.10.9
pygments==2.6.1
base64io
commentjson
requests