~$ cd ~

VulnLab: Sweep

Access to intern

Webpage on port 81 and 82

Screenshot 1

Port 81,82 and 9524 is running lansweeper

lansweeper-server-communication
| Subject Alternative Name: DNS:localhost, DNS:INVENTORY, DNS:inventory.sweep.vl, IP Address:192.168.115.145
 

Guest access gives us access to one share but it has nothing interesting

Screenshot 2

Username bruteforce

Screenshot 3

Randomly guessing the password is intern, initially this login did not work for the web page. After restarting the machine it works now.

intern:intern

Screenshot 4

Logging into the webpage

Screenshot 5

I managed to steal the machine hash by creating a fake server. Sadly we are unable to crack this.

Screenshot 6 Screenshot 7

Access as svc_inventory_lnx

Under scanning targets we can setup our ip for the ip range

Screenshot 8

Under scanning credentials we add our ip range again and select credentials to use to scan our ip. We then setup a fake ssh server to capture creds.

Screenshot 9

Fake ssh server tool can be downloaded here

https://github.com/fffaraz/fakessh

Screenshot 10

svc_inventory_lnx:0|5m-U6?/uAX

This new user has generic all over lansweeper admins

Screenshot 11

Add our user to the group

net rpc group addmem "LANSWEEPER ADMINS" "svc_inventory_lnx" -U "sweep.vl"/"svc_inventory_lnx"%"0|5m-U6?/uAX" -S "inventory.sweep.vl"

Verify it worked with this command

Screenshot 12
net rpc group members "LANSWEEPER ADMINS" -U "sweep.vl"/"svc_inventory_lnx"%"0|5m-U6?/uAX" -S "inventory.sweep.vl"

Once added to this group we can remote in with winrm

evil-winrm -i 10.10.73.56 -u svc_inventory_lnx -p '0|5m-U6?/uAX'

Access as nt system

Logging back into lansweeper with this new account we have more privileges.

We can map a credential for the domain controller

Screenshot 13

We can now create a new package and deploy it to the machine.

Screenshot 14 Screenshot 15

Start our listener and click deploy now and deploy to all

Screenshot 16

We get a call back and finish the machine

Screenshot 17 Screenshot 18