atomicshop 3.1.11__py3-none-any.whl → 3.1.12__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/mitm/connection_thread_worker.py +23 -7
- {atomicshop-3.1.11.dist-info → atomicshop-3.1.12.dist-info}/METADATA +1 -1
- {atomicshop-3.1.11.dist-info → atomicshop-3.1.12.dist-info}/RECORD +7 -7
- {atomicshop-3.1.11.dist-info → atomicshop-3.1.12.dist-info}/LICENSE.txt +0 -0
- {atomicshop-3.1.11.dist-info → atomicshop-3.1.12.dist-info}/WHEEL +0 -0
- {atomicshop-3.1.11.dist-info → atomicshop-3.1.12.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
|
@@ -353,6 +353,21 @@ def thread_worker_main(
|
|
|
353
353
|
server_receive_count += 1
|
|
354
354
|
current_count = server_receive_count
|
|
355
355
|
|
|
356
|
+
# Getting current time of message received, either from client or service.
|
|
357
|
+
client_message.timestamp = datetime.now()
|
|
358
|
+
|
|
359
|
+
# # No need to receive on service socket if we're in offline mode, because there is no service to connect to.
|
|
360
|
+
# if config_static.MainConfig.offline and side == 'Service':
|
|
361
|
+
# print_api("Offline Mode, skipping receiving on service socket.", logger=network_logger,
|
|
362
|
+
# logger_method='info')
|
|
363
|
+
# else:
|
|
364
|
+
|
|
365
|
+
# TODO
|
|
366
|
+
# if config_static.MainConfig.offline:
|
|
367
|
+
# if side == 'Client':
|
|
368
|
+
# # If we're in offline mode, then we'll use the offline queue to put the data for the service socket.
|
|
369
|
+
# offline_client_service_queue.put()
|
|
370
|
+
|
|
356
371
|
network_logger.info(
|
|
357
372
|
f"Initializing Receiver for {side} cycle: {str(current_count)}")
|
|
358
373
|
|
|
@@ -360,9 +375,6 @@ def thread_worker_main(
|
|
|
360
375
|
received_raw_data, is_socket_closed, error_message = receiver.Receiver(
|
|
361
376
|
ssl_socket=receiving_socket, logger=network_logger).receive()
|
|
362
377
|
|
|
363
|
-
# Getting current time of message received, either from client or service.
|
|
364
|
-
client_message.timestamp = datetime.now()
|
|
365
|
-
|
|
366
378
|
# In case of client socket, we'll process the raw data specifically for the client.
|
|
367
379
|
if side == 'Client':
|
|
368
380
|
process_client_raw_data(received_raw_data, error_message, client_message)
|
|
@@ -383,6 +395,11 @@ def thread_worker_main(
|
|
|
383
395
|
# the close on the opposite socket.
|
|
384
396
|
record_and_statistics_write(client_message)
|
|
385
397
|
|
|
398
|
+
if is_socket_closed:
|
|
399
|
+
exception_or_close_in_receiving_thread = True
|
|
400
|
+
finish_thread()
|
|
401
|
+
return
|
|
402
|
+
|
|
386
403
|
# Now send it to requester/responder.
|
|
387
404
|
if side == 'Client':
|
|
388
405
|
# Send to requester.
|
|
@@ -395,10 +412,6 @@ def thread_worker_main(
|
|
|
395
412
|
else:
|
|
396
413
|
raise ValueError(f"Unknown side [{side}] of the socket: {receiving_socket}")
|
|
397
414
|
|
|
398
|
-
if is_socket_closed:
|
|
399
|
-
exception_or_close_in_receiving_thread = True
|
|
400
|
-
finish_thread()
|
|
401
|
-
return
|
|
402
415
|
|
|
403
416
|
# If nothing was passed from the responder, and the client message is the connection message, then we'll skip to the next iteration.
|
|
404
417
|
if not bytes_to_send_list and client_connection_message:
|
|
@@ -511,6 +524,9 @@ def thread_worker_main(
|
|
|
511
524
|
# websocket_unmasked_frame_parser = websocket_parse.WebsocketFrameParser()
|
|
512
525
|
websocket_frame_parser = websocket_parse.WebsocketFrameParser()
|
|
513
526
|
|
|
527
|
+
# Offline queue between client and service threads.
|
|
528
|
+
offline_client_service_queue: queue.Queue = queue.Queue()
|
|
529
|
+
|
|
514
530
|
# Loading parser by domain, if there is no parser for current domain - general reference parser is loaded.
|
|
515
531
|
# These should be outside any loop and initialized only once entering the thread.
|
|
516
532
|
found_domain_module = assign_class_by_domain(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=c8m_Gh0h9hfNm9ePH6o00XYoYEtAE6ZAFRagc98X2aE,123
|
|
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
|
|
@@ -136,7 +136,7 @@ atomicshop/file_io/xmls.py,sha256=zh3SuK-dNaFq2NDNhx6ivcf4GYCfGM8M10PcEwDSpxk,21
|
|
|
136
136
|
atomicshop/mitm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
137
137
|
atomicshop/mitm/config_static.py,sha256=N3D06C_wUytwm80PQCL90ZGHLMHeQlCcI2XQQU2FZ1I,8145
|
|
138
138
|
atomicshop/mitm/config_toml_editor.py,sha256=2p1CMcktWRR_NW-SmyDwylu63ad5e0-w1QPMa8ZLDBw,1635
|
|
139
|
-
atomicshop/mitm/connection_thread_worker.py,sha256=
|
|
139
|
+
atomicshop/mitm/connection_thread_worker.py,sha256=r3yKhT96oh_vyFIi858gYrpFyqIpoDwxIMAOo2S8Jl4,29385
|
|
140
140
|
atomicshop/mitm/import_config.py,sha256=gCH1hV-CxBAdwjeFJu1I5ntbm5hqzcB0y0vzRPkzra0,16936
|
|
141
141
|
atomicshop/mitm/initialize_engines.py,sha256=Pj9k3iLdoE0KAl3QWG1Z10LHUHY8WQivSPFnQLhCWrc,7385
|
|
142
142
|
atomicshop/mitm/message.py,sha256=CDhhm4BTuZE7oNZCjvIZ4BuPOW4MuIzQLOg91hJaxDI,3065
|
|
@@ -337,8 +337,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=WcNyaqEZ82S5-f3kzqi1nllNT2N
|
|
|
337
337
|
atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
338
338
|
atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
|
|
339
339
|
atomicshop/wrappers/winregw/winreg_network.py,sha256=ih0BVNwByLvf9F_Lac4EdmDYYJA3PzMvmG0PieDZrsE,9905
|
|
340
|
-
atomicshop-3.1.
|
|
341
|
-
atomicshop-3.1.
|
|
342
|
-
atomicshop-3.1.
|
|
343
|
-
atomicshop-3.1.
|
|
344
|
-
atomicshop-3.1.
|
|
340
|
+
atomicshop-3.1.12.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
341
|
+
atomicshop-3.1.12.dist-info/METADATA,sha256=CML7ZknJI9npNHvo4ZJ7XE9sb2xMKnhoQUREbKqIvx0,10671
|
|
342
|
+
atomicshop-3.1.12.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
343
|
+
atomicshop-3.1.12.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
344
|
+
atomicshop-3.1.12.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|