nopasaran 0.2.105__py3-none-any.whl → 0.2.107__py3-none-any.whl
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.
- nopasaran/tools/tcp_dns_socket_server.py +2 -3
- nopasaran/tools/udp_dns_socket_server.py +2 -3
- {nopasaran-0.2.105.dist-info → nopasaran-0.2.107.dist-info}/METADATA +1 -1
- {nopasaran-0.2.105.dist-info → nopasaran-0.2.107.dist-info}/RECORD +8 -8
- {nopasaran-0.2.105.dist-info → nopasaran-0.2.107.dist-info}/LICENSE +0 -0
- {nopasaran-0.2.105.dist-info → nopasaran-0.2.107.dist-info}/WHEEL +0 -0
- {nopasaran-0.2.105.dist-info → nopasaran-0.2.107.dist-info}/entry_points.txt +0 -0
- {nopasaran-0.2.105.dist-info → nopasaran-0.2.107.dist-info}/top_level.txt +0 -0
@@ -85,8 +85,7 @@ class TCPDNSSocketServer:
|
|
85
85
|
logging.info("DNS response sent successfully.")
|
86
86
|
|
87
87
|
return {
|
88
|
-
"received": parsed_query.
|
89
|
-
"client_address": client_addr
|
88
|
+
"received": str(parsed_query.q)
|
90
89
|
}, EventNames.REQUEST_RECEIVED.name
|
91
90
|
|
92
91
|
finally:
|
@@ -126,7 +125,7 @@ class TCPDNSSocketServer:
|
|
126
125
|
|
127
126
|
try:
|
128
127
|
# Get the numeric type directly from the string using QTYPE
|
129
|
-
rtype = QTYPE
|
128
|
+
rtype = QTYPE.reverse.get(response_type)
|
130
129
|
if rtype is None:
|
131
130
|
logging.warning(f"Unsupported response_type: {response_type}")
|
132
131
|
return query_record.reply()
|
@@ -34,8 +34,7 @@ class UDPDNSSocketServer:
|
|
34
34
|
logging.info("DNS response sent successfully.")
|
35
35
|
|
36
36
|
return {
|
37
|
-
"received": parsed_query.
|
38
|
-
"client_address": client_addr
|
37
|
+
"received": str(parsed_query.q)
|
39
38
|
}, EventNames.REQUEST_RECEIVED.name
|
40
39
|
|
41
40
|
except socket.timeout:
|
@@ -78,7 +77,7 @@ class UDPDNSSocketServer:
|
|
78
77
|
|
79
78
|
try:
|
80
79
|
# Get the numeric type directly from the string using QTYPE
|
81
|
-
rtype = QTYPE
|
80
|
+
rtype = QTYPE.reverse.get(response_type)
|
82
81
|
if rtype is None:
|
83
82
|
logging.warning(f"Unsupported response_type: {response_type}")
|
84
83
|
return query_record.reply()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: nopasaran
|
3
|
-
Version: 0.2.
|
3
|
+
Version: 0.2.107
|
4
4
|
Summary: NoPASARAN is an advanced network tool designed to detect, fingerprint, and locate network middleboxes in a unified framework.
|
5
5
|
Home-page: https://github.com/BenIlies/NoPASARAN
|
6
6
|
Author: Ilies Benhabbour
|
@@ -76,12 +76,12 @@ nopasaran/tools/http_2_socket_base.py,sha256=KDfkU4Nr_TXxqzp1-ZHec_UawfDZ5oIIj-J
|
|
76
76
|
nopasaran/tools/http_2_socket_client.py,sha256=5mmc8FuT2dNVAihbMdvyytVwME_xSc7mez_jwU3YZOA,6256
|
77
77
|
nopasaran/tools/http_2_socket_server.py,sha256=8W-bxmdoGyK5moxpC87V1EGuZ9jJpIKhokvZrDV84kk,5551
|
78
78
|
nopasaran/tools/https_1_socket_server.py,sha256=ytLVYdH5je4L6ElCKKhhsbU_53gT6QF9l5ym7q5TMmo,8162
|
79
|
-
nopasaran/tools/tcp_dns_socket_server.py,sha256=
|
80
|
-
nopasaran/tools/udp_dns_socket_server.py,sha256=
|
79
|
+
nopasaran/tools/tcp_dns_socket_server.py,sha256=fZl2ujE3C_1iqyz8qquWnePPAj8n2uzWfk3DUEDlgho,7924
|
80
|
+
nopasaran/tools/udp_dns_socket_server.py,sha256=N6_27OTo3aKlihu1YqWfgYeCpdR3Xfo2o7ZE2db9Vuw,5568
|
81
81
|
tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
82
|
-
nopasaran-0.2.
|
83
|
-
nopasaran-0.2.
|
84
|
-
nopasaran-0.2.
|
85
|
-
nopasaran-0.2.
|
86
|
-
nopasaran-0.2.
|
87
|
-
nopasaran-0.2.
|
82
|
+
nopasaran-0.2.107.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
83
|
+
nopasaran-0.2.107.dist-info/METADATA,sha256=cCuxrRjU2-5Yq6VCXJA2_ZVvIWnWI376I0QbVTEtfcM,5497
|
84
|
+
nopasaran-0.2.107.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
85
|
+
nopasaran-0.2.107.dist-info/entry_points.txt,sha256=LaOz5GlWuMLjzg4KOEB5OVTattCXVW6a4nSW-WQajCw,55
|
86
|
+
nopasaran-0.2.107.dist-info/top_level.txt,sha256=60R1FzpprzU8iiJ1cBMNOA0F083_lYoctFo7pzOpMwY,16
|
87
|
+
nopasaran-0.2.107.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|