Merge branch 'main' into dev

This commit is contained in:
Robert Todora
2023-07-18 15:41:17 -05:00
committed by GitHub
2 changed files with 4 additions and 3 deletions
+1
View File
@@ -25,6 +25,7 @@ class Rules:
# TODO
def is_interest(file):
# massive_wordlist = prepare_classifiers()
# print(massive_wordlist)
+3 -3
View File
@@ -94,7 +94,7 @@ def begin_snaffle(options):
# filelist.append(file)
# Ask do they want file sizes?
# log.info(f"{target} Found file in {share}: {file.get_longname()}")
naive_classify(share, file)
naive_classify(share, file, prepped_rules)
# log.info(f"{target} Found file in {share}: {file}")
except FileListError:
log.error(
@@ -166,11 +166,11 @@ def list_computers(connection: Connection, domain):
return None
# TODO
def naive_classify(share, file):
def naive_classify(share, file, rules:Rules):
log.info(f"{share}: {file.get_longname()}")
if is_interest(file):
if is_interest(file, rules):
log.info(f"Found interesting file: {share}/{file}")