def __init__(self, targets, args): self.q = Queue() self.args = args self.stopping = Event() self.targets = targets self.exclude_regexs = self.gen_exclusions() fs.create_dir(settings.BASE_DIR) for target in self.targets: fs.create_dir(settings.BASE_DIR + target + "/")
def create_path(self): fs.create_dir(self.path + "/")
def run(self): fs.create_dir(settings.BASE_DIR + "amass/") cp = subprocess.run( ["amass", "-d", self.wildcard, "-o", self.output_file, "-active"], stdout=subprocess.DEVNULL)
def __init__(self, wildcard): self.wildcard = wildcard fs.create_dir(settings.BASE_DIR)
def run(self): fs.create_dir(settings.BASE_DIR + "subfinder/") cp = subprocess.run( ["subfinder", "-d", self.wildcard, "-o", self.output_file], stdout=subprocess.DEVNULL)