4 PEAS > docker > escape > root

[+] Is this a virtual machine? ..... Yes (docker)
Looks like we're in a Docker container

{"id"=>1,
 "email"=>"admin@example.com",
 "encrypted_password"=>
  "$2a$10$zzun9kmrHMdwsJZKTmwn9OZddFjwrhbaXx3b2eb9l2g.1LrjZo0V2",

gitlab_rails['smtp_password'] = "wW59U!ZKMbG9+*#h"

Started hashcat -m 3200 for $2a$10$zzun9kmrHMdwsJZKTmwn9OZddFjwrhbaXx3b2eb9l2g.1LrjZo0V2

Lets try password for root if possible >
su root
wW59U!ZKMbG9+*#h

root@gitlab:/opt# 
I'm in docker as root now
https://book.hacktricks.xyz/linux-unix/privilege-escalation/docker-breakout
Mount /dev/sda2 and we get root access to machine.

Last updated