1

I currently have a VM where the user is locked down and i am unable to find any flags. I have tried to use sudo but the account is not a sudoer. I have tried "nano /etc/sudoers" but i received a permission denied message. Any other ideas on how to become root?

Also, this is for a class. Its a basic CTF, and he completely locked down his VM it seems...

rgcam
  • 19

1 Answers1

0

If you are allowed to reboot the Virtual Machine you can boot into single user mode and have root level access assuming the boot loader isn't locked down. If the boot loader is protected then you can try rescuing the machine by booting into ISO mounting the Virtual Machine and editing the configuration, then add your self to the sudoers permissions.

IF you don't own the Virtual Machine then tread carefully as you may be breaking some laws by try to gain an unauthorised level of access into the system.

  • I have dropped into a root shell. Also, this is a CTF VM. The other guy has mine and i have his. Its for a class, so as long as i gain access to the flags then im good – rgcam Mar 03 '18 at 16:34
  • Okay I just wanted to cover myself as someone will probably complain otherwise. do you actually have the VM files or something like an SSH session in to it? – Connor Payne Mar 03 '18 at 16:35
  • That okay. And yeah, i have the file downloaded onto my own computer and using it in virtual box – rgcam Mar 03 '18 at 16:36
  • Okay then that make it a lot easier to gain access to root user access if you have the files. First thing is to try this booting into single user mode if the boot loader is protected then boot the VM into an ubuntu ISO and jump across to be able to view the file system. – Connor Payne Mar 03 '18 at 16:39