def discover(targets, report_name): msg = "Monitorizer Report ::: %s\n" % report_name msg += "[Github]: https://github.com/BitTheByte/Monitorizer\n\n" msg += "```\n" for subdomain in targets: if not monitorizer.nxdomain(subdomain): ports = monitorizer.masscan(subdomain) monitorizer.log("found: {subdomain} {ports}".format( subdomain=subdomain, ports=ports)) msg += "{subdomain} {ports} \n".format(subdomain=subdomain, ports=ports) msg += "```" monitorizer.slackmsg(msg=msg)
monitorizer.first_run() scanners = [ "subfinder", "sublist3r", "dnsrecon", "dnscan", "amass", #"aiodnsbrute" - need to be preinstalled :: python3 -m pip install aiodnsbrute #"subbrute" - not recommended ] if monitorizer.os.path.isfile(monitorizer.args.watch): watch_list = set( [t.strip() for t in open(monitorizer.args.watch, "r").readlines()]) monitorizer.log("Reading targets from file: %s" % monitorizer.args.watch) else: watch_list = set([t.strip() for t in monitorizer.args.watch.split(",")]) monitorizer.log("Watching targets: %s" % ','.join(watch_list)) if monitorizer.args.scanners != "all": scanners = set([t.strip() for t in monitorizer.args.scanners.split(",")]) monitorizer.log("Using scanners: %s" % ','.join(scanners)) else: monitorizer.log("Using all scanners: %s" % ','.join(scanners)) on.start() while 1: try: for target in watch_list:
monitorizer.sublist3r, monitorizer.dnsrecon, monitorizer.dnscan, monitorizer.amass, ] monitorizer.slackmsg("Monitorizer framework v1 started :tada:") while 1: try: for target in [t.strip() for t in open("watch_list", "r").readlines()]: if not target: continue report_name = str(datetime.now().strftime("%Y%m%d_%s")) report_path = "reports/%s_%s" % (target, report_name) monitorizer.log("<{}> ::: {}".format(target, report_path)) newscan = monitorizer.mutliscan(scanners, target, output=report_path) oldscan = monitorizer.read_reports(target, exclude=[report_name]) if not len(oldscan): monitorizer.log("<{}> first Scan".format(target)) diff = [] else: diff = newscan - oldscan for new in diff: if not monitorizer.NXDOMAIN(new): monitorizer.log("Found: %s" % new) monitorizer.slackmsg(msg="Found: %s " % new)
monitorizer.first_run() scanners = [ "subfinder", "sublist3r", "dnsrecon", "dnscan", "amass", #"aiodnsbrute" - need to be preinstalled :: python3 -m pip install aiodnsbrute #"subbrute" - not recommended ] if monitorizer.os.path.isfile(monitorizer.args.watch): watch_list = set( [t.strip() for t in open(monitorizer.args.watch, "r").readlines()]) monitorizer.log("Reading targets from file: %s" % monitorizer.args.watch) else: watch_list = set([t.strip() for t in monitorizer.args.watch.split(",")]) monitorizer.log("Watching targets: %s" % ','.join(watch_list)) if monitorizer.args.scanners != "all": scanners = set([t.strip() for t in monitorizer.args.scanners.split(",")]) monitorizer.log("Using scanners: %s" % ','.join(scanners)) else: monitorizer.log("Using all scanners: %s" % ','.join(scanners)) monitorizer.slackmsg("Monitorizer framework v1.1 started :tada:") while 1: try: for target in watch_list: