atomicshop 2.20.1__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.1'
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'
@@ -12,7 +12,7 @@ from bs4 import BeautifulSoup
12
12
 
13
13
  from . import engine, base, combos
14
14
  from ...basics import threads, multiprocesses
15
- from ...web import USER_AGENTS
15
+ from ... import web
16
16
 
17
17
 
18
18
  def get_text_from_html_tag(url: str, tag_name: str, attribute: str, value: str) -> str:
@@ -219,7 +219,7 @@ def _fetch_content(
219
219
  with sync_playwright() as p:
220
220
  browser = p.chromium.launch(headless=headless) # Set headless=True if you don't want to see the browser
221
221
 
222
- user_agent: str = USER_AGENTS['Windows_Chrome_Latest']
222
+ user_agent: str = web.USER_AGENTS['Windows_Chrome_Latest']
223
223
 
224
224
  if text_fetch_method == "playwright_copypaste":
225
225
  context = browser.new_context(permissions=["clipboard-read", "clipboard-write"], user_agent=user_agent)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 2.20.1
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=v-nWc0H5hzfYpv98O85V2zxHgjjuPKnvoGqDkz_SCGE,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
@@ -285,7 +285,7 @@ atomicshop/wrappers/playwrightw/javascript.py,sha256=_bW7CAtm0Y8IHYrAalg5HpPFnk6
285
285
  atomicshop/wrappers/playwrightw/keyboard.py,sha256=zN3YddGO-qUkn6C0CRVFejP4cTuaUwXLDNFhFREjERY,422
286
286
  atomicshop/wrappers/playwrightw/locators.py,sha256=6wsLywZxDuii7mwv-zQsRbqQC8r7j96Bma5b5_7ZoVo,2411
287
287
  atomicshop/wrappers/playwrightw/mouse.py,sha256=-2FZbQtjgH7tdXWld6ZPGqlKFUdf5in0ujN0hewxa50,656
288
- atomicshop/wrappers/playwrightw/scenarios.py,sha256=FkdzyvefzQCrCnSiPVjxDlY8x14W8jo_xUQQmHad6Iw,11636
288
+ atomicshop/wrappers/playwrightw/scenarios.py,sha256=0t7007v461HYF6TEeXxHoqxvf3jwu7dOnrwdvffe3bE,11629
289
289
  atomicshop/wrappers/playwrightw/waits.py,sha256=PBFdz_PoM7Fo7O8hLqMrxNPzBEYgPoXwZceFFCGGeu8,7182
290
290
  atomicshop/wrappers/psutilw/cpus.py,sha256=w6LPBMINqS-T_X8vzdYkLS2Wzuve28Ydp_GafTCngrc,236
291
291
  atomicshop/wrappers/psutilw/disks.py,sha256=3ZSVoommKH1TWo37j_83frB-NqXF4Nf5q5mBCX8G4jE,9221
@@ -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.1.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
334
- atomicshop-2.20.1.dist-info/METADATA,sha256=uMkPC6Yuv8XR4at2BPfs8myE_eNqq3C3iyZkvOfmbTk,10630
335
- atomicshop-2.20.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
336
- atomicshop-2.20.1.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
337
- atomicshop-2.20.1.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,,