DNSAdmin Escalation
https://www.abhizer.com/windows-privilege-escalation-dnsadmin-to-domaincontroller/
Here, what we're doing is:
Making a dll payload that sends a reverse shell back to our machine with msfvenom.
Serving it using SMB Server to make it available to the Windows machine. (You can use any other way to transfer it to the remote machine, but be careful, it might get nuked by the Anti-Virus.) And, we will also setup a netcat listener to catch our reverse shell.
Importing that dll in the DNS Server.
Restarting the DNS Server so that it loads the dll file.
Checking if your user is a part of the DNSAdmins group:
Now, on to the fun part:
Here, because the Windows machine is of 64 bit achitechture, we're using x64 payload.
In another terminal tab, set up a netcat listener to catch the reverse shell:
Now, in the compromised Windows machine:
Now, go back and check the netcat listener, you should have a reverse shell.
Comment: Change domain.local to IP - when RPC Error 1772. Found that fqdn didnt work, the ip of the dns server worked a treat.
Observation: access denied to restarting dns service prior to successfully running the above command.
Last updated