Enumeration

ssh [email protected]
[email protected]'s password: 
Linux shoppy 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
jaeger@shoppy:~$ whoami
jaeger
jaeger@shoppy:~$ uname -a
Linux shoppy 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux
jaeger@shoppy:~$ id
uid=1000(jaeger) gid=1000(jaeger) groups=1000(jaeger)
jaeger@shoppy:~$ sudo -l
[sudo] password for jaeger: 

Sorry, try again.
[sudo] password for jaeger: 
Sorry, try again.
[sudo] password for jaeger: 
Matching Defaults entries for jaeger on shoppy:
    env_reset, mail_badpass, secure_path=/usr/local/sbin\:/usr/local/bin\:/usr/sbin\:/usr/bin\:/sbin\:/bin

User jaeger may run the following commands on shoppy:
    (deploy) /home/deploy/password-manager

There is a user named deploy, and we can run password-manager as deploy.

I tried running it:

Its a custom built password manager as the source code is here and its also has the creators name.

We cannot read the source code unfortunately. Doing strings on the password-manager

We see that the creds are saved in creds.txt.

Running strings again changing the endianness

We see the string Sample. Using that we are able to read the creds.txt.

Every time we have access to custom binaries like this its a good idea to run it with Ghidra to see exactly whats going on under the hood.

Lateral Movement as deploy

So now we got another pair of credentials: deploy:Deploying@pp!

We know we are part of the docker group. So rest was easy. Explanation.

Last updated