atomicshop 2.16.30__py3-none-any.whl → 2.16.31__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.
Potentially problematic release.
This version of atomicshop might be problematic. Click here for more details.
- atomicshop/__init__.py +1 -1
- atomicshop/wrappers/socketw/sender.py +18 -25
- {atomicshop-2.16.30.dist-info → atomicshop-2.16.31.dist-info}/METADATA +1 -1
- {atomicshop-2.16.30.dist-info → atomicshop-2.16.31.dist-info}/RECORD +7 -7
- {atomicshop-2.16.30.dist-info → atomicshop-2.16.31.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.16.30.dist-info → atomicshop-2.16.31.dist-info}/WHEEL +0 -0
- {atomicshop-2.16.30.dist-info → atomicshop-2.16.31.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
|
@@ -68,39 +68,32 @@ class Sender:
|
|
|
68
68
|
|
|
69
69
|
# At this point the sending loop finished successfully
|
|
70
70
|
self.logger.info(f"Sent the message to destination.")
|
|
71
|
-
except ConnectionResetError as e:
|
|
72
|
-
destination_address, destination_port = base.get_destination_address_from_socket(self.ssl_socket)
|
|
73
|
-
if self.ssl_socket.server_hostname:
|
|
74
|
-
destination_address = self.ssl_socket.server_hostname
|
|
75
|
-
destination: str = f'{destination_address}:{destination_port}'
|
|
76
|
-
|
|
77
|
-
error_class_type = str(type(e)).replace("<class '", '').replace("'>", '')
|
|
78
|
-
exception_error = tracebacks.get_as_string(one_line=True)
|
|
79
|
-
error_message = (f"Socket Send: {destination}: Error, Couldn't reach the server - Connection was reset | "
|
|
80
|
-
f"{error_class_type}: {exception_error}")
|
|
81
|
-
except (ssl.SSLEOFError, ssl.SSLZeroReturnError, ssl.SSLWantWriteError, TimeoutError) as e:
|
|
82
|
-
destination_address, destination_port = base.get_destination_address_from_socket(self.ssl_socket)
|
|
83
|
-
if self.ssl_socket.server_hostname:
|
|
84
|
-
destination_address = self.ssl_socket.server_hostname
|
|
85
|
-
destination: str = f'{destination_address}:{destination_port}'
|
|
86
|
-
|
|
87
|
-
error_class_type = str(type(e)).replace("<class '", '').replace("'>", '')
|
|
88
|
-
exception_error = tracebacks.get_as_string(one_line=True)
|
|
89
|
-
error_message = f"Socket Send: {destination}: {error_class_type}: {exception_error}"
|
|
90
71
|
except Exception as e:
|
|
91
|
-
|
|
72
|
+
source_tuple, destination_tuple = base.get_source_destination(self.ssl_socket)
|
|
73
|
+
source_address, source_port = source_tuple
|
|
74
|
+
destination_address, destination_port = destination_tuple
|
|
92
75
|
if self.ssl_socket.server_hostname:
|
|
93
76
|
destination_address = self.ssl_socket.server_hostname
|
|
94
|
-
destination: str = f'{destination_address}:{destination_port}'
|
|
77
|
+
destination: str = f'[{source_address}:{source_port}<->{destination_address}:{destination_port}]'
|
|
95
78
|
|
|
96
79
|
error_class_type = str(type(e)).replace("<class '", '').replace("'>", '')
|
|
97
80
|
exception_error = tracebacks.get_as_string(one_line=True)
|
|
81
|
+
|
|
98
82
|
if 'ssl' in error_class_type.lower():
|
|
99
|
-
|
|
100
|
-
|
|
83
|
+
if error_class_type in ['ssl.SSLEOFError', 'ssl.SSLZeroReturnError', 'ssl.SSLWantWriteError']:
|
|
84
|
+
error_message = f"Socket Send: {destination}: {error_class_type}: {exception_error}"
|
|
85
|
+
else:
|
|
86
|
+
error_message = (f"Socket Send: {destination}: "
|
|
87
|
+
f"SSL UNDOCUMENTED Exception: {error_class_type}{exception_error}")
|
|
101
88
|
else:
|
|
102
|
-
|
|
103
|
-
|
|
89
|
+
if error_class_type == 'ConnectionResetError':
|
|
90
|
+
error_message = (f"Socket Send: {destination}: "
|
|
91
|
+
f"Error, Couldn't reach the server - Connection was reset | "
|
|
92
|
+
f"{error_class_type}: {exception_error}")
|
|
93
|
+
elif error_class_type in ['TimeoutError']:
|
|
94
|
+
error_message = f"Socket Send: {destination}: {error_class_type}: {exception_error}"
|
|
95
|
+
else:
|
|
96
|
+
raise e
|
|
104
97
|
|
|
105
98
|
if error_message:
|
|
106
99
|
print_api(error_message, logger=self.logger, logger_method='error')
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=sCusnYw5eAOy-azyQImMCB9etQnC6WjnQr70CnWZluk,124
|
|
2
2
|
atomicshop/_basics_temp.py,sha256=6cu2dd6r2dLrd1BRNcVDKTHlsHs_26Gpw8QS6v32lQ0,3699
|
|
3
3
|
atomicshop/_create_pdf_demo.py,sha256=Yi-PGZuMg0RKvQmLqVeLIZYadqEZwUm-4A9JxBl_vYA,3713
|
|
4
4
|
atomicshop/_patch_import.py,sha256=ENp55sKVJ0e6-4lBvZnpz9PQCt3Otbur7F6aXDlyje4,6334
|
|
@@ -300,7 +300,7 @@ atomicshop/wrappers/socketw/dns_server.py,sha256=F-t2ZOrMAS0hZ5AaoTsIEbe7jj0tUat
|
|
|
300
300
|
atomicshop/wrappers/socketw/exception_wrapper.py,sha256=B-X5SHLSUIWToihH2MKnOB1F4A81_X0DpLLfnYKYbEc,7067
|
|
301
301
|
atomicshop/wrappers/socketw/get_process.py,sha256=zKEqh98cB9UDLFhtxVpperfXsCjyIMNANHilDD06p0U,6094
|
|
302
302
|
atomicshop/wrappers/socketw/receiver.py,sha256=XVvWOoeCo3vA0O5p19ryi-hcDIyx382WNG7WzMNVeYk,9322
|
|
303
|
-
atomicshop/wrappers/socketw/sender.py,sha256=
|
|
303
|
+
atomicshop/wrappers/socketw/sender.py,sha256=5HPrgTS2pA1g-jbG1TUtR7drHT1Z_8UevlRCTwW7dgY,5007
|
|
304
304
|
atomicshop/wrappers/socketw/sni.py,sha256=J1kPnQ77XwKN1pO5aOI1c_VfhuivCm95OOaQxMpPuZ0,17627
|
|
305
305
|
atomicshop/wrappers/socketw/socket_client.py,sha256=XC-YaqA1wu0rvWQ9Q99DWLxcycKPkPc72pSnflzalfo,20320
|
|
306
306
|
atomicshop/wrappers/socketw/socket_server_tester.py,sha256=Qobmh4XV8ZxLUaw-eW4ESKAbeSLecCKn2OWFzMhadk0,6420
|
|
@@ -309,8 +309,8 @@ atomicshop/wrappers/socketw/ssl_base.py,sha256=kmiif84kMhBr5yjQW17p935sfjR5JKG0L
|
|
|
309
309
|
atomicshop/wrappers/socketw/statistics_csv.py,sha256=w1AH-zf4mBuT4euf28UKij9ihM-b1BRU9Qfby0QDdqI,2957
|
|
310
310
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
311
311
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=bQ8Jql8bVGBJ0dt3VQ56lga_1LBOMLI3Km_otvvbU6c,7138
|
|
312
|
-
atomicshop-2.16.
|
|
313
|
-
atomicshop-2.16.
|
|
314
|
-
atomicshop-2.16.
|
|
315
|
-
atomicshop-2.16.
|
|
316
|
-
atomicshop-2.16.
|
|
312
|
+
atomicshop-2.16.31.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
313
|
+
atomicshop-2.16.31.dist-info/METADATA,sha256=qf8gXgqyW9JhWKob2yEkM118Kt1OcfQyVeqTrz9nj-0,10473
|
|
314
|
+
atomicshop-2.16.31.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
315
|
+
atomicshop-2.16.31.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
316
|
+
atomicshop-2.16.31.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|