def show(self):
utils.print_help('"Target info')
i = 0
x = PrettyTable()
x.field_names = ['index', 'host', 'port']
for target in self.__targets:
x.add_row([i, target.host, target.port])
i += 1
utils.print_info(x)
utils.print_help('Threads: ', end='')
utils.print_info(str(self.__threads))
utils.print_help('Timeout: ', end='')
utils.print_info(str(self.__timeout))
utils.print_help('Output: ', end='')
utils.print_info(self.__output)
# utils.print_info("Target info: {}\n"
# "Threads: {}\n"
# "Timeout: {}\n"
# "Output: {}"
# .format(self.__targets, self.__threads, self.__timeout, self.__output))
评论列表
文章目录