def telnet_burst(host, port): if not port_check(host, port): return try: task_init(host, port) run_threads(1, task_thread) except Exception: pass
def ssh_burst(host, port, task_queue, result_queue): log = paramiko.util.logging.getLogger() log.setLevel(logging.CRITICAL) if not port_check(host, port): logger.warning("{}:{} is unreachable".format(host, port)) return try: task_init(host, port, task_queue, result_queue) run_threads(4, task_thread, args=(task_queue, result_queue)) except Exception: pass
def ftp_burst(host, port): if not port_check(host, port): return if anonymous_login(host, port): logger.info('try burst {}:{} use username:{} password:{}'.format( host, port, 'anonymous', '<empty>')) result_queue.put(('anonymous', '<empty>')) return try: task_init(host, port) run_threads(4, task_thread) except Exception: pass
def start(): tasks_count = kb.task_queue.qsize() info_msg = "pocsusite got a total of {0} tasks".format(tasks_count) logger.info(info_msg) run_threads(conf.threads, task_run) task_done() if conf.mode == "shell": info_msg = "connect back ip: {0} port: {1}".format( conf.connect_back_host, conf.connect_back_port) logger.info(info_msg) info_msg = "watting for shell connect to pocsuite" logger.info(info_msg) if conf.console_mode: handle_listener_connection_for_console() else: handle_listener_connection()
def start(): tasks_count = kb.task_queue.qsize() info_msg = "pocsusite got a total of {0} tasks".format(tasks_count) logger.info(info_msg) logger.debug("pocsuite will open {} threads".format(conf.threads)) try: run_threads(conf.threads, task_run) finally: task_done() if conf.mode == "shell" and not conf.api: info_msg = "connect back ip: {0} port: {1}".format(conf.connect_back_host, conf.connect_back_port) logger.info(info_msg) info_msg = "waiting for shell connect to pocsuite" logger.info(info_msg) if conf.console_mode: handle_listener_connection_for_console() else: handle_listener_connection()