sudo nmap -p- -sS -sV                                           

80/tcp    open  http          Microsoft IIS httpd 10.0
135/tcp   open  msrpc         Microsoft Windows RPC
139/tcp   open  netbios-ssn   Microsoft Windows netbios-ssn
445/tcp   open  microsoft-ds  Microsoft Windows Server 2008 R2 - 2012 microsoft-ds
3389/tcp  open  ms-wbt-server Microsoft Terminal Services
49663/tcp open  http          Microsoft IIS httpd 10.0
49666/tcp open  msrpc         Microsoft Windows RPC
49668/tcp open  msrpc         Microsoft Windows RPC
Service Info: OSs: Windows, Windows Server 2008 R2 - 
2012; CPE: cpe:/o:microsoft:windows

SMB shows the share 'nt4wrksv' when authenticating with null credentials.

Using smbclient to connect to the share shows the file passwords.txt.

The contents of passwords.txt is shown below:

[User Passwords - Encoded]

We can see from the title and the trailing '==' that this is likely base64 encoded. Running both of these through base64 with the -d switch shows the true value.


Unfortunately I was unable to use the credentials in any capacity. Referring back to SMB earlier we do have write access to the share nt4wrksv. Checking the share name and the passwords.txt file against port 49663 shows we can see the passwords.txt file.

With this we can use the following aspx reverse shell found here:

Upload the shell to the SMB share.

Set a listener and then browse to the location of http://<IP>/nt4wrksv/shell.aspx. Shortly after we should receive a reverse shell.

Checking the available privilege we do have SeImpersonatePrivilege which is not surprising as this is normally given to service accounts.

I tried a Juicypotato exploit here and was unsuccessful. It seemed AV was removing my exploit every time I tried to run it. Further research on Google shows a newer exploit that abuses this privilege to gain SYSTEM which is linked here:

We can download a pre-compiled exploit here:

Once uploaded to the machine through SMB we can run with the following syntax to gain a SYSTEM shell.

PrintSpoofer.exe -i -c cmd

Last updated