MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / __init__

Method __init__

actions/steal_data_sql.py:25–32  ·  view source on GitHub ↗
(self, shared_data)

Source from the content-addressed store, hash-verified

23 """
24 def __init__(self, shared_data):
25 try:
26 self.shared_data = shared_data
27 self.sql_connected = False
28 self.stop_execution = False
29 logger.info("StealDataSQL initialized.")
30 except Exception as e:
31 logger.error(f"Error during initialization: {e}")
32
33 def connect_sql(self, ip, username, password, database=None):
34 """
35 Establish a MySQL connection using SQLAlchemy.

Callers

nothing calls this directly

Calls 2

infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected