Ethical Hacker Community Forums

Ethical Hacking Discussions and Related Certifications => Network Pen Testing => Topic started by: det_security08 on June 23, 2008, 07:38:05 PM



Title: Gaining Domain access via local administrator
Post by: det_security08 on June 23, 2008, 07:38:05 PM
Are there any Windows commands or privilege escalation techniques one might be able to employ in order to gain access to add a domain user?  In a mixed mode (Windows 2000 and 2003) environment, I've successfully gained access to many Windows 2000 servers thanks to some unpatched vulnerabilities and weak local administrator passwords.  However none of the 2000 hosts are DCs. 

My question is, with either the local admin account or even the "system" shell I gain through the exploits, is there a way for me to somehow access AD and add start making my way into the directory instead of simply winning access to the local machines?  Short of ARP poisoning or sniffing telnet sessions to network hardware devices and attemtping to guess/use those captured admin credentials in the domain, I'm curious if I can bridge the gap somehow between local admin and domain user (eventually domain admin)?  Obviously local creds and AD are two different repositories...but I feel I may be missing something in the Windows world.



Title: Re: Gaining Domain access via local administrator
Post by: ChrisG on June 23, 2008, 08:12:47 PM
use pass the hash and token stealing if any of the boxes have been logged into by an admin.

everything you need has been built into meterpreter


Title: Re: Gaining Domain access via local administrator
Post by: det_security08 on June 25, 2008, 12:14:56 AM
Chris,

That was my goal...but I was thinking I'm missing something with the SAM and local logins vs. domain logins.  On several of the servers, dumping the passwords from the SAM only produces local users.  However, with those local creds, when I map drives and browse the C: drive, I notice that several profiles have been created for domain users, sometimes even the Admin ID for the domain.  But, no such credentials exist in the SAM. 

Also..this is a 2003/2000 mixed domain. 


Title: Re: Gaining Domain access via local administrator
Post by: ChrisG on June 25, 2008, 08:59:50 AM
thats because MS AD stores user accounts on the domain  controller not local sams, so you either have to hack the DC, or cross your fingers and use pass the hash.  thankfully local admin and system can run all those  hash tools