You have access to the vim text editor via sudo, but shell escapes are blocked. How do you escalate privileges to get an unfettered root shell without sudo?

#Linux #DFIR #CommandLine #Trivia

@hal_pomeranz Edit /etc/sudoers?
@piquant00 Right, but I want a way to get root without sudo.
@hal_pomeranz
If you're using a distro where the root account is locked the only way I know is to use "sudo passwd root" to enable the root account. I'm far from being a 1337 h4x0r though, so it wouldn't surprise me if there's a more hacky way.