Skip to main content

Scanners

PingCastle includes built-in scanners to check for specific security configurations and vulnerabilities across domain computers. Scanners are accessible from the interactive menu or via command line.

warning

Scanning large numbers of workstations may trigger security alerts.

Available Scanners​

ScannerDescriptionCommand
aclcheckCheck authorization related to users or groups against Active Directory ACLs (default: Everyone, Authenticated Users, Domain Users)PingCastle.exe --scanner aclcheck --server <domain>
antivirusCheck for computers without known antivirus installedPingCastle.exe --scanner antivirus --server <domain>
computerversionGet the version of computers to detect obsolete operating systemsPingCastle.exe --scanner computerversion --server <domain>
foreignusersEnumerate users in denied domains (e.g., bastions) via trusts using MS-LSATPingCastle.exe --scanner foreignusers --foreigndomain <domain|sid> --server domain controller
kerberoschecksumhotfixCheck MS14-068 vulnerability by analyzing KB3011780 installation statusPingCastle.exe --scanner kerberoschecksumhotfix --server <domain>
laps_bitlockerCheck if LAPS and/or BitLocker has been enabled for domain computersPingCastle.exe --scanner laps_bitlocker --server <domain>
localadminEnumerate local administrators on computersPingCastle.exe --scanner localadmin --server <domain>
nullsessionCheck if null sessions are enabled and provide examplesPingCastle.exe --scanner nullsession --server <server>
nullsession-trustDump domain trusts via null session if possiblePingCastle.exe --scanner nullsession-trust --server <domain>
oxidbindingsList all IPs via OXID Resolver (DCOM) to find admin networks. No auth requiredPingCastle.exe --scanner oxidbindings --server <domain>
remoteCheck if remote desktop solutions are installedPingCastle.exe --scanner remote --server <domain>
shareList all shares and determine if accessible by anyonePingCastle.exe --scanner share --server <domain>
smbScan for SMB versions available and check if SMB signing is activePingCastle.exe --scanner smb --server <domain>
smb3querynetworkList all IPs and interface speeds using SMB3 (auth required)PingCastle.exe --scanner smb3querynetwork --server <domain>
smbhotfixCheck MS17-010 (EternalBlue/WannaCry) vulnerability statusPingCastle.exe --scanner smbhotfix --server <domain>
spoolerCheck if the spooler service is remotely active (exploitable with unconstrained delegation)PingCastle.exe --scanner spooler --server <domain>
startupGet last startup date to determine if patches have been applied (Legacy)PingCastle.exe --scanner startup --server <domain>
zerologonTest for ZeroLogon vulnerability (must be run from inside the domain). Note: This only performs the check and has no destructive actionsPingCastle.exe --scanner zerologon --server <domain>

Scanner Options​

Use these additional options to control scanner behavior:

  • --scmode-all - Scan all computers (default)
  • --scmode-single - Check one single computer
  • --scmode-workstation - Check workstations only
  • --scmode-server - Check servers only
  • --scmode-dc - Check domain controllers only
  • --scmode-file <file> - Use computers listed in a file
  • --nslimit <number> - Limit number of users to enumerate (default: unlimited)
  • --services <names> - For antivirus scan, include these service names as antivirus services (comma-separated)