Merge pull request #18 from robert-todora/dev

Dev
This commit is contained in:
Robert Todora
2023-07-18 15:41:26 -05:00
committed by GitHub
2 changed files with 17 additions and 1 deletions
+2 -1
View File
@@ -25,7 +25,8 @@ class Rules:
# TODO
def is_interest(file, rules:Rules):
def is_interest(file):
# massive_wordlist = prepare_classifiers()
# print(massive_wordlist)
# for root, dirs, files in os.walk(snafflepy_path, topdown=False):
+15
View File
@@ -27,6 +27,21 @@ def begin_snaffle(options):
print("Beginning the snaffle...")
sleep(0.2)
if(not options.domain):
log.info("Domain not provided, retrieving automatically.")
s = Server(options.targets[0], get_info = ALL)
c = Connection(s)
if(not c.bind()):
log.error("Could not get domain automatically")
sys.exit(1)
else:
try:
options.domain = str(s.info.other["ldapServiceName"][0].split("@")[1]).lower()
except Exception as e:
log.error("Could not get domain automatically")
sys.exit(1)
c.unbind()
domain_names = []
# TODO: Talk to AD via LDAP to get list of computers with file shares
if options.disable_computer_discovery: