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

Method __init__

actions/steal_files_ssh.py:31–40  ·  view source on GitHub ↗
(self, shared_data)

Source from the content-addressed store, hash-verified

29 Class to handle the process of stealing files from SSH servers.
30 """
31 def __init__(self, shared_data):
32 try:
33 self.shared_data = shared_data
34 self.sftp_connected = False
35 self.stop_execution = False
36 self.b_parent_action = b_parent # Set the parent action attribute
37 self.file_tracker = FileTracker('ssh', self.shared_data.datadir)
38 logger.info("StealFilesSSH initialized")
39 except Exception as e:
40 logger.error(f"Error during initialization: {e}")
41
42 def connect_ssh(self, ip, username, password):
43 """

Callers

nothing calls this directly

Calls 3

FileTrackerClass · 0.90
infoMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected