atomicshop 3.2.6__py3-none-any.whl → 3.2.8__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/basics/tracebacks.py +13 -3
- atomicshop/mitm/engines/__parent/recorder___parent.py +3 -6
- atomicshop/mitm/recs_files.py +5 -0
- {atomicshop-3.2.6.dist-info → atomicshop-3.2.8.dist-info}/METADATA +1 -1
- {atomicshop-3.2.6.dist-info → atomicshop-3.2.8.dist-info}/RECORD +9 -9
- {atomicshop-3.2.6.dist-info → atomicshop-3.2.8.dist-info}/LICENSE.txt +0 -0
- {atomicshop-3.2.6.dist-info → atomicshop-3.2.8.dist-info}/WHEEL +0 -0
- {atomicshop-3.2.6.dist-info → atomicshop-3.2.8.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/basics/tracebacks.py
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
import traceback
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
def get_as_string(
|
|
4
|
+
def get_as_string(
|
|
5
|
+
exc: BaseException = None,
|
|
6
|
+
one_line: bool = False,
|
|
7
|
+
replace_end: str = str()
|
|
8
|
+
) -> str:
|
|
5
9
|
"""
|
|
6
10
|
Returns traceback as string.
|
|
7
11
|
|
|
12
|
+
:param exc: Exception to get traceback from. If 'None', current exception will be used.
|
|
8
13
|
:param one_line: If 'True', traceback will be returned as one line.
|
|
9
14
|
:param replace_end: If 'one_line' is 'True', this string will be used to replace '\n' in traceback.
|
|
10
15
|
:return: Traceback as string.
|
|
11
16
|
"""
|
|
12
17
|
|
|
18
|
+
if exc is None:
|
|
19
|
+
stringed_exception: str = traceback.format_exc()
|
|
20
|
+
else:
|
|
21
|
+
stringed_exception: str = ''.join(traceback.TracebackException.from_exception(exc).format())
|
|
22
|
+
|
|
13
23
|
if not one_line:
|
|
14
|
-
return
|
|
24
|
+
return stringed_exception
|
|
15
25
|
else:
|
|
16
|
-
return
|
|
26
|
+
return stringed_exception.replace('\n', replace_end)
|
|
@@ -119,12 +119,9 @@ def save_message_worker(
|
|
|
119
119
|
if record_message_dict is None:
|
|
120
120
|
break
|
|
121
121
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
# If the file was created, and it doesn't exist, change the path recording file path to notify about it.
|
|
126
|
-
elif file_created and not os.path.exists(record_file_path):
|
|
127
|
-
current_datetime_string: str = get_datetime_string()
|
|
122
|
+
current_datetime_string: str = get_datetime_string()
|
|
123
|
+
# If current datetime string is different from the original datetime string, we will create a new file path.
|
|
124
|
+
if current_datetime_string != original_datetime_string:
|
|
128
125
|
record_file_path = f'{original_file_directory}{os.sep}{current_datetime_string}_{original_file_stem}_partof_{original_datetime_string}{original_file_extension}'
|
|
129
126
|
|
|
130
127
|
try:
|
atomicshop/mitm/recs_files.py
CHANGED
|
@@ -89,6 +89,11 @@ def recs_archiver(
|
|
|
89
89
|
|
|
90
90
|
finalize_output_queue.put(None)
|
|
91
91
|
|
|
92
|
+
print_api.print_api(
|
|
93
|
+
'Finished recs archiver process.', color='blue',
|
|
94
|
+
logger=rec_packer_logger_with_queue_handler
|
|
95
|
+
)
|
|
96
|
+
|
|
92
97
|
return archived_files
|
|
93
98
|
except Exception as e:
|
|
94
99
|
print_api.print_api(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=AInyQwlGaAXpv8QMYrxkmihPKv4r22sPQoEzRB8sOeU,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
|
|
@@ -114,7 +114,7 @@ atomicshop/basics/randoms.py,sha256=DmYLtnIhDK29tAQrGP1Nt-A-v8WC7WIEB8Edi-nk3N4,
|
|
|
114
114
|
atomicshop/basics/strings.py,sha256=mT31UXrn4dgfLtNC6PeBwrkuQHtjdPEiP38VaWgpv3w,21217
|
|
115
115
|
atomicshop/basics/threads.py,sha256=LDJiprLqdWU4JnPpCOiIC_tEnyssmCqh-6J3gfrO4QA,3195
|
|
116
116
|
atomicshop/basics/timeit_template.py,sha256=fYLrk-X_dhdVtnPU22tarrhhvlggeW6FdKCXM8zkX68,405
|
|
117
|
-
atomicshop/basics/tracebacks.py,sha256=
|
|
117
|
+
atomicshop/basics/tracebacks.py,sha256=Q10VnbWqcA1tL0tJsq0q1PxQtRehPT_F69DQzRMNdks,842
|
|
118
118
|
atomicshop/etws/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
119
119
|
atomicshop/etws/_pywintrace_fix.py,sha256=nHrtnAb796eOZ6FlCqcsuRh_TSqSPp6JXLN6TBIz-Us,418
|
|
120
120
|
atomicshop/etws/const.py,sha256=v3x_IdCYeSKbCGywiZFOZln80ldpwKW5nuMDuUe51Jg,1257
|
|
@@ -141,7 +141,7 @@ atomicshop/mitm/import_config.py,sha256=_RJPxoVEEsJQwQY-K_8qPw2PbzsDcV23_sEJEWSK
|
|
|
141
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=StOAvsswTx325kVIXjHiH97QP2Syxq5o0mnoeiPsy_4,32149
|
|
144
|
-
atomicshop/mitm/recs_files.py,sha256=
|
|
144
|
+
atomicshop/mitm/recs_files.py,sha256=tv8XFhYZMkBv4DauvpiAdPgvSo0Bcm1CghnmwO7dx8M,5018
|
|
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
|
|
@@ -149,7 +149,7 @@ atomicshop/mitm/engines/create_module_template.py,sha256=2ceRWPzofpRf-R8VAMgXrx2
|
|
|
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
|
-
atomicshop/mitm/engines/__parent/recorder___parent.py,sha256=
|
|
152
|
+
atomicshop/mitm/engines/__parent/recorder___parent.py,sha256=56lKDzb-aAUzu0zfWGi56y4R73meCbX19-RjfV-Wx5E,5822
|
|
153
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
|
|
@@ -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.
|
|
341
|
-
atomicshop-3.2.
|
|
342
|
-
atomicshop-3.2.
|
|
343
|
-
atomicshop-3.2.
|
|
344
|
-
atomicshop-3.2.
|
|
340
|
+
atomicshop-3.2.8.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
341
|
+
atomicshop-3.2.8.dist-info/METADATA,sha256=wNgOAS7Fz_oo9J3E6T5C5n2yih5B8o8VHXzD0uELj_s,10670
|
|
342
|
+
atomicshop-3.2.8.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
343
|
+
atomicshop-3.2.8.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
344
|
+
atomicshop-3.2.8.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|