targets.append(t) for target in args.target: if os.path.exists(target): with open(target, 'r') as target_file: for target_entry in target_file: populate_targets(target_entry) else: populate_targets(target) if args.mimikatz or args.powerview or args.gpp_passwords or args.mimikatz_cmd or args.tokens or args.inject or args.ntds == 'ninja': if args.server == 'http': http_server(args.server_port) elif args.server == 'https': https_server(args.server_port) def concurrency(targets): ''' Open all the greenlet (as supposed to redlet??) threads Whoever came up with that name has a fetish for traffic lights ''' try: pool = Pool(args.threads) jobs = [pool.spawn(main_greenlet, str(target)) for target in targets] for job in jobs: job.join(timeout=args.timeout) except KeyboardInterrupt: shutdown(0) concurrency(targets)
return IPNetwork(target) if os.path.exists(args.target): with open(args.target, 'r') as target_file: for target in target_file: targets.append(get_targets(target)) else: for target in args.target.split(','): targets.append(get_targets(target)) if args.mimikatz or args.mimikatz_cmd or args.inject or args.ntds == 'ninja': if args.server == 'http': http_server() elif args.server == 'https': https_server() def concurrency(targets): ''' Open all the greenlet (as supposed to redlet??) threads Whoever came up with that name has a fetish for traffic lights ''' try: pool = Pool(args.threads) jobs = [pool.spawn(connect, str(host)) for net in targets for host in net] joinall(jobs) except KeyboardInterrupt: shutdown(0) concurrency(targets)
if os.path.exists(args.target): with open(args.target, 'r') as target_file: for target in target_file: targets.append(get_targets(target)) else: for target in args.target.split(','): targets.append(get_targets(target)) if args.mimikatz or args.powerview or args.gpp_passwords or args.mimikatz_cmd or args.inject or args.ntds == 'ninja': if args.server == 'http': http_server(args.server_port) elif args.server == 'https': https_server(args.server_port) def concurrency(targets): ''' Open all the greenlet (as supposed to redlet??) threads Whoever came up with that name has a fetish for traffic lights ''' try: pool = Pool(args.threads) jobs = [ pool.spawn(connect, str(host)) for net in targets for host in net ] joinall(jobs) except KeyboardInterrupt: shutdown(0)