atomicshop 2.20.2__py3-none-any.whl → 2.20.3__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 CHANGED
@@ -1,4 +1,4 @@
1
1
  """Atomic Basic functions and classes to make developer life easier"""
2
2
 
3
3
  __author__ = "Den Kras"
4
- __version__ = '2.20.2'
4
+ __version__ = '2.20.3'
@@ -294,6 +294,7 @@ def thread_worker_main(
294
294
  client_message: ClientMessage = ClientMessage()
295
295
  client_message.client_name = client_name
296
296
  client_message.client_ip = client_ip
297
+ client_message.server_ip = server_ip
297
298
  client_message.source_port = source_port
298
299
  client_message.destination_port = destination_port
299
300
  client_message.server_name = server_name
@@ -542,6 +543,13 @@ def thread_worker_main(
542
543
  client_name = socket.gethostbyaddr(client_ip)[0]
543
544
  destination_port = client_socket.getsockname()[1]
544
545
 
546
+ if config_static.TCPServer.server_response_mode:
547
+ # If in response mode, then we'll get the TCP server's input address.
548
+ server_ip = client_socket.getsockname()[0]
549
+ else:
550
+ # If not in response mode, we will get the ip from the socket that will connect later to the service.
551
+ server_ip = ""
552
+
545
553
  network_logger.info(f"Thread Created - Client [{client_ip}:{source_port}] | "
546
554
  f"Destination service: [{server_name}:{destination_port}]")
547
555
 
@@ -569,6 +577,9 @@ def thread_worker_main(
569
577
  if not service_client:
570
578
  service_client = create_client_socket(client_message_connection)
571
579
  service_socket_instance, connection_error = service_client.service_connection()
580
+ # Now we'll update the server IP with the IP of the service.
581
+ server_ip = service_socket_instance.getpeername()[0]
582
+ client_message_connection.server_ip = server_ip
572
583
  else:
573
584
  client_message_connection.timestamp = datetime.now()
574
585
  client_message_connection.action = 'service_connect'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.20.2
3
+ Version: 2.20.3
4
4
  Summary: Atomic functions and classes to make developer life easier
5
5
  Author: Denis Kras
6
6
  License: MIT License
@@ -1,4 +1,4 @@
1
- atomicshop/__init__.py,sha256=YT_T5JzFRTIksmE_0awk2rKq2ttCQS7jQZk6RPF_DjQ,123
1
+ atomicshop/__init__.py,sha256=jrfooKEB2n1xq7etpsauLw74Y-KUQXdITvpLqaKbRYc,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
@@ -135,7 +135,7 @@ atomicshop/file_io/xmls.py,sha256=zh3SuK-dNaFq2NDNhx6ivcf4GYCfGM8M10PcEwDSpxk,21
135
135
  atomicshop/mitm/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
136
136
  atomicshop/mitm/config_static.py,sha256=DjSnDtMU8srdqca8s6Q-oFCWgjjiCjXRhyk-nafRAUk,7788
137
137
  atomicshop/mitm/config_toml_editor.py,sha256=2p1CMcktWRR_NW-SmyDwylu63ad5e0-w1QPMa8ZLDBw,1635
138
- atomicshop/mitm/connection_thread_worker.py,sha256=6xfQ5MmWR2pqgDfjjelSgHfiTzhprRXNpfhgpoNbsGI,28688
138
+ atomicshop/mitm/connection_thread_worker.py,sha256=tn71RotrQOTo6dyAakuLlY4HrM5ia_0FbNKLCY6Xahg,29304
139
139
  atomicshop/mitm/import_config.py,sha256=0Ij14aISTllTOiWYJpIUMOWobQqGofD6uafui5uWllE,9272
140
140
  atomicshop/mitm/initialize_engines.py,sha256=rijND1jxt3Zs8P0jhcQZc0tgcWD4-nq8ARODiWzhurU,8278
141
141
  atomicshop/mitm/message.py,sha256=CDhhm4BTuZE7oNZCjvIZ4BuPOW4MuIzQLOg91hJaxDI,3065
@@ -330,8 +330,8 @@ atomicshop/wrappers/socketw/statistics_csv.py,sha256=WcNyaqEZ82S5-f3kzqi1nllNT2N
330
330
  atomicshop/wrappers/winregw/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
331
331
  atomicshop/wrappers/winregw/winreg_installed_software.py,sha256=Qzmyktvob1qp6Tjk2DjLfAqr_yXV0sgWzdMW_9kwNjY,2345
332
332
  atomicshop/wrappers/winregw/winreg_network.py,sha256=AENV88H1qDidrcpyM9OwEZxX5svfi-Jb4N6FkS1xtqA,8851
333
- atomicshop-2.20.2.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
334
- atomicshop-2.20.2.dist-info/METADATA,sha256=vUaF9sMXezhYJN5zLGjTupSrN9oMANcQhKKqnFmsgGY,10630
335
- atomicshop-2.20.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
336
- atomicshop-2.20.2.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
337
- atomicshop-2.20.2.dist-info/RECORD,,
333
+ atomicshop-2.20.3.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
334
+ atomicshop-2.20.3.dist-info/METADATA,sha256=EIraBjAqtxnXnhDD7G-mdiXYggN0Fn99egvpmtoPrC4,10630
335
+ atomicshop-2.20.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
336
+ atomicshop-2.20.3.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
337
+ atomicshop-2.20.3.dist-info/RECORD,,