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

Method removeduplicates

actions/ssh_connector.py:253–262  ·  view source on GitHub ↗

Remove duplicate entries from the results CSV file.

(self)

Source from the content-addressed store, hash-verified

251 import pandas as pd # lazy: keeps ~44MB pandas out of RAM until an attack action runs
252 if not os.path.exists(self.sshfile):
253 return
254
255 df = pd.read_csv(self.sshfile)
256 df.drop_duplicates(inplace=True)
257 df.to_csv(self.sshfile, index=False)
258
259if __name__ == "__main__":
260 shared_data = SharedData()
261 try:
262 ssh_bruteforce = SSHBruteforce(shared_data)
263 logger.info("Démarrage de l'attaque SSH... sur le port 22")
264
265 # Load the netkb file and get the IPs to scan

Callers 1

run_bruteforceMethod · 0.95

Calls 1

read_csvMethod · 0.80

Tested by

no test coverage detected