Update configs to new db manipulation bot approach

This commit is contained in:
Marek Wolan
2024-03-03 14:57:28 +00:00
parent 070655cfce
commit 4d51b1a414
4 changed files with 23 additions and 61 deletions

View File

@@ -149,6 +149,10 @@ class DataManipulationBot(Application):
:param p_of_success: Probability of successfully performing data manipulation, by default 0.1.
"""
if self._host_db_client is None:
self.attack_stage = DataManipulationAttackStage.FAILED
return
self._host_db_client.server_ip_address = self.server_ip_address
self._host_db_client.server_password = self.server_password
if self.attack_stage == DataManipulationAttackStage.PORT_SCAN: