mirror of
https://github.com/calebstewart/pwncat.git
synced 2024-11-24 01:25:37 +01:00
Added requests
module into requrements. Should fix #9
This commit is contained in:
parent
d797eed718
commit
96c708a169
@ -11,6 +11,7 @@
|
|||||||
"payload": "{command} 2>/dev/null",
|
"payload": "{command} 2>/dev/null",
|
||||||
// This is used to pass arguments to the application (auto-merged
|
// This is used to pass arguments to the application (auto-merged
|
||||||
// into "{command}".
|
// into "{command}".
|
||||||
|
// IF YOUR COMMAND TAKES ARGUMENTS, YOU MUST SUPPLY THEM HERE.
|
||||||
"args": ["if={lfile}"],
|
"args": ["if={lfile}"],
|
||||||
// Prepends arguments, if any to the "args" for setuid context.
|
// Prepends arguments, if any to the "args" for setuid context.
|
||||||
"suid": [],
|
"suid": [],
|
||||||
|
20
gtfobinstest.py
Normal file
20
gtfobinstest.py
Normal 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))
|
@ -5,3 +5,4 @@ netifaces==0.10.9
|
|||||||
pygments==2.6.1
|
pygments==2.6.1
|
||||||
base64io
|
base64io
|
||||||
commentjson
|
commentjson
|
||||||
|
requests
|
Loading…
Reference in New Issue
Block a user