dementor 1.0.0.dev19__tar.gz → 1.0.0.dev21__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/PKG-INFO +24 -18
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/README.md +16 -14
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/__init__.py +1 -1
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/__main__.py +1 -1
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/assets/Dementor.toml +21 -0
- dementor-1.0.0.dev21/dementor/assets/banner.txt +22 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/config/__init__.py +1 -1
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/config/session.py +17 -6
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/config/toml.py +15 -9
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/config/util.py +4 -5
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/db/__init__.py +2 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/db/connector.py +9 -10
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/db/model.py +14 -9
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/filters.py +20 -13
- dementor-1.0.0.dev21/dementor/loader.py +516 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/log/__init__.py +1 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/log/logger.py +9 -16
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/log/stream.py +4 -8
- {dementor-1.0.0.dev19/dementor/protocols/msrpc → dementor-1.0.0.dev21/dementor/protocols}/__init__.py +1 -1
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/ftp.py +33 -40
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/http.py +97 -80
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/imap.py +28 -6
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/ipp.py +40 -29
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/kerberos.py +25 -15
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/ldap.py +27 -26
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/llmnr.py +13 -14
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/mdns.py +21 -21
- {dementor-1.0.0.dev19/dementor/protocols → dementor-1.0.0.dev21/dementor/protocols/msrpc}/__init__.py +1 -1
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/msrpc/dcom.py +3 -2
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/msrpc/rpc.py +23 -20
- dementor-1.0.0.dev21/dementor/protocols/msrpc.py +71 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/mssql.py +42 -29
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/mysql.py +30 -26
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/netbios.py +26 -16
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/ntlm.py +11 -22
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/pop3.py +27 -20
- dementor-1.0.0.dev21/dementor/protocols/quic.py +349 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/smb.py +52 -44
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/smtp.py +68 -65
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/ssdp.py +32 -30
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/upnp.py +28 -19
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/x11.py +28 -14
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/servers.py +150 -21
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/standalone.py +89 -81
- dementor-1.0.0.dev21/dementor/tui/__init__.py +30 -0
- dementor-1.0.0.dev21/dementor/tui/action.py +121 -0
- dementor-1.0.0.dev21/dementor/tui/commands/__init__.py +36 -0
- dementor-1.0.0.dev21/dementor/tui/commands/config.py +287 -0
- dementor-1.0.0.dev21/dementor/tui/commands/database.py +334 -0
- dementor-1.0.0.dev21/dementor/tui/commands/env.py +119 -0
- dementor-1.0.0.dev21/dementor/tui/commands/help.py +90 -0
- dementor-1.0.0.dev21/dementor/tui/commands/ipconfig.py +79 -0
- dementor-1.0.0.dev21/dementor/tui/commands/proto.py +504 -0
- dementor-1.0.0.dev21/dementor/tui/completer.py +122 -0
- dementor-1.0.0.dev21/dementor/tui/repl.py +172 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor.egg-info/PKG-INFO +24 -18
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor.egg-info/SOURCES.txt +13 -1
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor.egg-info/entry_points.txt +1 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor.egg-info/requires.txt +9 -7
- dementor-1.0.0.dev21/pyproject.toml +204 -0
- dementor-1.0.0.dev21/tests/test_version.py +6 -0
- dementor-1.0.0.dev19/dementor/assets/banner.txt +0 -19
- dementor-1.0.0.dev19/dementor/loader.py +0 -221
- dementor-1.0.0.dev19/dementor/protocols/msrpc.py +0 -58
- dementor-1.0.0.dev19/dementor/protocols/quic.py +0 -212
- dementor-1.0.0.dev19/pyproject.toml +0 -65
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/LICENSE +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/assets/www/error_page.html +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/assets/www/upnp-default/dd.xml +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/assets/www/upnp-default/present.html +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/assets/www/upnp-default/scpd.xml +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/assets/www/wpad.dat +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/config/attr.py +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/log/hexdump.py +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/paths.py +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/msrpc/epm.py +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor/protocols/spnego.py +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor.egg-info/dependency_links.txt +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/dementor.egg-info/top_level.txt +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/docs/README.pypi.md +0 -0
- {dementor-1.0.0.dev19 → dementor-1.0.0.dev21}/setup.cfg +0 -0
|
@@ -1,38 +1,44 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dementor
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.dev21
|
|
4
4
|
Summary: LLMNR/NBT-NS/mDNS Poisoner and rogue service provider
|
|
5
5
|
Author: MatrixEditor
|
|
6
6
|
Maintainer: MatrixEditor
|
|
7
|
-
|
|
8
|
-
Project-URL:
|
|
9
|
-
Project-URL:
|
|
7
|
+
License-Expression: MIT
|
|
8
|
+
Project-URL: Homepage, https://matrixeditor.github.io/dementor
|
|
9
|
+
Project-URL: Documentation, https://matrixeditor.github.io/dementor
|
|
10
|
+
Project-URL: Source, https://github.com/MatrixEditor/dementor
|
|
11
|
+
Project-URL: Issues, https://github.com/MatrixEditor/dementor/issues
|
|
12
|
+
Keywords: llmnr,mdns,nbt-ns,network-security,penetration-testing,poisoner,rogue-services
|
|
10
13
|
Classifier: Development Status :: 4 - Beta
|
|
14
|
+
Classifier: Environment :: Console
|
|
11
15
|
Classifier: Intended Audience :: Developers
|
|
12
|
-
Classifier: Intended Audience ::
|
|
13
|
-
Classifier:
|
|
16
|
+
Classifier: Intended Audience :: Information Technology
|
|
17
|
+
Classifier: Operating System :: POSIX
|
|
18
|
+
Classifier: Operating System :: Unix
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
14
21
|
Classifier: Programming Language :: Python :: 3.13
|
|
15
|
-
Classifier: Programming Language :: Python :: 3
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.14
|
|
16
23
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
17
24
|
Classifier: Topic :: Security
|
|
18
25
|
Classifier: Topic :: System :: Networking
|
|
19
|
-
|
|
20
|
-
Classifier: Operating System :: POSIX
|
|
21
|
-
Classifier: Operating System :: Unix
|
|
22
|
-
Requires-Python: >=3.10
|
|
26
|
+
Requires-Python: >=3.11
|
|
23
27
|
Description-Content-Type: text/markdown
|
|
24
28
|
License-File: LICENSE
|
|
25
|
-
Requires-Dist: rich
|
|
26
|
-
Requires-Dist: impacket
|
|
27
|
-
Requires-Dist: scapy
|
|
28
29
|
Requires-Dist: aiosmtpd
|
|
29
|
-
Requires-Dist: sqlalchemy
|
|
30
|
-
Requires-Dist: pyasn1
|
|
31
30
|
Requires-Dist: aioquic
|
|
32
|
-
Requires-Dist: typer
|
|
33
|
-
Requires-Dist: jinja2
|
|
34
31
|
Requires-Dist: caterpillar-py>=2.8.1
|
|
32
|
+
Requires-Dist: impacket
|
|
33
|
+
Requires-Dist: jinja2
|
|
34
|
+
Requires-Dist: pyasn1
|
|
35
35
|
Requires-Dist: pyipp
|
|
36
|
+
Requires-Dist: rich
|
|
37
|
+
Requires-Dist: scapy
|
|
38
|
+
Requires-Dist: sqlalchemy
|
|
39
|
+
Requires-Dist: typer
|
|
40
|
+
Requires-Dist: typing-extensions
|
|
41
|
+
Requires-Dist: prompt_toolkit
|
|
36
42
|
Dynamic: license-file
|
|
37
43
|
|
|
38
44
|
# Dementor
|
|
@@ -10,6 +10,7 @@ on the [Documentation](https://matrixeditor.github.io/dementor/) page.
|
|
|
10
10
|
- Near-complete protocol parity with Responder (see [Docs - Compatibility](https://matrixeditor.github.io/dementor/compat.html))
|
|
11
11
|
- Easy integration of new protocols via the extension system
|
|
12
12
|
- A lot of new protocols (e.g. IPP, MySQL, X11, ...)
|
|
13
|
+
- Interactive TUI which supports modifying the runtime configuration of services
|
|
13
14
|
|
|
14
15
|
## Installation
|
|
15
16
|
|
|
@@ -38,20 +39,21 @@ Let's take a look.
|
|
|
38
39
|
```
|
|
39
40
|
Usage: Dementor [OPTIONS]
|
|
40
41
|
|
|
41
|
-
╭─ Options
|
|
42
|
-
│ --interface -I NAME Network interface to use (required for poisoning)
|
|
43
|
-
│ --analyze -A Only analyze traffic, don't respond to requests
|
|
44
|
-
│ --config -c PATH Path to a configuration file (otherwise standard path is used)
|
|
45
|
-
│ --option -O KEY=VALUE Add an extra option to the global configuration file.
|
|
46
|
-
│ --yes,--yolo -y Do not ask before starting attack mode.
|
|
47
|
-
│ --target -t NAME[,...] Target host(s) to attack
|
|
48
|
-
│ --ignore -i NAME[,...] Target host(s) to ignore
|
|
49
|
-
│ --quiet -q Don't print banner at startup
|
|
50
|
-
│ --version Show Dementor's version number
|
|
51
|
-
│ --ts Log timestamps to terminal
|
|
52
|
-
│ --paths Displays the default configuration paths
|
|
53
|
-
│ --
|
|
54
|
-
|
|
42
|
+
╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────╮
|
|
43
|
+
│ --interface -I NAME Network interface to use (required for poisoning) │
|
|
44
|
+
│ --analyze -A Only analyze traffic, don't respond to requests │
|
|
45
|
+
│ --config -c PATH Path to a configuration file (otherwise standard path is used) │
|
|
46
|
+
│ --option -O KEY=VALUE Add an extra option to the global configuration file. │
|
|
47
|
+
│ --yes,--yolo -y Do not ask before starting attack mode. │
|
|
48
|
+
│ --target -t NAME[,...] Target host(s) to attack │
|
|
49
|
+
│ --ignore -i NAME[,...] Target host(s) to ignore │
|
|
50
|
+
│ --quiet -q Don't print banner at startup │
|
|
51
|
+
│ --version Show Dementor's version number │
|
|
52
|
+
│ --ts Log timestamps to the terminal too │
|
|
53
|
+
│ --paths Displays the default configuration paths │
|
|
54
|
+
│ --repl -F Starts Dementor in interactive mode supporting runtime configuration │
|
|
55
|
+
│ --help Show this message and exit. │
|
|
56
|
+
╰────────────────────────────────────────────────────────────────────────────────────────────────────────╯
|
|
55
57
|
```
|
|
56
58
|
|
|
57
59
|
|
|
@@ -504,6 +504,27 @@ Key = "default.key"
|
|
|
504
504
|
# TargetSMBPort = 445
|
|
505
505
|
# TargetSMBHost =
|
|
506
506
|
|
|
507
|
+
# Enable automatic generation of self-signed certificates if none are found.
|
|
508
|
+
SelfSigned = true
|
|
509
|
+
|
|
510
|
+
# Common Name (CN) for the self-signed certificate.
|
|
511
|
+
CertCommonName = "dementor.local"
|
|
512
|
+
|
|
513
|
+
# Organization name for the self-signed certificate.
|
|
514
|
+
CertOrganization = "Dementor"
|
|
515
|
+
|
|
516
|
+
# Country code for the self-signed certificate.
|
|
517
|
+
CertCountry = "US"
|
|
518
|
+
|
|
519
|
+
# State/Province for the self-signed certificate.
|
|
520
|
+
CertState = "CA"
|
|
521
|
+
|
|
522
|
+
# Locality/City for the self-signed certificate.
|
|
523
|
+
CertLocality = "San Francisco"
|
|
524
|
+
|
|
525
|
+
# Validity period in days for the self-signed certificate.
|
|
526
|
+
CertValidityDays = 365
|
|
527
|
+
|
|
507
528
|
|
|
508
529
|
# =============================================================================
|
|
509
530
|
# Proxy
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #020202][/on #000000] [on #020202][/on #020202] [on #000000][/on #020202] [on #000000][/on #000000] [on #000000][/on #000000] [on #000101][/on #000000] [on #030303][/on #000101] [on #010101][/on #030303] [on #000000][/on #010101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
2
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #010101][/on #000000] [on #000000][/on #010101] [on #000000][/on #000000] [on #000000][/on #000000] [on #0a0808][/on #000000] [on #080607][/on #0a0808] [on #000000][/on #080607] [on #000000][/on #000000] [on #000000][/on #000000] [on #010101][/on #000000] [on #000000][/on #010101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
3
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000100][/on #000000] [on #000000][/on #000100] [on #323430][/on #000000] [on #728a7e][/on #323430]+[on #98bbaa][/on #728a7e]*[on #aad1be][/on #98bbaa]#[on #acd0bc][/on #aad1be]#[on #9ab5a5][/on #acd0bc]*[on #68766d][/on #9ab5a5]=[on #1a1817][/on #68766d] [on #000000][/on #1a1817] [on #010101][/on #000000] [on #000000][/on #010101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
4
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #010202][/on #000000] [on #020506][/on #010202] [on #000000][/on #020506] [on #000000][/on #000000] [on #010202][/on #000000] [on #000000][/on #010202] [on #59665d][/on #000000]-[on #abe6d2][/on #59665d]%[on #b3ebd1][/on #abe6d2]%[on #afe9cd][/on #b3ebd1]%[on #b5eacf][/on #afe9cd]%[on #c1ecd0][/on #b5eacf]%[on #cdf0d3][/on #c1ecd0]%[on #c6efd5][/on #cdf0d3]%[on #abd2c1][/on #c6efd5]#[on #353431][/on #abd2c1] [on #000000][/on #353431] [on #020202][/on #000000] [on #000101][/on #020202] [on #000000][/on #000101] [on #030708][/on #000000] [on #000000][/on #030708] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
5
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #040a0a][/on #000000] [on #000102][/on #040a0a] [on #020304][/on #000102] [on #010405][/on #020304] [on #23201e][/on #010405] [on #83d1c9][/on #23201e]#[on #99e1d0][/on #83d1c9]#[on #9de5cc][/on #99e1d0]%[on #a3f1d7][/on #9de5cc]%[on #acf6dd][/on #a3f1d7]%[on #b4f7dd][/on #acf6dd]%[on #bdf4d7][/on #b4f7dd]%[on #cbebce][/on #bdf4d7]%[on #a0e5d3][/on #cbebce]%[on #87bbaf][/on #a0e5d3]*[on #060202][/on #87bbaf] [on #03090a][/on #060202] [on #000101][/on #03090a] [on #010202][/on #000101] [on #050a0a][/on #010202] [on #000000][/on #050a0a] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
6
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #010304][/on #000000] [on #071314][/on #010304] [on #071415][/on #071314] [on #091516][/on #071415] [on #0c1416][/on #091516] [on #000000][/on #0c1416] [on #576762][/on #000000]-[on #5eb8b9][/on #576762]*[on #98e2d0][/on #5eb8b9]#[on #82ddca][/on #98e2d0]#[on #699f9b][/on #82ddca]+[on #638083][/on #699f9b]=[on #658988][/on #638083]=[on #80bbb0][/on #658988]*[on #9fedd6][/on #80bbb0]%[on #87d7ca][/on #9fedd6]#[on #71c2be][/on #87d7ca]*[on #343330][/on #71c2be] [on #000202][/on #343330] [on #0c1617][/on #000202] [on #071011][/on #0c1617] [on #081516][/on #071011] [on #050e0e][/on #081516] [on #000000][/on #050e0e] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
7
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000101][/on #000000] [on #020405][/on #000101] [on #020506][/on #020405] [on #04080a][/on #020506] [on #071011][/on #04080a] [on #050b0b][/on #071011] [on #090c10][/on #050b0b] [on #101c22][/on #090c10] [on #06050c][/on #101c22] [on #77a8a2][/on #06050c]*[on #499fa5][/on #77a8a2]+[on #9ad5c5][/on #499fa5]#[on #39525c][/on #9ad5c5] [on #2a2a42][/on #39525c] [on #020321][/on #2a2a42] [on #080925][/on #020321] [on #313449][/on #080925] [on #678587][/on #313449]=[on #87cfc2][/on #678587]#[on #4da4a9][/on #87cfc2]+[on #6d7f78][/on #4da4a9]=[on #000001][/on #6d7f78] [on #121d21][/on #000001] [on #05070b][/on #121d21] [on #071012][/on #05070b] [on #060c0e][/on #071012] [on #020607][/on #060c0e] [on #010304][/on #020607] [on #010304][/on #010304] [on #000001][/on #010304] [on #000000][/on #000001] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] [bold]Dementor [white]v{dementor_version}[/white][/bold]
|
|
8
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000001][/on #000000] [on #010203][/on #000001] [on #020506][/on #010203] [on #091414][/on #020506] [on #081214][/on #091414] [on #0d2629][/on #081214] [on #12292e][/on #0d2629] [on #0e2835][/on #12292e] [on #00162f][/on #0e2835] [on #1e364b][/on #00162f] [on #72b9b4][/on #1e364b]*[on #81c5c1][/on #72b9b4]*[on #475f68][/on #81c5c1]-[on #060826][/on #475f68] [on #262e42][/on #060826] [on #0f162d][/on #262e42] [on #141a31][/on #0f162d] [on #23293f][/on #141a31] [on #050a26][/on #23293f] [on #668d8e][/on #050a26]+[on #8ad8cd][/on #668d8e]#[on #7da5a0][/on #8ad8cd]*[on #08213a][/on #7da5a0] [on #062137][/on #08213a] [on #0f2f39][/on #062137] [on #13292c][/on #0f2f39] [on #0c2122][/on #13292c] [on #071113][/on #0c2122] [on #081212][/on #071113] [on #010304][/on #081212] [on #010203][/on #010304] [on #000000][/on #010203] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] [i]Advanced mDNS/LLMNR/NBTNS multicast[/i]
|
|
9
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000101][/on #000000] [on #010303][/on #000101] [on #010404][/on #010303] [on #091919][/on #010404] [on #070f0f][/on #091919] [on #0c171b][/on #070f0f] [on #11212d][/on #0c171b] [on #102b3e][/on #11212d] [on #2d5668][/on #102b3e] [on #4c7984][/on #2d5668]=[on #8fcbc2][/on #4c7984]#[on #7dd5ca][/on #8fcbc2]#[on #7c9b9e][/on #7dd5ca]+[on #00112b][/on #7c9b9e] [on #0f142c][/on #00112b] [on #071028][/on #0f142c] [on #0d132a][/on #071028] [on #0c1228][/on #0d132a] [on #091128][/on #0c1228] [on #090d25][/on #091128] [on #163047][/on #090d25] [on #a0cdc2][/on #163047]#[on #84d6ca][/on #a0cdc2]#[on #8abbb8][/on #84d6ca]*[on #396c7a][/on #8abbb8]-[on #285162][/on #396c7a] [on #0d2336][/on #285162] [on #12232d][/on #0d2336] [on #081215][/on #12232d] [on #091515][/on #081215] [on #0b1717][/on #091515] [on #010101][/on #0b1717] [on #010304][/on #010101] [on #000000][/on #010304] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] [i]poisoner and rogue service provider[/]
|
|
10
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #010203][/on #000000] [on #010202][/on #010203] [on #103534][/on #010202] [on #0a1d1e][/on #103534] [on #03000a][/on #0a1d1e] [on #152f3d][/on #03000a] [on #05354e][/on #152f3d] [on #21586e][/on #05354e] [on #b1e0d1][/on #21586e]%[on #94f3d9][/on #b1e0d1]%[on #7bdfcd][/on #94f3d9]#[on #45a9ae][/on #7bdfcd]+[on #60959c][/on #45a9ae]+[on #3b7381][/on #60959c]-[on #0c1930][/on #3b7381] [on #0a102a][/on #0c1930] [on #0c132b][/on #0a102a] [on #0c142c][/on #0c132b] [on #0c0c25][/on #0c142c] [on #10253c][/on #0c0c25] [on #487683][/on #10253c]=[on #52949f][/on #487683]+[on #4dbabb][/on #52949f]*[on #8ae8d3][/on #4dbabb]#[on #b4f7dd][/on #8ae8d3]%[on #9cbeb7][/on #b4f7dd]#[on #04435e][/on #9cbeb7] [on #0b384d][/on #04435e] [on #122836][/on #0b384d] [on #020005][/on #122836] [on #103232][/on #020005] [on #0c2323][/on #103232] [on #010202][/on #0c2323] [on #000101][/on #010202] [on #000000][/on #000101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
11
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000202][/on #000000] [on #000101][/on #000202] [on #010303][/on #000101] [on #08191a][/on #010303] [on #1b575a][/on #08191a] [on #174451][/on #1b575a] [on #0b4b62][/on #174451] [on #56999e][/on #0b4b62]+[on #97dacd][/on #56999e]#[on #9ee3d2][/on #97dacd]%[on #85ddcb][/on #9ee3d2]#[on #8fecd4][/on #85ddcb]%[on #4fa7a9][/on #8fecd4]+[on #2c7585][/on #4fa7a9]-[on #509fa7][/on #2c7585]+[on #3d6a7a][/on #509fa7]-[on #0d112b][/on #3d6a7a] [on #0d132b][/on #0d112b] [on #0b0e27][/on #0d132b] [on #162039][/on #0b0e27] [on #376676][/on #162039]-[on #4c8a91][/on #376676]=[on #257382][/on #4c8a91]-[on #70cec1][/on #257382]*[on #8ee9d1][/on #70cec1]#[on #8fd0c0][/on #8ee9d1]#[on #94dac9][/on #8fd0c0]#[on #9fd4c9][/on #94dac9]#[on #428590][/on #9fd4c9]=[on #0b445a][/on #428590] [on #1b4f57][/on #0b445a] [on #154d4d][/on #1b4f57] [on #020a0b][/on #154d4d] [on #010505][/on #020a0b] [on #000000][/on #010505] [on #000102][/on #000000] [on #000000][/on #000102] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
12
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #010203][/on #000000] [on #000001][/on #010203] [on #040809][/on #000001] [on #0a1117][/on #040809] [on #132535][/on #0a1117] [on #0d5067][/on #132535] [on #3a97a3][/on #0d5067]=[on #aceedb][/on #3a97a3]%[on #7ce3cf][/on #aceedb]#[on #6ad8ca][/on #7ce3cf]#[on #64cdc6][/on #6ad8ca]*[on #55b1b0][/on #64cdc6]+[on #7ed9cc][/on #55b1b0]#[on #2b7286][/on #7ed9cc]-[on #276a7f][/on #2b7286]-[on #41a6b0][/on #276a7f]+[on #32848e][/on #41a6b0]=[on #0e0e28][/on #32848e] [on #12233c][/on #0e0e28] [on #30939e][/on #12233c]=[on #3a8291][/on #30939e]=[on #276278][/on #3a8291]-[on #4a9ea2][/on #276278]+[on #73cdc1][/on #4a9ea2]*[on #63b5b1][/on #73cdc1]*[on #66cabf][/on #63b5b1]*[on #77e2cd][/on #66cabf]#[on #94ebd2][/on #77e2cd]%[on #c3eedb][/on #94ebd2]%[on #207b8b][/on #c3eedb]-[on #0d4154][/on #207b8b] [on #0e171f][/on #0d4154] [on #071012][/on #0e171f] [on #030b0d][/on #071012] [on #000001][/on #030b0d] [on #000202][/on #000001] [on #000000][/on #000202] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] [bold]Using Libraries[/bold]
|
|
13
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #020405][/on #000000] [on #000000][/on #020405] [on #0b1520][/on #000000] [on #0d304a][/on #0b1520] [on #195267][/on #0d304a] [on #96cdc3][/on #195267]#[on #84ddcf][/on #96cdc3]#[on #87e4d0][/on #84ddcf]#[on #50c1bf][/on #87e4d0]*[on #3fbabc][/on #50c1bf]+[on #40949a][/on #3fbabc]=[on #54b0ad][/on #40949a]+[on #77ecda][/on #54b0ad]#[on #318896][/on #77ecda]=[on #24637c][/on #318896]-[on #318c9b][/on #24637c]=[on #101935][/on #318c9b] [on #193d56][/on #101935] [on #29788e][/on #193d56]-[on #1d5973][/on #29788e] [on #4cacad][/on #1d5973]+[on #85f2dd][/on #4cacad]%[on #36868d][/on #85f2dd]=[on #44a8ac][/on #36868d]+[on #35adb5][/on #44a8ac]+[on #63d0c6][/on #35adb5]*[on #89e3d0][/on #63d0c6]#[on #a5eed9][/on #89e3d0]%[on #84adaa][/on #a5eed9]*[on #00314d][/on #84adaa] [on #122637][/on #00314d] [on #070d13][/on #122637] [on #000000][/on #070d13] [on #020405][/on #000000] [on #000000][/on #020405] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] - [b]scapy[/b] : [white]{scapy_version}[/white]
|
|
14
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #071919][/on #000000] [on #0e3333][/on #071919] [on #06050e][/on #0e3333] [on #0c3047][/on #06050e] [on #548086][/on #0c3047]=[on #7ad7c8][/on #548086]#[on #4db2b3][/on #7ad7c8]+[on #8ee2d1][/on #4db2b3]#[on #40b3b8][/on #8ee2d1]+[on #2b8b9c][/on #40b3b8]=[on #49aeb2][/on #2b8b9c]+[on #22576a][/on #49aeb2] [on #40a6ac][/on #22576a]+[on #59d6cf][/on #40a6ac]*[on #2c8799][/on #59d6cf]=[on #1d4b68][/on #2c8799] [on #11203c][/on #1d4b68] [on #122541][/on #11203c] [on #1b526f][/on #122541] [on #339da8][/on #1b526f]=[on #54d1cb][/on #339da8]*[on #2a7984][/on #54d1cb]-[on #316e79][/on #2a7984]-[on #399ea9][/on #316e79]+[on #1e7f95][/on #399ea9]-[on #57c9c4][/on #1e7f95]*[on #8cd6c7][/on #57c9c4]#[on #50c0bd][/on #8cd6c7]*[on #8cd8cb][/on #50c0bd]#[on #315e6e][/on #8cd8cb]-[on #0b263e][/on #315e6e] [on #040208][/on #0b263e] [on #0d3334][/on #040208] [on #040d0e][/on #0d3334] [on #000000][/on #040d0e] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] - [b]impacket[/b] : [white]{impacket_version}[/white]
|
|
15
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000101][/on #000000] [on #010404][/on #000101] [on #1c5b58][/on #010404] [on #011416][/on #1c5b58] [on #1e404b][/on #011416] [on #5eb0ae][/on #1e404b]+[on #49bcb9][/on #5eb0ae]*[on #37a0ab][/on #49bcb9]+[on #56a7a9][/on #37a0ab]+[on #4fc7c7][/on #56a7a9]*[on #216d85][/on #4fc7c7]-[on #256e82][/on #216d85]-[on #36949f][/on #256e82]=[on #183c58][/on #36949f] [on #3193a0][/on #183c58]=[on #39abb4][/on #3193a0]+[on #15334d][/on #39abb4] [on #11233c][/on #15334d] [on #101d38][/on #11233c] [on #1f5a72][/on #101d38] [on #3cb7bc][/on #1f5a72]+[on #1f6b7d][/on #3cb7bc]-[on #19455c][/on #1f6b7d] [on #3498a3][/on #19455c]=[on #1c5468][/on #3498a3] [on #218096][/on #1c5468]=[on #6dd0cc][/on #218096]*[on #4d9198][/on #6dd0cc]=[on #47bdbf][/on #4d9198]*[on #53c2c1][/on #47bdbf]*[on #54a3a5][/on #53c2c1]+[on #062131][/on #54a3a5] [on #072426][/on #062131] [on #175354][/on #072426] [on #000001][/on #175354] [on #000101][/on #000001] [on #000000][/on #000101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] - [b]aiosmtpd[/b] : [white]{aiosmtpd_version}[/white]
|
|
16
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #030908][/on #000000] [on #2d6364][/on #030908]-[on #69acab][/on #2d6364]+[on #45bfbe][/on #69acab]*[on #2c8897][/on #45bfbe]=[on #37a1ad][/on #2c8897]+[on #25697e][/on #37a1ad]-[on #52aaad][/on #25697e]+[on #35a6b1][/on #52aaad]+[on #112c46][/on #35a6b1] [on #1f4b61][/on #112c46] [on #318393][/on #1f4b61]=[on #1c4762][/on #318393] [on #2c7f90][/on #1c4762]=[on #152e46][/on #2c7f90] [on #142540][/on #152e46] [on #101a35][/on #142540] [on #184058][/on #101a35] [on #256a7d][/on #184058]-[on #1e546b][/on #256a7d] [on #257a85][/on #1e546b]-[on #0a2230][/on #257a85] [on #154655][/on #0a2230] [on #46bfc2][/on #154655]*[on #46838b][/on #46bfc2]=[on #1b788c][/on #46838b]-[on #3baab3][/on #1b788c]+[on #35a1aa][/on #3baab3]+[on #55cac6][/on #35a1aa]*[on #61a4a3][/on #55cac6]+[on #215657][/on #61a4a3] [on #020605][/on #215657] [on #000000][/on #020605] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] - [b]aioquic[/b] : [white]{aioquic_version}[/white]
|
|
17
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000101][/on #000000] [on #000000][/on #000101] [on #0b1b21][/on #000000] [on #3b7679][/on #0b1b21]-[on #328a8e][/on #3b7679]=[on #2ba3af][/on #328a8e]+[on #268396][/on #2ba3af]=[on #1b4865][/on #268396] [on #298193][/on #1b4865]=[on #245f72][/on #298193]-[on #2ea2ae][/on #245f72]+[on #258188][/on #2ea2ae]=[on #0d0a23][/on #258188] [on #142f43][/on #0d0a23] [on #20546e][/on #142f43] [on #1b3c5c][/on #20546e] [on #18314a][/on #1b3c5c] [on #13243f][/on #18314a] [on #101b36][/on #13243f] [on #102442][/on #101b36] [on #1a4966][/on #102442] [on #1e616e][/on #1a4966]-[on #080f1c][/on #1e616e] [on #0e1223][/on #080f1c] [on #38a7ac][/on #0e1223]+[on #298796][/on #38a7ac]=[on #185366][/on #298796] [on #258295][/on #185366]=[on #1d5370][/on #258295] [on #299ca9][/on #1d5370]=[on #2b9faa][/on #299ca9]=[on #419491][/on #2b9faa]=[on #407173][/on #419491]-[on #071013][/on #407173] [on #000101][/on #071013] [on #000000][/on #000101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000] - [b]pyipp[/b] : [white]{pyipp_version}[/white]
|
|
18
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #010202][/on #000000] [on #000101][/on #010202] [on #081214][/on #000101] [on #051717][/on #081214] [on #092427][/on #051717] [on #133a48][/on #092427] [on #247d90][/on #133a48]-[on #225e77][/on #247d90]-[on #255e75][/on #225e77]-[on #226175][/on #255e75]-[on #1c657a][/on #226175]-[on #288698][/on #1c657a]=[on #122336][/on #288698] [on #165458][/on #122336] [on #060e18][/on #165458] [on #0d2037][/on #060e18] [on #173553][/on #0d2037] [on #14243f][/on #173553] [on #152542][/on #14243f] [on #173454][/on #152542] [on #10243b][/on #173454] [on #0c232b][/on #10243b] [on #17545f][/on #0c232b] [on #193753][/on #17545f] [on #2e9ba9][/on #193753]=[on #154f65][/on #2e9ba9] [on #236072][/on #154f65]-[on #2d788b][/on #236072]-[on #277087][/on #2d788b]-[on #227f8d][/on #277087]-[on #0d2c37][/on #227f8d] [on #052323][/on #0d2c37] [on #071516][/on #052323] [on #070e0f][/on #071516] [on #000000][/on #070e0f] [on #000101][/on #000000] [on #000000][/on #000101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
19
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #030b0b][/on #000000] [on #0a1e1e][/on #030b0b] [on #000000][/on #0a1e1e] [on #061015][/on #000000] [on #1a4b5e][/on #061015] [on #1f5160][/on #1a4b5e] [on #2a7786][/on #1f5160]-[on #206078][/on #2a7786]-[on #267d90][/on #206078]-[on #0e1831][/on #267d90] [on #144749][/on #0e1831] [on #17474f][/on #144749] [on #030209][/on #17474f] [on #0b1626][/on #030209] [on #152640][/on #0b1626] [on #0f1e31][/on #152640] [on #071018][/on #0f1e31] [on #03060d][/on #071018] [on #217172][/on #03060d]-[on #0d2a2f][/on #217172] [on #133249][/on #0d2a2f] [on #22788f][/on #133249]-[on #267386][/on #22788f]-[on #338187][/on #267386]=[on #22586a][/on #338187] [on #195364][/on #22586a] [on #040d0e][/on #195364] [on #000000][/on #040d0e] [on #0c2728][/on #000000] [on #000303][/on #0c2728] [on #000000][/on #000303] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
20
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000102][/on #000000] [on #000000][/on #000102] [on #000000][/on #000000] [on #030609][/on #000000] [on #050e10][/on #030609] [on #1c4a58][/on #050e10] [on #277080][/on #1c4a58]-[on #236372][/on #277080]-[on #0b1d1f][/on #236372] [on #0a1c23][/on #0b1d1f] [on #111e39][/on #0a1c23] [on #070d16][/on #111e39] [on #000000][/on #070d16] [on #000000][/on #000000] [on #0b1728][/on #000000] [on #10263f][/on #0b1728] [on #0c2426][/on #10263f] [on #122b2e][/on #0c2426] [on #2a6f7a][/on #122b2e]-[on #266779][/on #2a6f7a]-[on #16414a][/on #266779] [on #020709][/on #16414a] [on #030d13][/on #020709] [on #000000][/on #030d13] [on #000000][/on #000000] [on #000202][/on #000000] [on #000000][/on #000202] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
21
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000100][/on #000000] [on #000000][/on #000100] [on #000000][/on #000000] [on #000101][/on #000000] [on #040a0a][/on #000101] [on #000000][/on #040a0a] [on #000000][/on #000000] [on #000000][/on #000000] [on #04090e][/on #000000] [on #081617][/on #04090e] [on #040808][/on #081617] [on #020507][/on #040808] [on #050911][/on #020507] [on #000000][/on #050911] [on #020406][/on #000000] [on #060d17][/on #020406] [on #030506][/on #060d17] [on #070f0e][/on #030506] [on #09181a][/on #070f0e] [on #03070d][/on #09181a] [on #000000][/on #03070d] [on #000000][/on #000000] [on #010202][/on #000000] [on #040a0a][/on #010202] [on #000000][/on #040a0a] [on #000101][/on #000000] [on #000000][/on #000101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
22
|
+
[on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000001][/on #000000] [on #000101][/on #000001] [on #000000][/on #000101] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000202][/on #000000] [on #000000][/on #000202] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [on #000000][/on #000000] [/on #000000]
|
|
@@ -51,7 +51,7 @@ def _set_global_config(config: dict[str, Any]) -> None:
|
|
|
51
51
|
:param config: New configuration dictionary.
|
|
52
52
|
:type config: dict
|
|
53
53
|
"""
|
|
54
|
-
|
|
54
|
+
sys.modules[__name__].dm_config = config
|
|
55
55
|
|
|
56
56
|
|
|
57
57
|
def init_from_file(path: str) -> None:
|
|
@@ -21,8 +21,11 @@
|
|
|
21
21
|
import asyncio
|
|
22
22
|
import typing
|
|
23
23
|
|
|
24
|
-
from typing import Any
|
|
24
|
+
from typing import Any
|
|
25
25
|
from pathlib import Path
|
|
26
|
+
from typing_extensions import override
|
|
27
|
+
|
|
28
|
+
from scapy.arch import get_if_addr, in6_getifaddr
|
|
26
29
|
|
|
27
30
|
from dementor.config.toml import TomlConfig, Attribute
|
|
28
31
|
from dementor.config.util import is_true
|
|
@@ -53,6 +56,7 @@ if typing.TYPE_CHECKING:
|
|
|
53
56
|
from dementor.protocols.msrpc import rpc
|
|
54
57
|
from dementor.db.model import DementorDB
|
|
55
58
|
from dementor.db.connector import DatabaseConfig
|
|
59
|
+
from dementor.loader import ProtocolManager
|
|
56
60
|
|
|
57
61
|
|
|
58
62
|
class SessionConfig(TomlConfig):
|
|
@@ -96,7 +100,9 @@ class SessionConfig(TomlConfig):
|
|
|
96
100
|
ipv6: str | None
|
|
97
101
|
ipv4: str | None
|
|
98
102
|
interface: str | None
|
|
99
|
-
protocols: dict[str,
|
|
103
|
+
protocols: dict[str, str]
|
|
104
|
+
manager: ProtocolManager
|
|
105
|
+
debug: bool
|
|
100
106
|
|
|
101
107
|
db: DementorDB
|
|
102
108
|
db_config: DatabaseConfig
|
|
@@ -161,9 +167,7 @@ class SessionConfig(TomlConfig):
|
|
|
161
167
|
self.analysis = False
|
|
162
168
|
self.loop = asyncio.new_event_loop()
|
|
163
169
|
self.protocols = {}
|
|
164
|
-
|
|
165
|
-
# SMTP configuration
|
|
166
|
-
self.smtp_servers = []
|
|
170
|
+
self.debug = False
|
|
167
171
|
|
|
168
172
|
# NTLM configuration
|
|
169
173
|
self.ntlm_disable_ess = False
|
|
@@ -185,7 +189,7 @@ class SessionConfig(TomlConfig):
|
|
|
185
189
|
raw_path = str(path)
|
|
186
190
|
if raw_path[0] == "/":
|
|
187
191
|
return Path(raw_path)
|
|
188
|
-
|
|
192
|
+
if raw_path.startswith(("./", "../")):
|
|
189
193
|
return Path(raw_path).resolve()
|
|
190
194
|
|
|
191
195
|
return (Path(self.workspace_path) / raw_path).resolve()
|
|
@@ -203,3 +207,10 @@ class SessionConfig(TomlConfig):
|
|
|
203
207
|
|
|
204
208
|
return config[".".join(parts)]
|
|
205
209
|
|
|
210
|
+
def set_interface(self, interface: str) -> None:
|
|
211
|
+
self.interface = interface
|
|
212
|
+
self.ipv4 = get_if_addr(self.interface)
|
|
213
|
+
self.ipv6 = next(
|
|
214
|
+
(ip[0] for ip in in6_getifaddr() if ip[2] == self.interface),
|
|
215
|
+
None,
|
|
216
|
+
)
|
|
@@ -18,7 +18,9 @@
|
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
19
|
# SOFTWARE.
|
|
20
20
|
# pyright: reportAny=false, reportExplicitAny=false
|
|
21
|
-
from typing import ClassVar, NamedTuple,
|
|
21
|
+
from typing import ClassVar, NamedTuple, Any, TypeVar
|
|
22
|
+
from collections.abc import Callable
|
|
23
|
+
from typing_extensions import override
|
|
22
24
|
|
|
23
25
|
from dementor.config.util import get_value
|
|
24
26
|
|
|
@@ -64,9 +66,7 @@ class Attribute(NamedTuple):
|
|
|
64
66
|
|
|
65
67
|
|
|
66
68
|
class TomlConfig:
|
|
67
|
-
"""
|
|
68
|
-
Base class for configuration objects that are built from a TOML-derived
|
|
69
|
-
``dict`` structure.
|
|
69
|
+
"""Base class for configuration objects built from a TOML-derived dict.
|
|
70
70
|
|
|
71
71
|
Sub-classes must define two class attributes:
|
|
72
72
|
|
|
@@ -75,7 +75,7 @@ class TomlConfig:
|
|
|
75
75
|
* ``_fields_`` - a list of :class:`Attribute` objects describing how each
|
|
76
76
|
instance attribute is resolved.
|
|
77
77
|
|
|
78
|
-
Example
|
|
78
|
+
Example:
|
|
79
79
|
-------
|
|
80
80
|
>>> class MyConfig(TomlConfig):
|
|
81
81
|
... _section_ = "my"
|
|
@@ -86,6 +86,7 @@ class TomlConfig:
|
|
|
86
86
|
>>> cfg = MyConfig({"host": "example.com"})
|
|
87
87
|
>>> cfg.host, cfg.port
|
|
88
88
|
('example.com', 8080)
|
|
89
|
+
|
|
89
90
|
"""
|
|
90
91
|
|
|
91
92
|
# Sub-classes are expected to provide these attributes.
|
|
@@ -137,9 +138,7 @@ class TomlConfig:
|
|
|
137
138
|
|
|
138
139
|
@staticmethod
|
|
139
140
|
def build_config(cls_ty: type[_T], section: str | None = None) -> _T:
|
|
140
|
-
"""
|
|
141
|
-
Factory that builds a concrete ``TomlConfig`` subclass from the global
|
|
142
|
-
configuration.
|
|
141
|
+
"""Build a concrete ``TomlConfig`` subclass from the global configuration.
|
|
143
142
|
|
|
144
143
|
:param cls_ty: Concrete subclass of :class:`TomlConfig` to instantiate.
|
|
145
144
|
:type cls_ty: type[_T]
|
|
@@ -233,7 +232,7 @@ class TomlConfig:
|
|
|
233
232
|
value = config.get(qname, default_val)
|
|
234
233
|
if value is _LOCAL:
|
|
235
234
|
# ``_LOCAL`` means “required but not supplied”.
|
|
236
|
-
raise
|
|
235
|
+
raise ValueError(
|
|
237
236
|
f"Expected '{qname}' in config or section({section}) for "
|
|
238
237
|
+ f"{self.__class__.__name__}!"
|
|
239
238
|
)
|
|
@@ -250,3 +249,10 @@ class TomlConfig:
|
|
|
250
249
|
setter(value)
|
|
251
250
|
else:
|
|
252
251
|
setattr(self, field_name, value)
|
|
252
|
+
|
|
253
|
+
def as_dict(self) -> dict[str, Any]:
|
|
254
|
+
return {a.attr_name: getattr(self, a.attr_name, None) for a in self._fields_}
|
|
255
|
+
|
|
256
|
+
@override
|
|
257
|
+
def __repr__(self) -> str:
|
|
258
|
+
return repr(self.as_dict())
|
|
@@ -98,7 +98,8 @@ class BytesValue:
|
|
|
98
98
|
"""
|
|
99
99
|
|
|
100
100
|
def __init__(self, length: int | None = None) -> None:
|
|
101
|
-
"""
|
|
101
|
+
"""Initialize BytesValue.
|
|
102
|
+
|
|
102
103
|
:param length: Desired length for randomly generated tokens when the
|
|
103
104
|
input is ``None``. If omitted a single byte is generated.
|
|
104
105
|
:type length: int | None, optional
|
|
@@ -127,9 +128,7 @@ class BytesValue:
|
|
|
127
128
|
|
|
128
129
|
case bytes():
|
|
129
130
|
if self.length is not None and len(value) != self.length:
|
|
130
|
-
raise ValueError(
|
|
131
|
-
f"Expected {self.length} bytes, got {len(value)}"
|
|
132
|
-
)
|
|
131
|
+
raise ValueError(f"Expected {self.length} bytes, got {len(value)}")
|
|
133
132
|
return value
|
|
134
133
|
case _:
|
|
135
134
|
return self(str(value))
|
|
@@ -219,4 +218,4 @@ def now() -> str:
|
|
|
219
218
|
:return: Formatted timestamp.
|
|
220
219
|
:rtype: str
|
|
221
220
|
"""
|
|
222
|
-
return datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S")
|
|
221
|
+
return datetime.datetime.now(tz=datetime.UTC).strftime("%Y-%m-%d-%H-%M-%S")
|
|
@@ -30,6 +30,7 @@ _NO_USER = "<missing-user>"
|
|
|
30
30
|
_HOST_INFO = "_host_info"
|
|
31
31
|
"""Key used in extras dict to store host information for credential logging."""
|
|
32
32
|
|
|
33
|
+
|
|
33
34
|
def normalize_client_address(client: str) -> str:
|
|
34
35
|
"""Normalize IPv6-mapped IPv4 addresses by stripping IPv6 prefix.
|
|
35
36
|
|
|
@@ -45,5 +46,6 @@ def normalize_client_address(client: str) -> str:
|
|
|
45
46
|
'192.168.1.1'
|
|
46
47
|
>>> normalize_client_address("2001:db8::1")
|
|
47
48
|
'2001:db8::1'
|
|
49
|
+
|
|
48
50
|
"""
|
|
49
51
|
return client.removeprefix("::ffff:")
|
|
@@ -101,14 +101,13 @@ def init_engine(session: SessionConfig) -> Engine | None:
|
|
|
101
101
|
path = session.db_config.db_path
|
|
102
102
|
if not path:
|
|
103
103
|
return dm_logger.error("Database path not specified!")
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
path = f"/{real_path}"
|
|
104
|
+
# :memory: is a special SQLite in-memory database.
|
|
105
|
+
if dialect == "sqlite" and path != ":memory:":
|
|
106
|
+
real_path = session.resolve_path(path)
|
|
107
|
+
if not real_path.parent.exists():
|
|
108
|
+
dm_logger.debug(f"Creating database directory {real_path.parent}")
|
|
109
|
+
real_path.parent.mkdir(parents=True, exist_ok=True)
|
|
110
|
+
path = f"/{real_path}"
|
|
112
111
|
raw_path = f"{dialect}+{driver}://{path}"
|
|
113
112
|
else:
|
|
114
113
|
# Decompose the user-supplied URL to obtain dialect and driver.
|
|
@@ -124,7 +123,7 @@ def init_engine(session: SessionConfig) -> Engine | None:
|
|
|
124
123
|
if "@" in first_element:
|
|
125
124
|
# keep only the “host:port” part, replace user:pass with stars
|
|
126
125
|
first_element = first_element.split("@")[1]
|
|
127
|
-
path = "***:***@" + "/".join([first_element
|
|
126
|
+
path = "***:***@" + "/".join([first_element, *parts])
|
|
128
127
|
|
|
129
128
|
dm_logger.debug("Using database [%s:%s] at: %s", dialect, driver, path)
|
|
130
129
|
return create_engine(raw_path, isolation_level="AUTOCOMMIT", future=True)
|
|
@@ -142,5 +141,5 @@ def create_db(session: SessionConfig) -> DementorDB:
|
|
|
142
141
|
"""
|
|
143
142
|
engine = init_engine(session)
|
|
144
143
|
if not engine:
|
|
145
|
-
raise
|
|
144
|
+
raise RuntimeError("Failed to create database engine")
|
|
146
145
|
return DementorDB(engine, session)
|
|
@@ -42,7 +42,12 @@ from sqlalchemy.orm import (
|
|
|
42
42
|
from sqlalchemy.sql.selectable import TypedReturnsRows
|
|
43
43
|
|
|
44
44
|
from dementor.config.session import SessionConfig
|
|
45
|
-
from dementor.db import
|
|
45
|
+
from dementor.db import (
|
|
46
|
+
_CLEARTEXT,
|
|
47
|
+
_NO_USER,
|
|
48
|
+
normalize_client_address,
|
|
49
|
+
_HOST_INFO,
|
|
50
|
+
)
|
|
46
51
|
from dementor.log.logger import dm_logger
|
|
47
52
|
from dementor.log import dm_console_lock
|
|
48
53
|
from dementor.log.stream import log_to
|
|
@@ -59,8 +64,6 @@ class ModelBase(DeclarativeBase):
|
|
|
59
64
|
for ``create_all`` / ``drop_all`` calls.
|
|
60
65
|
"""
|
|
61
66
|
|
|
62
|
-
pass
|
|
63
|
-
|
|
64
67
|
|
|
65
68
|
class HostInfo(ModelBase):
|
|
66
69
|
"""Stores basic host information from network scans.
|
|
@@ -156,11 +159,11 @@ class DementorDB:
|
|
|
156
159
|
for adding hosts, extras, and credentials while handling duplicates and logging.
|
|
157
160
|
"""
|
|
158
161
|
|
|
159
|
-
def __init__(self, engine: Engine, config:
|
|
162
|
+
def __init__(self, engine: Engine, config: SessionConfig) -> None:
|
|
160
163
|
self.db_engine: Engine = engine
|
|
161
164
|
self.db_path: str = str(engine.url.database)
|
|
162
165
|
self.metadata: MetaData = ModelBase.metadata
|
|
163
|
-
self.config:
|
|
166
|
+
self.config: SessionConfig = config
|
|
164
167
|
|
|
165
168
|
# Ensure tables exist; any problem is reported immediately.
|
|
166
169
|
with self.db_engine.connect():
|
|
@@ -197,7 +200,7 @@ class DementorDB:
|
|
|
197
200
|
"Could not execute SQL - you are probably using an outdated Dementor.db"
|
|
198
201
|
)
|
|
199
202
|
else:
|
|
200
|
-
raise
|
|
203
|
+
raise
|
|
201
204
|
|
|
202
205
|
def commit(self):
|
|
203
206
|
"""Commit the current transaction and handle schema-related errors."""
|
|
@@ -209,7 +212,7 @@ class DementorDB:
|
|
|
209
212
|
"Could not execute SQL - you are probably using an outdated Dementor.db"
|
|
210
213
|
)
|
|
211
214
|
else:
|
|
212
|
-
raise
|
|
215
|
+
raise
|
|
213
216
|
|
|
214
217
|
# --------------------------------------------------------------------- #
|
|
215
218
|
# Public CRUD-style helpers
|
|
@@ -360,7 +363,7 @@ class DementorDB:
|
|
|
360
363
|
|
|
361
364
|
target_logger.debug(
|
|
362
365
|
f"Adding {credtype} for {username} on {client_address}: "
|
|
363
|
-
|
|
366
|
+
f"{target_logger} | {protocol} | {domain} | {hostname} | {username} | {password}"
|
|
364
367
|
)
|
|
365
368
|
|
|
366
369
|
# Ensure the host exists (or create it) before linking the cred.
|
|
@@ -401,7 +404,9 @@ class DementorDB:
|
|
|
401
404
|
|
|
402
405
|
cred = Credential(
|
|
403
406
|
# REVISIT: replace with util.now()
|
|
404
|
-
timestamp=datetime.datetime.now().strftime(
|
|
407
|
+
timestamp=datetime.datetime.now(tz=datetime.UTC).strftime(
|
|
408
|
+
"%Y-%m-%d %H:%M:%S"
|
|
409
|
+
),
|
|
405
410
|
protocol=protocol.lower(),
|
|
406
411
|
credtype=credtype.lower(),
|
|
407
412
|
client=f"{client_address}:{port}",
|
|
@@ -65,7 +65,8 @@ class FilterObj:
|
|
|
65
65
|
if (sys.version_info.major, sys.version_info.minor) < (3, 13):
|
|
66
66
|
warnings.warn(
|
|
67
67
|
"glob.translate is only available since 3.13, "
|
|
68
|
-
+ "using basic-string instead"
|
|
68
|
+
+ "using basic-string instead",
|
|
69
|
+
stacklevel=2,
|
|
69
70
|
)
|
|
70
71
|
self.pattern = None
|
|
71
72
|
else:
|
|
@@ -74,7 +75,7 @@ class FilterObj:
|
|
|
74
75
|
self.pattern = None
|
|
75
76
|
|
|
76
77
|
def matches(self, source: str) -> bool:
|
|
77
|
-
"""Check if the source string matches this filter.
|
|
78
|
+
r"""Check if the source string matches this filter.
|
|
78
79
|
|
|
79
80
|
:param source: String to test against the filter.
|
|
80
81
|
:type source: str
|
|
@@ -88,6 +89,7 @@ class FilterObj:
|
|
|
88
89
|
>>> f = FilterObj("host1")
|
|
89
90
|
>>> f.matches("host1")
|
|
90
91
|
True
|
|
92
|
+
|
|
91
93
|
"""
|
|
92
94
|
return (
|
|
93
95
|
self.pattern.match(source) is not None
|
|
@@ -122,13 +124,13 @@ class FilterObj:
|
|
|
122
124
|
filters = []
|
|
123
125
|
path = pathlib.Path(source)
|
|
124
126
|
if path.exists() and path.is_file():
|
|
125
|
-
filters = [
|
|
126
|
-
FilterObj(t, extra) for t in path.read_text("utf-8").splitlines()
|
|
127
|
-
]
|
|
127
|
+
filters = [FilterObj(t, extra) for t in path.read_text("utf-8").splitlines()]
|
|
128
128
|
return filters
|
|
129
129
|
|
|
130
130
|
|
|
131
|
-
def _optional_filter(
|
|
131
|
+
def _optional_filter(
|
|
132
|
+
value: list[str | dict[str, Any]] | None,
|
|
133
|
+
) -> "Filters | None":
|
|
132
134
|
"""Factory function to convert optional config list into `Filters` instance.
|
|
133
135
|
|
|
134
136
|
Used with `Attribute` to auto-convert config values. Returns `None` if input is `None`.
|
|
@@ -197,7 +199,8 @@ def in_scope(value: str, config: Any) -> bool:
|
|
|
197
199
|
:rtype: bool
|
|
198
200
|
|
|
199
201
|
Example:
|
|
200
|
-
>>> class C:
|
|
202
|
+
>>> class C:
|
|
203
|
+
... pass
|
|
201
204
|
>>> cfg = C()
|
|
202
205
|
>>> cfg.targets = Filters(["host1", "host2"])
|
|
203
206
|
>>> in_scope("host1", cfg)
|
|
@@ -207,6 +210,7 @@ def in_scope(value: str, config: Any) -> bool:
|
|
|
207
210
|
>>> cfg.ignored = Filters(["host1"])
|
|
208
211
|
>>> in_scope("host1", cfg)
|
|
209
212
|
False
|
|
213
|
+
|
|
210
214
|
"""
|
|
211
215
|
if hasattr(config, "targets"):
|
|
212
216
|
is_target = value in config.targets if config.targets else True
|
|
@@ -234,7 +238,7 @@ class Filters:
|
|
|
234
238
|
"""
|
|
235
239
|
|
|
236
240
|
def __init__(self, config: list[str | dict[str, Any]]) -> None:
|
|
237
|
-
"""Initialize filters from a configuration list.
|
|
241
|
+
r"""Initialize filters from a configuration list.
|
|
238
242
|
|
|
239
243
|
Each item can be:
|
|
240
244
|
- A string: treated as literal or pattern (`re:...`, `g:...`)
|
|
@@ -244,11 +248,14 @@ class Filters:
|
|
|
244
248
|
:type config: list[str | dict[str, Any]]
|
|
245
249
|
|
|
246
250
|
Example:
|
|
247
|
-
>>> filters = Filters(
|
|
248
|
-
...
|
|
249
|
-
...
|
|
250
|
-
...
|
|
251
|
-
...
|
|
251
|
+
>>> filters = Filters(
|
|
252
|
+
... [
|
|
253
|
+
... "re:.*\\.example\\.com",
|
|
254
|
+
... {"File": "targets.txt"},
|
|
255
|
+
... {"Target": "host1", "reason": "admin"},
|
|
256
|
+
... ]
|
|
257
|
+
... )
|
|
258
|
+
|
|
252
259
|
"""
|
|
253
260
|
self.filters: list[FilterObj] = []
|
|
254
261
|
for filter_config in config:
|