dementor 1.0.0.dev10__tar.gz → 1.0.0.dev11__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.
Potentially problematic release.
This version of dementor might be problematic. Click here for more details.
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/PKG-INFO +3 -1
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/README.md +1 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/__init__.py +1 -1
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/assets/Dementor.toml +162 -2
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/assets/banner.txt +3 -3
- dementor-1.0.0.dev11/dementor/assets/www/upnp-default/dd.xml +32 -0
- dementor-1.0.0.dev11/dementor/assets/www/upnp-default/present.html +84 -0
- dementor-1.0.0.dev11/dementor/assets/www/upnp-default/scpd.xml +3 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/config/session.py +2 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/config/toml.py +6 -5
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/logger.py +2 -2
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/paths.py +10 -1
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/http.py +0 -1
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/llmnr.py +12 -16
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/mdns.py +7 -14
- dementor-1.0.0.dev11/dementor/protocols/ssdp.py +390 -0
- dementor-1.0.0.dev11/dementor/protocols/upnp.py +214 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/servers.py +16 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/standalone.py +17 -3
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor.egg-info/PKG-INFO +3 -1
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor.egg-info/SOURCES.txt +6 -7
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor.egg-info/requires.txt +1 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/docs/README.pypi.md +1 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/pyproject.toml +2 -1
- dementor-1.0.0.dev10/test/test_dcerpc.py +0 -15
- dementor-1.0.0.dev10/test/test_dcom.py +0 -51
- dementor-1.0.0.dev10/test/test_epm.py +0 -40
- dementor-1.0.0.dev10/test/test_mssql_auth.py +0 -56
- dementor-1.0.0.dev10/test/test_ssl_client.py +0 -29
- dementor-1.0.0.dev10/test/test_ssl_server.py +0 -31
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/LICENSE +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/__main__.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/assets/www/error_page.html +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/assets/www/wpad.dat +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/config/__init__.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/config/attr.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/config/util.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/database.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/filters.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/loader.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/__init__.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/ftp.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/imap.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/ipp.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/kerberos.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/ldap.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/msrpc/__init__.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/msrpc/dcom.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/msrpc/epm.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/msrpc/rpc.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/msrpc.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/mssql.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/mysql.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/netbios.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/ntlm.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/pop3.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/quic.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/smb.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/smtp.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/spnego.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor/protocols/x11.py +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor.egg-info/dependency_links.txt +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor.egg-info/entry_points.txt +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/dementor.egg-info/top_level.txt +0 -0
- {dementor-1.0.0.dev10 → dementor-1.0.0.dev11}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: dementor
|
|
3
|
-
Version: 1.0.0.
|
|
3
|
+
Version: 1.0.0.dev11
|
|
4
4
|
Summary: LLMNR/NBT-NS/mDNS Poisoner and rogue service provider
|
|
5
5
|
Author: MatrixEditor
|
|
6
6
|
Maintainer: MatrixEditor
|
|
@@ -53,6 +53,7 @@ Requires-Dist: aioquic
|
|
|
53
53
|
Requires-Dist: typer
|
|
54
54
|
Requires-Dist: jinja2
|
|
55
55
|
Requires-Dist: caterpillar-py
|
|
56
|
+
Requires-Dist: pyipp
|
|
56
57
|
Dynamic: license-file
|
|
57
58
|
|
|
58
59
|
# Dementor
|
|
@@ -66,6 +67,7 @@ on the [Documentation](https://matrixeditor.github.io/dementor/) page.
|
|
|
66
67
|
- Fine-grained, per-protocol configuration using a modular system (see [Docs - Configuration](https://matrixeditor.github.io/dementor/config/index.html))
|
|
67
68
|
- Near-complete protocol parity with Responder (see [Docs - Compatibility](https://matrixeditor.github.io/dementor/compat.html))
|
|
68
69
|
- Easy integration of new protocols via the extension system
|
|
70
|
+
- A lot of new protocols (e.g. IPP, MySQL, X11, ...)
|
|
69
71
|
|
|
70
72
|
## Installation
|
|
71
73
|
|
|
@@ -9,6 +9,7 @@ on the [Documentation](https://matrixeditor.github.io/dementor/) page.
|
|
|
9
9
|
- Fine-grained, per-protocol configuration using a modular system (see [Docs - Configuration](https://matrixeditor.github.io/dementor/config/index.html))
|
|
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
|
+
- A lot of new protocols (e.g. IPP, MySQL, X11, ...)
|
|
12
13
|
|
|
13
14
|
## Installation
|
|
14
15
|
|
|
@@ -60,7 +60,12 @@ LLMNR = true
|
|
|
60
60
|
|
|
61
61
|
NBTNS = true
|
|
62
62
|
|
|
63
|
-
# Enables
|
|
63
|
+
# Enables SSDP multicast poisoning. Does not require superuser privileges.
|
|
64
|
+
# The default value is: true
|
|
65
|
+
|
|
66
|
+
SSDP = true
|
|
67
|
+
|
|
68
|
+
# Enables the MSSQL Browser service. Does not require superuser privileges.
|
|
64
69
|
# The default value is: true
|
|
65
70
|
|
|
66
71
|
SSRP = true
|
|
@@ -134,6 +139,24 @@ POP3 = true
|
|
|
134
139
|
|
|
135
140
|
IMAP = true
|
|
136
141
|
|
|
142
|
+
# Enables X11 TCP servers. Requires no special privileges by default (depends on
|
|
143
|
+
# port configuration)
|
|
144
|
+
# The default value is: true
|
|
145
|
+
|
|
146
|
+
X11 = true
|
|
147
|
+
|
|
148
|
+
# Enables an IPP server. Requires root privileges by default (also depends on
|
|
149
|
+
# port configuration)
|
|
150
|
+
# The default value is: true
|
|
151
|
+
|
|
152
|
+
IPP = true
|
|
153
|
+
|
|
154
|
+
# Enables the UPnP web server.Requires no special privileges by default (depends on
|
|
155
|
+
# port configuration)
|
|
156
|
+
# The default value is: true
|
|
157
|
+
|
|
158
|
+
UPnP = true
|
|
159
|
+
|
|
137
160
|
|
|
138
161
|
# =============================================================================
|
|
139
162
|
# Globals
|
|
@@ -724,6 +747,136 @@ ServerVersion = "8.0.42"
|
|
|
724
747
|
# Key = "/path/to/key"
|
|
725
748
|
|
|
726
749
|
|
|
750
|
+
# =============================================================================
|
|
751
|
+
# X11
|
|
752
|
+
# =============================================================================
|
|
753
|
+
[X11]
|
|
754
|
+
|
|
755
|
+
# Defines the port range the server will listen on. By default, five ports are opened
|
|
756
|
+
# (for displays 0 through 4). Inclusive start and exclusive end.
|
|
757
|
+
|
|
758
|
+
# PortRange = "6000-6005"
|
|
759
|
+
|
|
760
|
+
# Custom message returned to the client after authentication completes.
|
|
761
|
+
|
|
762
|
+
# ErrorMessage = "Access Denied"
|
|
763
|
+
|
|
764
|
+
|
|
765
|
+
# =============================================================================
|
|
766
|
+
# IPP
|
|
767
|
+
# =============================================================================
|
|
768
|
+
[IPP]
|
|
769
|
+
|
|
770
|
+
# Specifies the port used by the IPP server instance.
|
|
771
|
+
|
|
772
|
+
Port = 631
|
|
773
|
+
|
|
774
|
+
# Defines the server name returned in the Server header.The value can be a formatted
|
|
775
|
+
# string, supporting templating (Jinja2)
|
|
776
|
+
|
|
777
|
+
# ServerType = "IPP/1.1 UNIX-{{ random(5) }}"
|
|
778
|
+
|
|
779
|
+
# Specifies additional headers to include in all server responses. Each entry must be
|
|
780
|
+
# a fully qualified HTTP header line without CRLF at the end.
|
|
781
|
+
|
|
782
|
+
# ExtraHeaders = []
|
|
783
|
+
|
|
784
|
+
# Specifies additional attributes to include in the get-printer-attributes response.
|
|
785
|
+
# Each new attribute requires the following fields:
|
|
786
|
+
# - name: e.g. "printer-device-id"
|
|
787
|
+
# - value: e.g. "1234567890"
|
|
788
|
+
# - tag: e.g. "TEXT" (optional, if type alredy known)
|
|
789
|
+
# # The default attribute settings below can be overridden using this options.
|
|
790
|
+
|
|
791
|
+
# Attributes = []
|
|
792
|
+
|
|
793
|
+
# Default attributes:
|
|
794
|
+
|
|
795
|
+
# PrinterName = "Printer Info"
|
|
796
|
+
# PrinterLocation = "outside"
|
|
797
|
+
# PrinterModel = "HP 8.0"
|
|
798
|
+
# DriverUri =
|
|
799
|
+
# DocumentFormats = []
|
|
800
|
+
# DefaultDocumentFormat = "text/plain"
|
|
801
|
+
# SupportedVersions = ["1.0", "1.1", "2.0", "2.1", "2.2"]
|
|
802
|
+
# SupportedOperations = []
|
|
803
|
+
|
|
804
|
+
# The following settings can be used to trigger CVE-2024-47175 / CVE-2024-47076.
|
|
805
|
+
|
|
806
|
+
# Specifies the command to inject into the generated PPD. (CVE-2024-47175) Any
|
|
807
|
+
# extra hyphens will NOT get escaped.
|
|
808
|
+
|
|
809
|
+
# RemoteCmd =
|
|
810
|
+
|
|
811
|
+
# Specifies the printer attribute that stores the malformed text. (CVE-2024-47176)
|
|
812
|
+
|
|
813
|
+
# RemoteCmdAttr =
|
|
814
|
+
|
|
815
|
+
# Specifies the printer attribute that stores the malformed text. (CVE-2024-47176).
|
|
816
|
+
# "foomatic-rip" must be present in this filter string to correctly interpolate
|
|
817
|
+
# the FoomaticRIPCommandLine.
|
|
818
|
+
|
|
819
|
+
# RemoteCmdCupsFilter =
|
|
820
|
+
|
|
821
|
+
|
|
822
|
+
# =============================================================================
|
|
823
|
+
# SSDP
|
|
824
|
+
# =============================================================================
|
|
825
|
+
|
|
826
|
+
# Specifies the target location of the UPnP webserver. This value will point to
|
|
827
|
+
# the current host if not explicitly set
|
|
828
|
+
|
|
829
|
+
# Location =
|
|
830
|
+
|
|
831
|
+
# Specifies the server type (``Server`` header) that will be returned in SSDP
|
|
832
|
+
# M-SEARCH responses
|
|
833
|
+
|
|
834
|
+
Server = "OS/1.0 UPnP/1.0 Dementor/1.0"
|
|
835
|
+
|
|
836
|
+
# Defines the duration a response to a multicast search should be valid. Maximum
|
|
837
|
+
# cche time.
|
|
838
|
+
|
|
839
|
+
MaxAge = 1800
|
|
840
|
+
|
|
841
|
+
# Specifies additional headers to include in all server responses. Each entry must
|
|
842
|
+
# be a fully qualified SSDP header line without CRLF at the end.
|
|
843
|
+
|
|
844
|
+
ExtraHeaders = ["BOOTID.UPNP.ORG: 1", "CONFIGID.UPNP.ORG: 1337"]
|
|
845
|
+
|
|
846
|
+
|
|
847
|
+
# =============================================================================
|
|
848
|
+
# UPnP
|
|
849
|
+
# =============================================================================
|
|
850
|
+
[UPnP]
|
|
851
|
+
|
|
852
|
+
# Port for the UPnP web server.
|
|
853
|
+
|
|
854
|
+
Port = 50001
|
|
855
|
+
|
|
856
|
+
# A list of directories that store extra UPnP profiles to be used by the web server. Note that
|
|
857
|
+
# only the target directory specified in "Template" will be used.
|
|
858
|
+
|
|
859
|
+
# TemplatesPath = ["/path/to/templates"]
|
|
860
|
+
|
|
861
|
+
# The directory name under one of the template directories specified in "TemplatesPath"
|
|
862
|
+
# that stores the device description, service description and presentation HTML.
|
|
863
|
+
|
|
864
|
+
Template = "upnp-default"
|
|
865
|
+
|
|
866
|
+
# URI and path to the local device description template.
|
|
867
|
+
|
|
868
|
+
DDUri = "/dd.xml"
|
|
869
|
+
|
|
870
|
+
# URI and path to the local service control description template. The file will
|
|
871
|
+
# be empty by default.
|
|
872
|
+
|
|
873
|
+
SCPDUri = "/scpd.xml"
|
|
874
|
+
|
|
875
|
+
# URI and path to the presentation page template.
|
|
876
|
+
|
|
877
|
+
PresentationUri = "/present.html"
|
|
878
|
+
|
|
879
|
+
|
|
727
880
|
# =============================================================================
|
|
728
881
|
# Logging
|
|
729
882
|
# =============================================================================
|
|
@@ -740,4 +893,11 @@ Enabled = false
|
|
|
740
893
|
# List of debug loggers to enable for troubleshooting. Those won't be visible in
|
|
741
894
|
# file output and only affect the terminal output.
|
|
742
895
|
|
|
743
|
-
DebugLoggers = [
|
|
896
|
+
DebugLoggers = [
|
|
897
|
+
"asyncio",
|
|
898
|
+
"mail.log",
|
|
899
|
+
"impacket.smbserver",
|
|
900
|
+
"impacket",
|
|
901
|
+
"quic",
|
|
902
|
+
"pyipp.parser",
|
|
903
|
+
]
|
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#010405][/#000101] [#020405][/#010405] [#04090b][/#020405] [#050e0f][/#04090b] [#0a181a][/#050e0f] [#090f12][/#0a181a] [#111d25][/#090f12].[#00000f][/#111d25] [#688b89][/#00000f]+[#54adaf][/#688b89]+[#8cc1b6][/#54adaf]*[#263647][/#8cc1b6]:[#303046][/#263647].[#040724][/#303046] [#0c0f29][/#040724] [#2d2d44][/#0c0f29].[#50656d][/#2d2d44]-[#7bc0b9][/#50656d]*[#66b9b9][/#7bc0b9]*[#4e5a5a][/#66b9b9]-[#00030e][/#4e5a5a] [#121e24][/#00030e].[#081013][/#121e24] [#0b1a1b][/#081013] [#040a0b][/#0b1a1b] [#030809][/#040a0b] [#010203][/#030809] [#010304][/#010203] [#000001][/#010304] [#000000][/#000001] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000]
|
|
7
7
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000001][/#000000] [#010303][/#000001] [#091615][/#010303] [#0a1414][/#091615] [#0a1d21][/#0a1414] [#12282f][/#0a1d21].[#113342][/#12282f].[#03223d][/#113342].[#345265][/#03223d]:[#73b7b0][/#345265]*[#8bcbc6][/#73b7b0]#[#374755][/#8bcbc6]:[#040723][/#374755] [#141d34][/#040723].[#0f162c][/#141d34] [#11172d][/#0f162c] [#131a32][/#11172d].[#000520][/#131a32] [#55777d][/#000520]=[#a5ead7][/#55777d]%[#76a2a0][/#a5ead7]+[#204159][/#76a2a0]:[#012842][/#204159].[#133440][/#012842].[#13262b][/#133440].[#0a191d][/#13262b] [#0a1515][/#0a191d] [#091514][/#0a1515] [#000001][/#091514] [#000101][/#000001] [#000000][/#000101] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000]
|
|
8
8
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#020404][/#000000] [#020506][/#020404] [#0a1e1e][/#020506] [#040608][/#0a1e1e] [#091115][/#040608] [#152935][/#091115].[#00223c][/#152935].[#466e7c][/#00223c]-[#77b3af][/#466e7c]*[#94decf][/#77b3af]#[#6bcfc7][/#94decf]*[#7ba3a5][/#6bcfc7]+[#16384d][/#7ba3a5].[#0b152d][/#16384d] [#0b142c][/#0b152d] [#0c132a][/#0b142c] [#0c142a][/#0c132a] [#0d142a][/#0c142a] [#06142d][/#0d142a] [#355366][/#06142d]:[#7fbbb9][/#355366]*[#7ad9cf][/#7fbbb9]#[#91d4c8][/#7ad9cf]#[#7baca9][/#91d4c8]*[#2c5466][/#7baca9]:[#012037][/#2c5466].[#152a33][/#012037].[#050a0d][/#152a33] [#080d0e][/#050a0d] [#0c1c1b][/#080d0e] [#010303][/#0c1c1b] [#020404][/#010303] [#000000][/#020404] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] [bold]Using Libraries[/bold]
|
|
9
|
-
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#010505][/#000101] [#174c4b][/#010505]:[#0b1f25][/#174c4b].[#11273a][/#0b1f25].[#0f455b][/#11273a]:[#2f7181][/#0f455b]-[#a7d6cb][/#2f7181]#[#a0f4db][/#a7d6cb]%[#84ead2][/#a0f4db]#[#4fb0b1][/#84ead2]+[#408b96][/#4fb0b1]=[#579aa2][/#408b96]+[#223b50][/#579aa2]:[#070520][/#223b50] [#0d152c][/#070520] [#0c122a][/#0d152c] [#0d0822][/#0c122a] [#264759][/#0d0822]:[#568d94][/#264759]=[#338996][/#568d94]=[#67cdc3][/#338996]*[#8debd3][/#67cdc3]%[#baeed7][/#8debd3]%[#86b7b4][/#baeed7]*[#236579][/#86b7b4]-[#0c3d53][/#236579].[#112334][/#0c3d53].[#0e3032][/#112334].[#124242][/#0e3032]:[#000000][/#124242] [#000102][/#000000] [#000000][/#000102] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] - [b]
|
|
10
|
-
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#010303][/#000101] [#010303][/#010303] [#04080a][/#010303] [#0d1f25][/#04080a].[#1d5560][/#0d1f25]:[#075a70][/#1d5560]:[#5ba6ab][/#075a70]+[#a8eed8][/#5ba6ab]%[#82e2d0][/#a8eed8]#[#81d9cb][/#82e2d0]#[#76d3c6][/#81d9cb]#[#7ad2c6][/#76d3c6]#[#21677c][/#7ad2c6]-[#398492][/#21677c]=[#4a9faa][/#398492]+[#224a5c][/#4a9faa]:[#0d0e27][/#224a5c] [#0d132c][/#0d0e27] [#265e6f][/#0d132c]-[#428693][/#265e6f]=[#33707f][/#428693]-[#378790][/#33707f]=[#81ddca][/#378790]#[#83d0c1][/#81ddca]#[#76cabc][/#83d0c1]*[#94ecd4][/#76cabc]%[#b9ecd8][/#94ecd4]%[#49929c][/#b9ecd8]=[#0a5768][/#49929c]:[#1a4b51][/#0a5768]:[#060f10][/#1a4b51] [#030c0e][/#060f10] [#010303][/#030c0e] [#000203][/#010303] [#000000][/#000203] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] - [b]
|
|
9
|
+
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#010505][/#000101] [#174c4b][/#010505]:[#0b1f25][/#174c4b].[#11273a][/#0b1f25].[#0f455b][/#11273a]:[#2f7181][/#0f455b]-[#a7d6cb][/#2f7181]#[#a0f4db][/#a7d6cb]%[#84ead2][/#a0f4db]#[#4fb0b1][/#84ead2]+[#408b96][/#4fb0b1]=[#579aa2][/#408b96]+[#223b50][/#579aa2]:[#070520][/#223b50] [#0d152c][/#070520] [#0c122a][/#0d152c] [#0d0822][/#0c122a] [#264759][/#0d0822]:[#568d94][/#264759]=[#338996][/#568d94]=[#67cdc3][/#338996]*[#8debd3][/#67cdc3]%[#baeed7][/#8debd3]%[#86b7b4][/#baeed7]*[#236579][/#86b7b4]-[#0c3d53][/#236579].[#112334][/#0c3d53].[#0e3032][/#112334].[#124242][/#0e3032]:[#000000][/#124242] [#000102][/#000000] [#000000][/#000102] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] - [b]scapy[/b] : [white]{scapy_version}[/white]
|
|
10
|
+
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#010303][/#000101] [#010303][/#010303] [#04080a][/#010303] [#0d1f25][/#04080a].[#1d5560][/#0d1f25]:[#075a70][/#1d5560]:[#5ba6ab][/#075a70]+[#a8eed8][/#5ba6ab]%[#82e2d0][/#a8eed8]#[#81d9cb][/#82e2d0]#[#76d3c6][/#81d9cb]#[#7ad2c6][/#76d3c6]#[#21677c][/#7ad2c6]-[#398492][/#21677c]=[#4a9faa][/#398492]+[#224a5c][/#4a9faa]:[#0d0e27][/#224a5c] [#0d132c][/#0d0e27] [#265e6f][/#0d132c]-[#428693][/#265e6f]=[#33707f][/#428693]-[#378790][/#33707f]=[#81ddca][/#378790]#[#83d0c1][/#81ddca]#[#76cabc][/#83d0c1]*[#94ecd4][/#76cabc]%[#b9ecd8][/#94ecd4]%[#49929c][/#b9ecd8]=[#0a5768][/#49929c]:[#1a4b51][/#0a5768]:[#060f10][/#1a4b51] [#030c0e][/#060f10] [#010303][/#030c0e] [#000203][/#010303] [#000000][/#000203] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] - [b]impacket[/b] : [white]{impacket_version}[/white]
|
|
11
11
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#040609][/#000000] [#11202d][/#040609].[#072d47][/#11202d].[#337c8c][/#072d47]=[#9de3d5][/#337c8c]%[#81e2cf][/#9de3d5]#[#67d5c8][/#81e2cf]#[#4dc7c3][/#67d5c8]*[#41a2a7][/#4dc7c3]+[#66c0b8][/#41a2a7]*[#69ccc4][/#66c0b8]*[#21677e][/#69ccc4]-[#2c798c][/#21677e]-[#39a1a9][/#2c798c]+[#101732][/#39a1a9] [#193b52][/#101732]:[#3197a4][/#193b52]=[#265f76][/#3197a4]-[#358290][/#265f76]=[#7fe3d2][/#358290]#[#4a9c9e][/#7fe3d2]+[#50b4b4][/#4a9c9e]+[#52c7c1][/#50b4b4]*[#74ddcb][/#52c7c1]#[#9dedd5][/#74ddcb]%[#acdcce][/#9dedd5]%[#115268][/#acdcce]:[#0c2035][/#115268].[#0e1a20][/#0c2035] [#020406][/#0e1a20] [#000000][/#020406] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] - [b]aiosmtpd[/b] : [white]{aiosmtpd_version}[/white]
|
|
12
12
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#081d1d][/#000000] [#030609][/#081d1d] [#0f2136][/#030609].[#0d3f57][/#0f2136].[#84b2aa][/#0d3f57]*[#6dd0c7][/#84b2aa]*[#8eddcc][/#6dd0c7]#[#63cec7][/#8eddcc]*[#2e9daa][/#63cec7]=[#4db2b4][/#2e9daa]+[#2d6e7b][/#4db2b4]-[#5bcfc7][/#2d6e7b]*[#5bd0c9][/#5bcfc7]*[#26758b][/#5bd0c9]-[#25657e][/#26758b]-[#111e3a][/#25657e].[#16314d][/#111e3a].[#1d5776][/#16314d]:[#2b8696][/#1d5776]=[#6ae2d4][/#2b8696]#[#47a4a3][/#6ae2d4]+[#317981][/#47a4a3]-[#37a3ae][/#317981]+[#2a9aa8][/#37a3ae]=[#79dece][/#2a9aa8]#[#7fd4c8][/#79dece]#[#8fe5d4][/#7fd4c8]#[#618b8f][/#8fe5d4]=[#052c47][/#618b8f].[#0d1724][/#052c47] [#020506][/#0d1724] [#071718][/#020506] [#000000][/#071718] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] - [b]aioquic[/b] : [white]{aioquic_version}[/white]
|
|
13
|
-
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#000000][/#000101] [#0f3433][/#000000].[#153f3e][/#0f3433].[#00040e][/#153f3e] [#396a75][/#00040e]-[#64beb6][/#396a75]*[#3fb7b7][/#64beb6]+[#56a8ac][/#3fb7b7]+[#62d4cc][/#56a8ac]*[#238095][/#62d4cc]=[#2d8294][/#238095]=[#388e99][/#2d8294]=[#17425d][/#388e99]:[#40b1b7][/#17425d]+[#3aa9b3][/#40b1b7]+[#183d59][/#3aa9b3]:[#12243f][/#183d59].[#101f3a][/#12243f].[#206077][/#101f3a]-[#3db9bd][/#206077]+[#298894][/#3db9bd]=[#184057][/#298894]:[#3b99a2][/#184057]=[#21667c][/#3b99a2]-[#2592a5][/#21667c]=[#7fd7cc][/#2592a5]#[#4ca0a5][/#7fd7cc]+[#53cbc8][/#4ca0a5]*[#64b7b5][/#53cbc8]*[#1e4b5d][/#64b7b5]:[#00030c][/#1e4b5d] [#144848][/#00030c]:[#092424][/#144848].[#000000][/#092424] [#000101][/#000000] [#000000][/#000101] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000]
|
|
13
|
+
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#000000][/#000101] [#0f3433][/#000000].[#153f3e][/#0f3433].[#00040e][/#153f3e] [#396a75][/#00040e]-[#64beb6][/#396a75]*[#3fb7b7][/#64beb6]+[#56a8ac][/#3fb7b7]+[#62d4cc][/#56a8ac]*[#238095][/#62d4cc]=[#2d8294][/#238095]=[#388e99][/#2d8294]=[#17425d][/#388e99]:[#40b1b7][/#17425d]+[#3aa9b3][/#40b1b7]+[#183d59][/#3aa9b3]:[#12243f][/#183d59].[#101f3a][/#12243f].[#206077][/#101f3a]-[#3db9bd][/#206077]+[#298894][/#3db9bd]=[#184057][/#298894]:[#3b99a2][/#184057]=[#21667c][/#3b99a2]-[#2592a5][/#21667c]=[#7fd7cc][/#2592a5]#[#4ca0a5][/#7fd7cc]+[#53cbc8][/#4ca0a5]*[#64b7b5][/#53cbc8]*[#1e4b5d][/#64b7b5]:[#00030c][/#1e4b5d] [#144848][/#00030c]:[#092424][/#144848].[#000000][/#092424] [#000101][/#000000] [#000000][/#000101] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000] - [b]pyipp[/b] : [white]{pyipp_version}[/white]
|
|
14
14
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#000000][/#000101] [#103c3a][/#000000].[#2d5255][/#103c3a]:[#62b2af][/#2d5255]*[#3daeb1][/#62b2af]+[#3ea7b0][/#3daeb1]+[#2a8093][/#3ea7b0]=[#54a4a7][/#2a8093]+[#3db2ba][/#54a4a7]+[#163d57][/#3db2ba]:[#246679][/#163d57]-[#2f7d8d][/#246679]=[#1b4b64][/#2f7d8d]:[#339aa6][/#1b4b64]=[#173a51][/#339aa6].[#111f38][/#173a51].[#0f1935][/#111f38] [#1f576d][/#0f1935]:[#2e8794][/#1f576d]=[#1a4860][/#2e8794]:[#27818d][/#1a4860]=[#124252][/#27818d]:[#185062][/#124252]:[#4fc2c5][/#185062]*[#48828c][/#4fc2c5]=[#2b98a5][/#48828c]=[#44b4b9][/#2b98a5]+[#4ec0bf][/#44b4b9]*[#58a4a5][/#4ec0bf]+[#1d464a][/#58a4a5]:[#0f3e3d][/#1d464a].[#000000][/#0f3e3d] [#000101][/#000000] [#000000][/#000101] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000]
|
|
15
15
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#000000][/#000101] [#183034][/#000000].[#58a8a7][/#183034]+[#3daeb3][/#58a8a7]+[#2aa7b1][/#3daeb3]+[#1f5772][/#2aa7b1]:[#288698][/#1f5772]=[#276477][/#288698]-[#39a4ad][/#276477]+[#248790][/#39a4ad]=[#0e0e27][/#248790] [#1d4056][/#0e0e27]:[#245e76][/#1d4056]-[#1e4664][/#245e76]:[#173049][/#1e4664].[#152843][/#173049].[#0f1b35][/#152843].[#112842][/#0f1b35].[#1b4e68][/#112842]:[#236f7c][/#1b4e68]-[#091722][/#236f7c] [#0f1825][/#091722] [#35aab1][/#0f1825]+[#328894][/#35aab1]=[#1a5e71][/#328894]:[#258599][/#1a5e71]=[#226c84][/#258599]-[#2eb2ba][/#226c84]+[#4bb8ba][/#2eb2ba]+[#5ea9a6][/#4bb8ba]+[#111e21][/#5ea9a6].[#000000][/#111e21] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000]
|
|
16
16
|
[#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000101][/#000000] [#010304][/#000101] [#132b2f][/#010304].[#092b2c][/#132b2f].[#123e4a][/#092b2c]:[#278496][/#123e4a]=[#22677f][/#278496]-[#20506b][/#22677f]:[#266b7d][/#20506b]-[#1a5c71][/#266b7d]:[#2d9fac][/#1a5c71]=[#173547][/#2d9fac].[#103640][/#173547].[#0c1d2b][/#103640].[#122a45][/#0c1d2b].[#183655][/#122a45].[#13203b][/#183655].[#13223f][/#13203b].[#163252][/#13223f].[#153650][/#163252].[#0c2830][/#153650].[#103344][/#0c2830].[#24566b][/#103344]:[#30a1ad][/#24566b]+[#12435b][/#30a1ad]:[#256f81][/#12435b]-[#27657f][/#256f81]-[#257b90][/#27657f]-[#217c8c][/#257b90]-[#0b3037][/#217c8c].[#0c2c2c][/#0b3037].[#14282b][/#0c2c2c].[#000101][/#14282b] [#000101][/#000101] [#000000][/#000101] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [#000000][/#000000] [/#000000]
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?xml version="1.0"?>
|
|
2
|
+
<root xmlns="urn:schemas-upnp-org:device-1-0" configId="1337">
|
|
3
|
+
<specVersion>
|
|
4
|
+
<major>1</major>
|
|
5
|
+
<minor>0</minor>
|
|
6
|
+
</specVersion>
|
|
7
|
+
<device>
|
|
8
|
+
<deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
|
|
9
|
+
<friendlyName>Dementor</friendlyName>
|
|
10
|
+
<manufacturer>Manufacturer</manufacturer>
|
|
11
|
+
<manufacturerURL>http://{{session.ipv4}}/manufacturer/</manufacturerURL>
|
|
12
|
+
<modelDescription>user-friendly computer</modelDescription>
|
|
13
|
+
<modelName>Office Computer</modelName>
|
|
14
|
+
<modelNumber>COM{{ random(5) }}</modelNumber>
|
|
15
|
+
<modelURL>http://{{session.ipv4}}/model</modelURL>
|
|
16
|
+
<serialNumber>{{ random(10) }}</serialNumber>
|
|
17
|
+
<UDN>uuid:{{uuid}}</UDN>
|
|
18
|
+
<UPC>00000000000</UPC>
|
|
19
|
+
<serviceList>
|
|
20
|
+
<service>
|
|
21
|
+
<serviceType>urn:schemas-upnp-org:service:Dummy:1</serviceType>
|
|
22
|
+
<serviceId>urn:upnp-org:serviceId:Dummy</serviceId>
|
|
23
|
+
<SCPDURL>/{{uuid}}/{{config.upnp_scpd_path}}</SCPDURL>
|
|
24
|
+
<controlURL>/{{uuid}}/{{config.upnp_scpd_path}}</controlURL>
|
|
25
|
+
<eventSubURL>/{{uuid}}/{{config.upnp_scpd_path}}</eventSubURL>
|
|
26
|
+
</service>
|
|
27
|
+
</serviceList>
|
|
28
|
+
<deviceList>
|
|
29
|
+
</deviceList>
|
|
30
|
+
<presentationURL>http://{{session.ipv4}}:{{config.upnp_port}}/present.html</presentationURL>
|
|
31
|
+
</device>
|
|
32
|
+
</root>
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
6
|
+
<title>404 - Not Found</title>
|
|
7
|
+
<style type="text/css">
|
|
8
|
+
<!--
|
|
9
|
+
body {
|
|
10
|
+
margin: 0;
|
|
11
|
+
font-size: .7em;
|
|
12
|
+
font-family: Verdana, Arial, Helvetica, sans-serif;
|
|
13
|
+
background: #EEEEEE;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
fieldset {
|
|
17
|
+
padding: 0 15px 10px 15px;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
h1 {
|
|
21
|
+
font-size: 2.4em;
|
|
22
|
+
margin: 0;
|
|
23
|
+
color: #FFF;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
h2 {
|
|
27
|
+
font-size: 1.7em;
|
|
28
|
+
margin: 0;
|
|
29
|
+
color: #CC0000;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h3 {
|
|
33
|
+
font-size: 1.2em;
|
|
34
|
+
margin: 10px 0 0 0;
|
|
35
|
+
color: #000000;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
#header {
|
|
39
|
+
width: 96%;
|
|
40
|
+
margin: 0 0 0 0;
|
|
41
|
+
padding: 6px 2% 6px 2%;
|
|
42
|
+
font-family: "trebuchet MS", Verdana, sans-serif;
|
|
43
|
+
color: #FFF;
|
|
44
|
+
background-color: #555555;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
#content {
|
|
48
|
+
margin: 0 0 0 2%;
|
|
49
|
+
position: relative;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.content-container {
|
|
53
|
+
background: #FFF;
|
|
54
|
+
width: 96%;
|
|
55
|
+
margin-top: 8px;
|
|
56
|
+
padding: 10px;
|
|
57
|
+
position: relative;
|
|
58
|
+
}
|
|
59
|
+
-->
|
|
60
|
+
</style>
|
|
61
|
+
</head>
|
|
62
|
+
|
|
63
|
+
<body>
|
|
64
|
+
<div id="header">
|
|
65
|
+
<h1>Server Error</h1>
|
|
66
|
+
</div>
|
|
67
|
+
<div id="content">
|
|
68
|
+
<div class="content-container">
|
|
69
|
+
<fieldset>
|
|
70
|
+
<h2>HTTP Error 404 - File or directory not found</h2>
|
|
71
|
+
<h3>
|
|
72
|
+
The resource you are looking for may have been removed, had its name changed or is temporarily
|
|
73
|
+
unavailable.
|
|
74
|
+
{% if session.http_enabled %}
|
|
75
|
+
Maybe you were looking for <a
|
|
76
|
+
href="http://{{ session.ipv4 }}:{{ config.http_port }}/">/index.html</a>
|
|
77
|
+
{% endif %}
|
|
78
|
+
</h3>
|
|
79
|
+
</fieldset>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</body>
|
|
83
|
+
|
|
84
|
+
</html>
|
|
@@ -51,12 +51,13 @@ class TomlConfig:
|
|
|
51
51
|
if hasattr(self, key):
|
|
52
52
|
return getattr(self, key)
|
|
53
53
|
|
|
54
|
-
for
|
|
55
|
-
|
|
56
|
-
|
|
54
|
+
for attr in getattr(self, "_fields_", []):
|
|
55
|
+
name = attr.qname
|
|
56
|
+
if "." in name:
|
|
57
|
+
_, name = name.rsplit(".", 1)
|
|
57
58
|
|
|
58
|
-
if key ==
|
|
59
|
-
return getattr(self,
|
|
59
|
+
if key == name:
|
|
60
|
+
return getattr(self, attr.attr_name)
|
|
60
61
|
|
|
61
62
|
raise KeyError(f"Could not find config with key {key!r}")
|
|
62
63
|
|
|
@@ -178,13 +178,13 @@ class ProtocolLogger(logging.LoggerAdapter):
|
|
|
178
178
|
def success(self, msg, color=None, *args, **kwargs):
|
|
179
179
|
color = color or "green"
|
|
180
180
|
prefix = r"[bold %s]\[+][/bold %s]" % (color, color)
|
|
181
|
-
msg, kwargs = self.format(f"{prefix}
|
|
181
|
+
msg, kwargs = self.format(f"{prefix} {msg}", **kwargs)
|
|
182
182
|
dm_print(msg, *args, **kwargs)
|
|
183
183
|
self._emit_log_entry(msg, *args, **kwargs)
|
|
184
184
|
|
|
185
185
|
def display(self, msg, *args, **kwargs):
|
|
186
186
|
prefix = r"[bold %s]\[*][/bold %s]" % ("blue", "blue")
|
|
187
|
-
msg, kwargs = self.format(f"{prefix}
|
|
187
|
+
msg, kwargs = self.format(f"{prefix} {msg}", **kwargs)
|
|
188
188
|
dm_print(msg, *args, **kwargs)
|
|
189
189
|
self._emit_log_entry(msg, *args, **kwargs)
|
|
190
190
|
|
|
@@ -25,4 +25,13 @@ ASSETS_PATH = os.path.join(os.path.dirname(dementor.__file__), "assets")
|
|
|
25
25
|
CONFIG_PATH = os.path.join(DEMENTOR_PATH, "Dementor.toml")
|
|
26
26
|
DEFAULT_CONFIG_PATH = os.path.join(ASSETS_PATH, "Dementor.toml")
|
|
27
27
|
BANNER_PATH = os.path.join(ASSETS_PATH, "banner.txt")
|
|
28
|
-
HTTP_TEMPLATES_PATH = os.path.join(ASSETS_PATH, "www")
|
|
28
|
+
HTTP_TEMPLATES_PATH = os.path.join(ASSETS_PATH, "www")
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
if __name__ == "__main__":
|
|
32
|
+
print(f"DefaultWorkspace : {DEMENTOR_PATH}")
|
|
33
|
+
print(f"AssetsPath : {ASSETS_PATH}")
|
|
34
|
+
print(f"ConfigPath : {CONFIG_PATH}")
|
|
35
|
+
print(f"BannerPath : {BANNER_PATH}")
|
|
36
|
+
print(f"DefaultConfigPath : {DEFAULT_CONFIG_PATH}")
|
|
37
|
+
print(f"HTTPTemplatesPath : {HTTP_TEMPLATES_PATH}")
|
|
@@ -18,13 +18,17 @@
|
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
19
|
# SOFTWARE.
|
|
20
20
|
import socket
|
|
21
|
-
import struct
|
|
22
21
|
|
|
23
22
|
from scapy.layers import llmnr, dns
|
|
24
23
|
from rich import markup
|
|
25
24
|
|
|
26
25
|
from dementor.protocols.mdns import build_dns_answer
|
|
27
|
-
from dementor.servers import
|
|
26
|
+
from dementor.servers import (
|
|
27
|
+
ThreadingUDPServer,
|
|
28
|
+
ServerThread,
|
|
29
|
+
BaseProtoHandler,
|
|
30
|
+
add_mcast_membership,
|
|
31
|
+
)
|
|
28
32
|
from dementor.config.toml import TomlConfig, Attribute as A
|
|
29
33
|
from dementor.config.session import SessionConfig
|
|
30
34
|
from dementor.logger import ProtocolLogger
|
|
@@ -130,18 +134,10 @@ class LLMNRServer(ThreadingUDPServer):
|
|
|
130
134
|
|
|
131
135
|
def server_bind(self) -> None:
|
|
132
136
|
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
)
|
|
140
|
-
self.socket.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
|
|
141
|
-
|
|
142
|
-
if self.config.ipv6:
|
|
143
|
-
mreq = socket.inet_pton(socket.AF_INET6, LLMNR_IPV6_ADDR)
|
|
144
|
-
mreq += struct.pack("@I", socket.if_nametoindex(self.config.interface))
|
|
145
|
-
self.socket.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, mreq)
|
|
146
|
-
|
|
137
|
+
add_mcast_membership(
|
|
138
|
+
self.socket,
|
|
139
|
+
self.config,
|
|
140
|
+
group4=LLMNR_IPV4_ADDR,
|
|
141
|
+
group6=LLMNR_IPV6_ADDR,
|
|
142
|
+
)
|
|
147
143
|
super().server_bind()
|
|
@@ -18,14 +18,13 @@
|
|
|
18
18
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
19
19
|
# SOFTWARE.
|
|
20
20
|
import socket
|
|
21
|
-
import struct
|
|
22
21
|
|
|
23
22
|
from scapy.layers import dns
|
|
24
23
|
from rich import markup
|
|
25
24
|
|
|
26
25
|
from dementor.filters import ATTR_BLACKLIST, ATTR_WHITELIST, in_scope
|
|
27
26
|
from dementor.logger import ProtocolLogger
|
|
28
|
-
from dementor.servers import ThreadingUDPServer, BaseProtoHandler, ServerThread
|
|
27
|
+
from dementor.servers import ThreadingUDPServer, BaseProtoHandler, ServerThread, add_mcast_membership
|
|
29
28
|
from dementor.config.toml import TomlConfig, Attribute as A
|
|
30
29
|
from dementor.config.session import SessionConfig
|
|
31
30
|
|
|
@@ -183,16 +182,10 @@ class MDNSServer(ThreadingUDPServer):
|
|
|
183
182
|
|
|
184
183
|
def server_bind(self) -> None:
|
|
185
184
|
self.socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
if self.config.ipv6:
|
|
194
|
-
mreq = socket.inet_pton(socket.AF_INET6, MDNS_IPV6_ADDR)
|
|
195
|
-
mreq += struct.pack("@I", socket.if_nametoindex(self.config.interface))
|
|
196
|
-
self.socket.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_JOIN_GROUP, mreq)
|
|
197
|
-
|
|
185
|
+
add_mcast_membership(
|
|
186
|
+
self.socket,
|
|
187
|
+
self.config,
|
|
188
|
+
group4=MDNS_IPV4_ADDR,
|
|
189
|
+
group6=MDNS_IPV6_ADDR,
|
|
190
|
+
)
|
|
198
191
|
super().server_bind()
|