Esempio n. 1
0
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()
Esempio n. 2
0
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()