https://tryhackme.com/room/lateralmovementandpivoting
Configure DNS by adding THMDC
's IP to the DNS
Network Manager
> Advanced Network Configuration
> Your Connection
> IPv4 Settings
Then restart the resolved service
sudo systemctl restart NetworkManager
For SSH access - Getting credentials from http://distributor.za.tryhackme.com/creds
ssh za.tryhackme.com\\\\<AD_Username>@thmjmp1.za.tryhackme.com
To run psexec
we need to specify the remote host Administrator username and password
psexec64.exe \\\\MACHINE_IP -u Administrator -p Mypass123 -i cmd.exe
To connect to a remote Powershell session from the command line
winrs.exe -u:Administrator -p:Mypass123 -r:target cmd
We can achieve the same from Powershell, but to pass different credentials, we will need to create a PSCredential object: