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?
Conversation
Notices
-
Embed this notice
Hal Pomeranz (hal_pomeranz@infosec.exchange)'s status on Tuesday, 13-Dec-2022 23:40:23 JST Hal Pomeranz -
Embed this notice
Ann K. (piquant00@mastodon.online)'s status on Tuesday, 13-Dec-2022 23:42:21 JST Ann K. @hal_pomeranz Edit /etc/sudoers?
silverwizard likes this. -
Embed this notice
Steve Gibson :cupofcoffee: (steve@rooty.tooty.org)'s status on Tuesday, 13-Dec-2022 23:45:10 JST Steve Gibson :cupofcoffee: @hal_pomeranz
Edit /etc/passwd and change your UID to 0silverwizard likes this. -
Embed this notice
silverwizard (silverwizard@convenient.email)'s status on Wednesday, 14-Dec-2022 11:34:02 JST silverwizard @hal_pomeranz @smlx It means you can do the obvious thing of !sh or whatever, means you need to mostly use vi as intended rather than as a shell -
Embed this notice
Scott Leggett :fedi: :golang: (smlx@fosstodon.org)'s status on Wednesday, 14-Dec-2022 11:34:07 JST Scott Leggett :fedi: :golang: > shell escapes are blocked
what does this mean?
-
Embed this notice