Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(self, task_id, 'dnsscan', target, params, project_uuid)
# program_params = params['program']
# self.params_object = program_params
self.request_queue = asyncio.Queue()
self.resolver = aiodns.DNSResolver()
self.pool_size = 10
self.new_ips_ids = list()
self.new_hosts_ids = list()
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(self, task_id, 'nmap', target, params, project_uuid)
self.proc = None
self.exit_code = None
self.stdout = []
self.stderr = []
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(
self, task_id, 'patator', target, params, project_uuid
)
self.patator_proc = None
self.socket_path = None
self.loop = asyncio.get_event_loop()
self.all_done = asyncio.Lock()
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(self, task_id, 'amass', target, params, project_uuid)
self.proc = None
self.exit_code = None
self.stdout = []
self.stderr = []
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(self, task_id, 'nmap', target, params, project_uuid)
self.proc = None
self.exit_code = None
self.stdout = []
self.stderr = []
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(
self, task_id, 'dirsearch', target, params, project_uuid
)
program_params = params['program']
self.params_object = program_params
self.dirsearch_proc = None
self.socket_path = None
self.loop = asyncio.get_event_loop()
self.all_done = asyncio.Lock()
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(self, task_id, 'masscan', target, params, project_uuid)
self.proc = None
self.exit_code = None
self.stdout = []
self.stderr = []
if type(self.target) == list:
self.target = ",".join(self.target)
def __init__(self, task_id, target, params, project_uuid):
AsyncTask.__init__(
self, task_id, 'dirsearch', target, params, project_uuid
)
program_params = params['program']
self.params_object = program_params
self.dirsearch_proc = None
self.socket_path = None
self.loop = asyncio.get_event_loop()
self.all_done = asyncio.Lock()