Files
SnarfCode/scripts/find_dns_files.py

15 lines
406 B
Python

import os
import glob
matches = []
for root, dirs, files in os.walk(r"c:\Users\Snarf\OneDrive\Desktop\code\SnarfCode"):
if ".git" in root: continue
for f in files:
low = f.lower()
if any(k in low for k in ["pihole", "technitium", "dns", "unbound", "honeypot", "firewall", "vlan", "network"]):
matches.append(os.path.join(root, f))
for m in matches[:30]:
print(m)