atomicshop 2.12.17__py3-none-any.whl → 2.12.18__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/diff_check.py +3 -6
- atomicshop/monitor/checks/dns.py +2 -0
- {atomicshop-2.12.17.dist-info → atomicshop-2.12.18.dist-info}/METADATA +1 -1
- {atomicshop-2.12.17.dist-info → atomicshop-2.12.18.dist-info}/RECORD +8 -8
- {atomicshop-2.12.17.dist-info → atomicshop-2.12.18.dist-info}/LICENSE.txt +0 -0
- {atomicshop-2.12.17.dist-info → atomicshop-2.12.18.dist-info}/WHEEL +0 -0
- {atomicshop-2.12.17.dist-info → atomicshop-2.12.18.dist-info}/top_level.txt +0 -0
atomicshop/__init__.py
CHANGED
atomicshop/diff_check.py
CHANGED
|
@@ -207,7 +207,7 @@ class DiffChecker:
|
|
|
207
207
|
self.new_objects_seconds_then_difference: Union[float, None] = None
|
|
208
208
|
self.timer = None
|
|
209
209
|
|
|
210
|
-
def
|
|
210
|
+
def initiate_before_action(self):
|
|
211
211
|
"""
|
|
212
212
|
This function will be called before the actual checking of the object.
|
|
213
213
|
If you change any attribute of the class, you will need to call this function again.
|
|
@@ -254,7 +254,8 @@ class DiffChecker:
|
|
|
254
254
|
self.previous_day = None
|
|
255
255
|
|
|
256
256
|
if self.new_objects_hours_then_difference and self.operation_type != 'new_objects':
|
|
257
|
-
raise ValueError(
|
|
257
|
+
raise ValueError(
|
|
258
|
+
"The 'new_objects_hours_then_difference' variable must be set for 'new_objects' operation type.")
|
|
258
259
|
|
|
259
260
|
if self.new_objects_hours_then_difference:
|
|
260
261
|
self.new_objects_seconds_then_difference = self.new_objects_hours_then_difference * 60 * 60
|
|
@@ -266,8 +267,6 @@ class DiffChecker:
|
|
|
266
267
|
The function will check file content for change by hashing it and comparing the hash.
|
|
267
268
|
"""
|
|
268
269
|
|
|
269
|
-
self._static_pre_process()
|
|
270
|
-
|
|
271
270
|
if not isinstance(self.check_object, str):
|
|
272
271
|
raise TypeError(f"[check_object] must be string, not {type(self.check_object)}.")
|
|
273
272
|
|
|
@@ -287,8 +286,6 @@ class DiffChecker:
|
|
|
287
286
|
:param print_kwargs: dict, of kwargs to pass to 'print_api' function.
|
|
288
287
|
"""
|
|
289
288
|
|
|
290
|
-
self._static_pre_process()
|
|
291
|
-
|
|
292
289
|
if not isinstance(self.check_object, list):
|
|
293
290
|
raise TypeError(f'[check_object] must be list, not {type(self.check_object)}.')
|
|
294
291
|
|
atomicshop/monitor/checks/dns.py
CHANGED
|
@@ -46,6 +46,7 @@ def setup_check(change_monitor_instance):
|
|
|
46
46
|
f'{change_monitor_instance.input_file_name}|{change_monitor_instance.object_type}'
|
|
47
47
|
DIFF_CHECKER_AGGREGATION.input_file_path = input_file_path
|
|
48
48
|
DIFF_CHECKER_AGGREGATION.new_objects_hours_then_difference = SETTINGS['learning_hours']
|
|
49
|
+
DIFF_CHECKER_AGGREGATION.initiate_before_action()
|
|
49
50
|
|
|
50
51
|
if SETTINGS['create_alert_statistics']:
|
|
51
52
|
DIFF_CHECKER_STATISTICS.input_file_write_only = change_monitor_instance.input_file_write_only
|
|
@@ -53,6 +54,7 @@ def setup_check(change_monitor_instance):
|
|
|
53
54
|
f'{change_monitor_instance.input_statistics_file_name}|{change_monitor_instance.object_type}'
|
|
54
55
|
DIFF_CHECKER_STATISTICS.input_file_path = input_statistic_file_path
|
|
55
56
|
DIFF_CHECKER_STATISTICS.hit_statistics_input_file_rotation_cycle_hours = SETTINGS['statistics_rotation_hours']
|
|
57
|
+
DIFF_CHECKER_STATISTICS.initiate_before_action()
|
|
56
58
|
|
|
57
59
|
# Start DNS monitoring.
|
|
58
60
|
FETCH_ENGINE.start()
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
atomicshop/__init__.py,sha256=
|
|
1
|
+
atomicshop/__init__.py,sha256=PD75VCFr3_YvRyoE_p4WvyJhHypr_m2Q5Dxpw6mO7F8,124
|
|
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
|
|
@@ -9,7 +9,7 @@ atomicshop/config_init.py,sha256=z2RXD_mw9nQlAOpuGry1h9QT-2LhNscXgGAktN3dCVQ,249
|
|
|
9
9
|
atomicshop/console_output.py,sha256=AOSJjrRryE97PAGtgDL03IBtWSi02aNol8noDnW3k6M,4667
|
|
10
10
|
atomicshop/console_user_response.py,sha256=31HIy9QGXa7f-GVR8MzJauQ79E_ZqAeagF3Ks4GGdDU,3234
|
|
11
11
|
atomicshop/datetimes.py,sha256=olsL01S5tkXk4WPzucxujqgLOh198BLgJntDnGYukRU,15533
|
|
12
|
-
atomicshop/diff_check.py,sha256=
|
|
12
|
+
atomicshop/diff_check.py,sha256=0H4OeRxJodFIubpAoy2dFY9hixzLbkJ8NNlH6K3Xdus,27033
|
|
13
13
|
atomicshop/dns.py,sha256=bNZOo5jVPzq7OT2qCPukXoK3zb1oOsyaelUwQEyK1SA,2500
|
|
14
14
|
atomicshop/domains.py,sha256=Rxu6JhhMqFZRcoFs69IoEd1PtYca0lMCG6F1AomP7z4,3197
|
|
15
15
|
atomicshop/emails.py,sha256=I0KyODQpIMEsNRi9YWSOL8EUPBiWyon3HRdIuSj3AEU,1410
|
|
@@ -134,7 +134,7 @@ atomicshop/mitm/engines/__reference_general/responder___reference_general.py,sha
|
|
|
134
134
|
atomicshop/monitor/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
135
135
|
atomicshop/monitor/change_monitor.py,sha256=ySfFCtsCFG3irV6gKr43DbbyQgmTwzG5m3FkCWDa8UI,9246
|
|
136
136
|
atomicshop/monitor/checks/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
137
|
-
atomicshop/monitor/checks/dns.py,sha256=
|
|
137
|
+
atomicshop/monitor/checks/dns.py,sha256=8ZkJ-YKh53sZuSjzvT7ZwhZvq8Kym7GsIsTZX7TL1tE,5858
|
|
138
138
|
atomicshop/monitor/checks/hash.py,sha256=f719jU1A_rJi1ixGEHzWIZEoqpHJq4znabZnq4in9IM,2202
|
|
139
139
|
atomicshop/monitor/checks/network.py,sha256=i2jc5LRKeQJRNtOrSbkZQQCMy33No_X-SjMcXDmIh1E,3753
|
|
140
140
|
atomicshop/monitor/checks/process_running.py,sha256=pvSTa3nHDy1YH-35QkFxBUsqnCnfU5PBA_NNjp9iUNg,1889
|
|
@@ -251,8 +251,8 @@ atomicshop/wrappers/socketw/socket_server_tester.py,sha256=AhpurHJmP2kgzHaUbq5ey
|
|
|
251
251
|
atomicshop/wrappers/socketw/socket_wrapper.py,sha256=aXBwlEIJhFT0-c4i8iNlFx2It9VpCEpsv--5Oqcpxao,11624
|
|
252
252
|
atomicshop/wrappers/socketw/ssl_base.py,sha256=k4V3gwkbq10MvOH4btU4onLX2GNOsSfUAdcHmL1rpVE,2274
|
|
253
253
|
atomicshop/wrappers/socketw/statistics_csv.py,sha256=t3dtDEfN47CfYVi0CW6Kc2QHTEeZVyYhc57IYYh5nmA,826
|
|
254
|
-
atomicshop-2.12.
|
|
255
|
-
atomicshop-2.12.
|
|
256
|
-
atomicshop-2.12.
|
|
257
|
-
atomicshop-2.12.
|
|
258
|
-
atomicshop-2.12.
|
|
254
|
+
atomicshop-2.12.18.dist-info/LICENSE.txt,sha256=lLU7EYycfYcK2NR_1gfnhnRC8b8ccOTElACYplgZN88,1094
|
|
255
|
+
atomicshop-2.12.18.dist-info/METADATA,sha256=4E-r6t0g9HkY20OK3Lku2kubU9gIgrt-etS18Ms37Ig,10479
|
|
256
|
+
atomicshop-2.12.18.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
257
|
+
atomicshop-2.12.18.dist-info/top_level.txt,sha256=EgKJB-7xcrAPeqTRF2laD_Np2gNGYkJkd4OyXqpJphA,11
|
|
258
|
+
atomicshop-2.12.18.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|