Skip to content

dadevel/servicedetector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ServiceDetector

Detects named pipes and installed services remotely as unprivileged user. Heavily based on tothi/servicedetector.

Screenshot

Setup

a) With pipx.

pipx install git+https://github.com/dadevel/servicedetector.git@main

b) With pip.

pip3 install git+https://github.com/dadevel/servicedetector.git@main

Usage

Scan computers for WebClient and other NTLM coercion opportunities.

servicedetector -c coercion -u jdoe -p 'passw0rd' ws01.corp.local ws02.corp.local ws03.corp.local

Scan computers for installed AV/EDR products.

servicedetector -c epp -u jdoe -p 'passw0rd' srv01.corp.local srv02.corp.local srv03.corp.local

You can check for all known software by leaving out the -c option.

About

Running this script connects to the target over SMB and ...

  1. performs the LsarLookupNames() RPC call to check if a given service is installed. This does not allow to determine if a service is running or stopped. Furthermore it is not possible to list services. Only names of known services can be queried.

  2. lists named pipes trough the IPC$ share. This allows to infer which services are running as long as the respective process creates a named pipe.

Development

Service names and named pipe paths are defined in indicators.csv.

About

Remotely detect software as unprivileged user

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages