Skip to content

Commit 540c8d0

Browse files
committed
Public release 1.1
1 parent edd2990 commit 540c8d0

File tree

7 files changed

+547
-1
lines changed

7 files changed

+547
-1
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: p0dalirius
4+
patreon: Podalirius

.github/dns_wildcard.png

90.8 KB
Loading

.github/example.png

86.2 KB
Loading

.github/example_verbose.png

178 KB
Loading

GhostSPN.py

Lines changed: 489 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,53 @@
1-
# GhostSPN
1+
# GhostSPN
2+
3+
<p align="center">
4+
List accounts with Service Principal Names (SPN) not linked to active dns records in an Active Directory Domain.
5+
<br>
6+
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/p0dalirius/GhostSPN">
7+
<a href="https://twitter.com/intent/follow?screen_name=podalirius_" title="Follow"><img src="https://img.shields.io/twitter/follow/podalirius_?label=Podalirius&style=social"></a>
8+
<a href="https://www.youtube.com/c/Podalirius_?sub_confirmation=1" title="Subscribe"><img alt="YouTube Channel Subscribers" src="https://img.shields.io/youtube/channel/subscribers/UCF_x5O7CSfr82AfNVTKOv_A?style=social"></a>
9+
<br>
10+
</p>
11+
12+
## Features
13+
14+
- [x] Lists all accounts (users, computers) with
15+
- [x] Checks for DNS wildcard presence before resolving names.
16+
17+
## Usage of scan mode
18+
19+
```
20+
GhostSPN v1.1 - by @podalirius_
21+
22+
usage: GhostSPN.py scan [-h] [-u USERNAME] [-p PASSWORD] [-d DOMAIN] [--hashes [LMHASH]:NTHASH] [--no-pass] --dc-ip ip address [--ldaps] [-v] [--debug]
23+
24+
options:
25+
-h, --help show this help message and exit
26+
27+
Credentials:
28+
-u USERNAME, --username USERNAME
29+
Username to authenticate to the machine.
30+
-p PASSWORD, --password PASSWORD
31+
Password to authenticate to the machine. (if omitted, it will be asked unless -no-pass is specified)
32+
-d DOMAIN, --domain DOMAIN
33+
Windows domain name to authenticate to the machine.
34+
--hashes [LMHASH]:NTHASH
35+
NT/LM hashes (LM hash can be empty)
36+
--no-pass Don't ask for password (useful for -k)
37+
--dc-ip ip address IP Address of the domain controller. If omitted it will use the domain part (FQDN) specified in the target parameter
38+
--ldaps Use LDAPS. (default: False)
39+
-v, --verbose Verbose mode. (default: False)
40+
--debug Debug mode. (default: False)
41+
```
42+
43+
## Example
44+
45+
Example:
46+
47+
![](./.github/example.png)
48+
49+
## Special case: DNS wildcards
50+
51+
In case DNS wildcards are present in the domain, GhostSPN autodetect if the entry was resolved from a wildcard entry.
52+
53+
![](./.github/dns_wildcard.png)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sectools>=1.3.9

0 commit comments

Comments
 (0)