Merge pull request #682 from jakubmilkowski/master

fix: Prevent duplicate entries for uploaded pcaps
This commit is contained in:
evilsocket
2019-12-03 11:42:22 +01:00
committed by GitHub

View File

@ -92,6 +92,7 @@ class OnlineHashCrack(plugins.Plugin):
display.update(force=True) display.update(force=True)
try: try:
self._upload_to_ohc(handshake) self._upload_to_ohc(handshake)
if handshake not in reported:
reported.append(handshake) reported.append(handshake)
self.report.update(data={'reported': reported}) self.report.update(data={'reported': reported})
logging.info(f"OHC: Successfully uploaded {handshake}") logging.info(f"OHC: Successfully uploaded {handshake}")