Remove duplicate entries from the results CSV file.
(self)
| 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 | |
| 259 | if __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 |
no test coverage detected