SSH


Validating the SSH private key of the Viewer user

┌──(kali㉿kali)-[~/PEN-200/PG_PRACTICE/dvr4]
└─$ ssh viewer@$IP -i ./id_rsa.viewer 
 
Microsoft Windows [Version 10.0.19044.1645]
(c) Microsoft Corporation. All rights reserved.
 
C:\Users\viewer> powershell -ep bypass -nop
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
 
Try the new cross-platform PowerShell https://aka.ms/pscore6
 
PS C:\Users\viewer> whoami
dvr4\viewer
PS C:\Users\viewer> hostname
DVR4
PS C:\Users\viewer> ipconfig
 
Windows IP Configuration
 
 
Ethernet adapter Ethernet0 2:
 
   Connection-specific DNS Suffix  . : 
   IPv4 Address. . . . . . . . . . . : 192.168.150.179
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Default Gateway . . . . . . . . . : 192.168.150.254

Initial Foothold established to the target system as the viewer user via SSH