当前位置:网站首页>Intra domain information collection for intranet penetration

Intra domain information collection for intranet penetration

2022-06-25 20:19:00 Bypass--

When you get a computer in the domain Windows Server permissions , We need to collect as much information about the domain as we can , The more domain information is collected , The higher the success rate of domain control .


01、 Determine whether there is a domain

(1) Generally, we are collecting local information , Inquire about IP Network or system information , It's easy to find domain control .

ipconfig /all  command 

bb7d53715b09707a5f2c230a5a0b2af6.png

systeminfo  command 

2dcd685b70b8d600f8126abd5d9aac92.png

(2) View the current login domain and domain users

net config workstation

09ef9e4f5fe6cfa946ff0307c6c6f6fc.png

(3) All domain servers will act as time servers at the same time , So use the following command to determine the primary domain .

 function  net time /domain  After the order , There are generally three situations as follows :


1. Domain of existence , But the current user is not a domain user , The prompt indicates that the permission is not enough 
  C:\Users>bypass>net time /domain
   A system error occurred  5
   Access denied .


2. Domain of existence , And the current user is a domain user 
   C:\Users\Administrator>net time /domain
   \\dc.test.com  The current time of is  2020/10/23 21:18:37


    Command completed successfully .


3. The current network environment is workgroup , No domain exists 
   C:\Users\Administrator>net time /domain
    Domain not found  WORKGROUP  Domain controller for .

02、 Find a domain controller

(1) Generally speaking , Domain control server IP The address is DNS Server address , find DNS The server address can locate the domain controller .

nslookup/ping  domain name , Resolve to domain control server IP Address 

eeb08207fa77e3be5a02d24acd29f8f6.png

(2) View the machine name of the domain controller

nltest /DCLIST:test.com

d93708a26e86a7c69b36b8a01698a57f.png

(3) View domain controllers

net group "Domain Controllers" /domain

a75b7db990eb207e97e32da23f60352d.png

3、 Get users and administrators in the domain

(1) Query the list of all user groups in the domain

net group /domain

7ae820f2baba714ecaa1419d9c1c9399.png

(2) Query the list of domain Administrators

net group "Domain Admins" /domain

1acc38b30e23a72af2a741b7a0f4accb.png

(3) Get a list of all domain users

net user /domain

620c9acd365e26e9686275acaecbe44c.png

(4) Get the specified domain user bypass Details of

net user bypass /domain

dd07df6475673d8247e81cedfd6b3057.png

(5) Query the users of the built-in local administrator group in the domain

net localgroup administrators /domain

c41bcc31b915c6f222ec5848a8d15d60.png

04、 Locate the domain administrator

If we can find which servers the domain administrator logged in to , You can attack these servers and try to take advantage of , To gain domain administrator privileges .

(1)PowerView

PowerView.ps1 Integrated into the PowerSploit In the frame , The script relies entirely on PowerShell and WMI Inquire about .

Domain user permissions , The information that can be obtained is related to user rights , Local administrator user cannot query .

Download address :

https://github.com/PowerShellEmpire/PowerTools

Get the login location information of all domain Administrators :

3345078dbe136a0926760fb155c74d84.png

(2)PsLoggedOn

PsLoggedOn yes PSTools A small program in the toolkit , It shows the users who log in locally and the users who log in through the resources of the local computer or the remote computer .

Domain user permissions , The local administrator cannot query .

Download address :

https://docs.microsoft.com/en-us/sysinternals/downloads/psloggedon

View the currently logged in user of domain controller :

11d49dbd69ab3d022be2ae05ad0831e9.png

(3)PVEFindADUser

Download address :

https://github.com/chrisdee/Tools/tree/master/AD/ADFindUsersLoggedOn

Use domain users to perform , View the logged in users of all computers in the domain :

672df0cbe45580cda381944cbd6e7fff.png

05、 Find domain management process

Compare with local processes and process users through the list of domain administrators , You can find the process run by the domain administrator .

net group "domain admins" /domain   // Get the list of domain Administrators 
tasklist /v        // List all local processes and process users 

524a5dbd907ef065cedc5bc2c71f8b23.png

原网站

版权声明
本文为[Bypass--]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202190501549795.html