atomicshop 3.2.3__py3-none-any.whl → 3.2.4__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__ = '3.2.3'
4
+ __version__ = '3.2.4'
@@ -179,8 +179,11 @@ def thread_worker_main(
179
179
 
180
180
  network_logger.info("Thread Finished. Will continue listening on the Main thread")
181
181
 
182
- def create_requester_request(client_message: ClientMessage) -> list[bytes]:
183
- requests: list = [requester.create_request(client_message)]
182
+ def create_requester_request(
183
+ client_message: ClientMessage,
184
+ sending_socket: socket.socket
185
+ ) -> list[bytes]:
186
+ requests: list = [requester.create_request(client_message, sending_socket=sending_socket)]
184
187
 
185
188
  # Output first 100 characters of all the requests in the list.
186
189
  for request_raw_bytes_single in requests:
@@ -414,7 +417,8 @@ def thread_worker_main(
414
417
  # Now send it to requester/responder.
415
418
  if side == 'Client':
416
419
  # Send to requester.
417
- bytes_to_send_list: list[bytes] = create_requester_request(client_message)
420
+ bytes_to_send_list: list[bytes] = create_requester_request(
421
+ client_message, sending_socket=sending_socket)
418
422
 
419
423
  # If we're in offline mode, then we'll put the request to the responder right away.
420
424
  if config_static.MainConfig.offline:
@@ -109,7 +109,7 @@ class RequesterParent:
109
109
 
110
110
  return request_raw_bytes
111
111
 
112
- def create_request(self, class_client_message: ClientMessage):
112
+ def create_request(self, class_client_message: ClientMessage, **kwargs) -> bytes:
113
113
  """ This function should be overridden in the child class. """
114
114
 
115
115
  request_bytes: bytes = class_client_message.request_raw_bytes
@@ -24,7 +24,7 @@ class RequesterGeneral(RequesterParent):
24
24
 
25
25
  self.logger = create_custom_logger()
26
26
 
27
- # def create_request(self, class_client_message: ClientMessage):
27
+ # def create_request(self, class_client_message: ClientMessage, **kwargs) -> bytes:
28
28
  # # noinspection GrazieInspection
29
29
  # """
30
30
  # For more examples check the responder.
@@ -83,7 +83,7 @@ class CreateModuleTemplate:
83
83
  config_lines_list.append('localhost = 1\n')
84
84
  config_lines_list.append('[on_port_connect]')
85
85
  config_lines_list.append('#5000 = "31.31.31.31:443"')
86
- config_lines_list.append('#5000 = "C:\\test\\address.txt"\n')
86
+ config_lines_list.append('#5000 = "ip_port_address.txt"\n')
87
87
  config_lines_list.append('[mtls]')
88
88
  config_lines_list.append('# "subdomain.domain.com" = "file_name_in_current_dir.pem"\n')
89
89
  # config_lines_list.append(f'\n')
@@ -85,6 +85,10 @@ class ModuleCategory:
85
85
  for port, value in self.on_port_connect.items():
86
86
  self.port_target_dict[port] = {'ip': None, 'port': int(port)}
87
87
 
88
+ # If it is not an IP address (e.g. <IP:PORT>) it will be treated as file path.
89
+ if ':' not in value:
90
+ self.on_port_connect[port] = f'{engine_directory_path}{os.sep}{value}'
91
+
88
92
  for subdomain, file_name in self.mtls.items():
89
93
  self.mtls[subdomain] = f'{engine_directory_path}{os.sep}{file_name}'
90
94
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: atomicshop
3
- Version: 3.2.3
3
+ Version: 3.2.4
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=E9biES7HGkFT33WIn-3TddAU3I0nK3vpYHlxkm5MdD8,122
1
+ atomicshop/__init__.py,sha256=tQatAAnQOtX4NdF28ZY2ktnZhdEOfGQyz-1n7OSRnCI,122
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,26 +136,26 @@ 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=9lnSmGuNKUnN0-IskhObA0XJeLvm63vXD2QiNAUTIb8,8751
138
138
  atomicshop/mitm/config_toml_editor.py,sha256=2p1CMcktWRR_NW-SmyDwylu63ad5e0-w1QPMa8ZLDBw,1635
139
- atomicshop/mitm/connection_thread_worker.py,sha256=E_DNvP4lbbcoeFziiG10Aa7bg7Ka09wdwV_uqaRm5rU,32554
139
+ atomicshop/mitm/connection_thread_worker.py,sha256=52mnpc0ajOc47y-oNU0VEXtJL9payB_i1KEPcyBiRhc,32710
140
140
  atomicshop/mitm/import_config.py,sha256=_RJPxoVEEsJQwQY-K_8qPw2PbzsDcV23_sEJEWSKqXY,17831
141
- atomicshop/mitm/initialize_engines.py,sha256=N4JVoC7PXN8GxUBXvNCXS-ZA5ag6rXqYXyZ3EyHOcLM,10318
141
+ atomicshop/mitm/initialize_engines.py,sha256=EYGW6gEYVETmmh9uNdsFT89YAdzeducFTIkdF-as33s,10534
142
142
  atomicshop/mitm/message.py,sha256=CDhhm4BTuZE7oNZCjvIZ4BuPOW4MuIzQLOg91hJaxDI,3065
143
143
  atomicshop/mitm/mitm_main.py,sha256=at9uxnXF_4b273HRXt9UGkERkHantRTOAvRtlYYI68E,30774
144
144
  atomicshop/mitm/recs_files.py,sha256=ZAAD0twun-FtmbSniXe3XQhIlawvANNB_HxwbHj7kwI,3151
145
145
  atomicshop/mitm/shared_functions.py,sha256=0lzeyINd44sVEfFbahJxQmz6KAMWbYrW5ou3UYfItvw,1777
146
146
  atomicshop/mitm/statistic_analyzer.py,sha256=5_sAYGX2Xunzo_pS2W5WijNCwr_BlGJbbOO462y_wN4,27533
147
147
  atomicshop/mitm/engines/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
148
- atomicshop/mitm/engines/create_module_template.py,sha256=VXGicn4S136GezFFvB9YuFteDkR2srUyA_O2E3XmogQ,5766
148
+ atomicshop/mitm/engines/create_module_template.py,sha256=2ceRWPzofpRf-R8VAMgXrx2D7vumkhfsrr120YFGgH0,5764
149
149
  atomicshop/mitm/engines/create_module_template_main_example.py,sha256=LeQ44Rp2Gi_KbIDY_4OMS0odkSK3zFZWra_oAka5eJY,243
150
150
  atomicshop/mitm/engines/__parent/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
151
151
  atomicshop/mitm/engines/__parent/parser___parent.py,sha256=HHaCXhScl3OlPjz6eUxsDpJaZyk6BNuDMc9xCkeo2Ws,661
152
152
  atomicshop/mitm/engines/__parent/recorder___parent.py,sha256=I5RNNtqc2DRIm1E9grOkTvk9F79mfJvTl9vfVEUgcLE,6010
153
- atomicshop/mitm/engines/__parent/requester___parent.py,sha256=mKHR1xrfx0CCO74vv164Fr_dVDhptqvYsE3ORoM4_7k,5107
153
+ atomicshop/mitm/engines/__parent/requester___parent.py,sha256=j3QYOfQFEPSzIEWihkssNcfaLWC8cpdpi-ciPgjKNBc,5126
154
154
  atomicshop/mitm/engines/__parent/responder___parent.py,sha256=mtiS_6ej9nxT9UhAQR4ftMqnqL-j_kO3u8KEaoEaI9k,9495
155
155
  atomicshop/mitm/engines/__reference_general/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
156
156
  atomicshop/mitm/engines/__reference_general/parser___reference_general.py,sha256=57MEPZMAjTO6xBDZ-yt6lgGJyqRrP0Do5Gk_cgCiPns,2998
157
157
  atomicshop/mitm/engines/__reference_general/recorder___reference_general.py,sha256=El2_YHLoHUCiKfkAmGlXxtFpmSjsUFdsb8I1MvSAFaM,653
158
- atomicshop/mitm/engines/__reference_general/requester___reference_general.py,sha256=aYLrLZYvMdX9u7NzYc03GviFcyhusKqUatZ8tKrkaLM,1992
158
+ atomicshop/mitm/engines/__reference_general/requester___reference_general.py,sha256=Qz0VCYK38qqzWP38guuAunZtz1YHQQ6S_XfRZTFS_ZQ,2011
159
159
  atomicshop/mitm/engines/__reference_general/responder___reference_general.py,sha256=Q0XKe_dP4Xm3BrUgCn-rUr_n7cjZCkol4moz_Ice0HM,9697
160
160
  atomicshop/mitm/statistic_analyzer_helper/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
161
161
  atomicshop/mitm/statistic_analyzer_helper/analyzer_helper.py,sha256=pk6L1t1ea1kvlBoR9QEJptOmaX-mumhwLsP2GCKukbk,5920
@@ -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.2.3.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
341
- atomicshop-3.2.3.dist-info/METADATA,sha256=Nx2nweBCrNFQkSYKA7MHTIo6UU60pt6PD-UhLLfFvgg,10670
342
- atomicshop-3.2.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
343
- atomicshop-3.2.3.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
344
- atomicshop-3.2.3.dist-info/RECORD,,
340
+ atomicshop-3.2.4.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
341
+ atomicshop-3.2.4.dist-info/METADATA,sha256=RbrrGTEzttTM8d-VagjhDT9b1h--ystZjXkmc4GtT2c,10670
342
+ atomicshop-3.2.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
343
+ atomicshop-3.2.4.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
344
+ atomicshop-3.2.4.dist-info/RECORD,,