Enumerate user accounts

Started by Adriano

Adriano

Enumerate user accounts   25 June 2020, 05:31

There is an option inside the Netscan tool that allow us to enumerate user accounts in remote machines. It works fine, but the problem is that it only works for some machines and others I don't know why it is not bringing the users. My question is what is the technique used to gather this users in local machine?

I tried to allow through WMI win32_UserAccount but it isn't this technique that is used. I also thought this could be the same procedure applied by Nmap script smbenumuser, but looks like that isn't this either.

I'm a little bit lost because I would like to understand how it is performed in order to allow this in the machines where it isn't working. Can you guys give me a help here?
SoftPerfect Support forum - Andrew avatar image

Re: Enumerate user accounts   25 June 2020, 10:14

We use the NetUserEnum WinAPI function at level 0 to enumerate user accounts. If the function returned an error, nothing will be displayed.

This function should return a result similar to this WMI query:
SELECT Name FROM Win32_UserAccount

Here is what both retrieve on a local PC:

SoftPerfect support forum

Reply to this topic

Sometimes you can find a solution faster if you try the forum search, have a look at the knowledge base, or check the software user manual to see if your question has already been answered.

Our forum rules are simple:

  • Be polite.
  • Do not spam.
  • Write in English. If possible, check your spelling and grammar.

Author:

Email:

Subject

A brief and informative title for your message, approximately 4–8 words:

     

Spam prevention: please enter the following code in the input field below.

  *******   ********   **    **  ********   *******  
 **     **  **     **  ***   **  **        **     ** 
 **         **     **  ****  **  **        **        
 ********   ********   ** ** **  ******    ********  
 **     **  **         **  ****  **        **     ** 
 **     **  **         **   ***  **        **     ** 
  *******   **         **    **  **         *******  

Message: