def __addToQuarentena(self, filename): self.__quarentena.add(Detector.pegaHash(filename)) os.rename(filename, "Quarentena/" + os.path.basename(filename))
def __opcao2(self): print('hash do novo virus: ' + Detector.pegaHash('NovoVirus.txt')) print("Informe o hash do novo virus:") x = input() self.__antiVirus.addVirus(x)