# Path: lib/common/completer.py
# class none(object):
# class MainMenuCompleter(object):
# class PayloadCompleter(object):
# class MSFCompleter(object):
# class IPCompleter(object):
# class MSFPortCompleter(object):
# class PathCompleter(object):
# class GreatSCTMainMenuCompleter(object):
#     def complete(self, args):
#     def __init__(self, cmds, payloads):
#     def complete_use(self, args):
#     def complete_info(self, args):
#     def complete(self, text, state):
#     def __init__(self, cmds, payload):
#     def _listdir(self, root):
#     def _complete_path(self, path=None):
#     def complete_path(self, args):
#     def complete_set(self, args):
#     def complete(self, text, state):
#     def __init__(self, payloadTree):
#     def complete(self, text, state):
#     def __init__(self):
#     def complete(self, text, state):
#     def __init__(self):
#     def complete(self, text, state):
#     def __init__(self):
#     def _listdir(self, root):
#     def _complete_path(self, path=None):
#     def complete_path(self, args):
#     def complete(self, text, state):
#     def __init__(self, cmds, tools):
#     def complete_use(self, args):
#     def complete_info(self, args):
#     def complete(self, text, state):
#         RE_SPACE = re.compile('.*\s+$', re.M)
#         RE_SPACE = re.compile('.*\s+$', re.M)
#         RE_SPACE = re.compile('.*\s+$', re.M)
#         RE_SPACE = re.compile('.*\s+$', re.M)
# 
# Path: lib/common/helpers.py
# def clean_payloads():
# def color(string, status=True, warning=False, bold=True, yellow=False):
# def check_int(incoming_int):
# def randomString(length=-1):
# def randomKey(b=32):
# def randomNumbers(b=7):
# def validate_hostname(hostname):
# def validate_ip(ip_address):
# def validate_port(port_number):
# 
# Path: lib/common/messages.py
# def title_screen():


import glob
import imp
import os
import readline
import sys
from lib.common import completer
from lib.common import helpers
from lib.common import messages

                elif main_menu_command.startswith('info'):

                    if len(main_menu_command.split()) == 1:
                        show_header = True
                        main_menu_command = ''

                    elif len(main_menu_command.split()) == 2:

                        # Grab the command, either the number or word
                        info_choice = main_menu_command.split()[1]

                        # if we're choosing the payload by numbers
                        if info_choice.isdigit() and\
                                0 < int(info_choice) <= len(self.imported_tools):
                            tool_number = 1
                            for key, tool_object in sorted(self.imported_tools.items()):
                                # if the entered number matches the tool, use that tool
                                if int(info_choice) == tool_number:
                                    print()
                                    print(helpers.color(tool_object.cli_name) + " => " + tool_object.description)
                                    print()
                                    show_header = False
                                tool_number += 1

                        # if the entered name matches the tool, use that tool
                        else:
                            for key, tool_object in sorted(self.imported_tools.items()):
                                if main_menu_command.split()[1].lower() == tool_object.cli_name.lower():
                                    print()

# Path: lib/common/completer.py
# class none(object):
# class MainMenuCompleter(object):
# class PayloadCompleter(object):
# class MSFCompleter(object):
# class IPCompleter(object):
# class MSFPortCompleter(object):
# class PathCompleter(object):
# class GreatSCTMainMenuCompleter(object):
#     def complete(self, args):
#     def __init__(self, cmds, payloads):
#     def complete_use(self, args):
#     def complete_info(self, args):
#     def complete(self, text, state):
#     def __init__(self, cmds, payload):
#     def _listdir(self, root):
#     def _complete_path(self, path=None):
#     def complete_path(self, args):
#     def complete_set(self, args):
#     def complete(self, text, state):
#     def __init__(self, payloadTree):
#     def complete(self, text, state):
#     def __init__(self):
#     def complete(self, text, state):
#     def __init__(self):
#     def complete(self, text, state):
#     def __init__(self):
#     def _listdir(self, root):
#     def _complete_path(self, path=None):
#     def complete_path(self, args):
#     def complete(self, text, state):
#     def __init__(self, cmds, tools):
#     def complete_use(self, args):
#     def complete_info(self, args):
#     def complete(self, text, state):
#         RE_SPACE = re.compile('.*\s+$', re.M)
#         RE_SPACE = re.compile('.*\s+$', re.M)
#         RE_SPACE = re.compile('.*\s+$', re.M)
#         RE_SPACE = re.compile('.*\s+$', re.M)
# 
# Path: lib/common/helpers.py
# def clean_payloads():
# def color(string, status=True, warning=False, bold=True, yellow=False):
# def check_int(incoming_int):
# def randomString(length=-1):
# def randomKey(b=32):
# def randomNumbers(b=7):
# def validate_hostname(hostname):
# def validate_ip(ip_address):
# def validate_port(port_number):
# 
# Path: lib/common/messages.py
# def title_screen():


# Path: lib/common/orchestra.py
import glob
import imp
import os
import readline
import sys
from lib.common import completer
from lib.common import helpers
from lib.common import messages


                elif main_menu_command.startswith('info'):

                    if len(main_menu_command.split()) == 1:
                        show_header = True
                        main_menu_command = ''

                    elif len(main_menu_command.split()) == 2:

                        # Grab the command, either the number or word
                        info_choice = main_menu_command.split()[1]

                        # if we're choosing the payload by numbers
                        if info_choice.isdigit() and\
                                0 < int(info_choice) <= len(self.imported_tools):
                            tool_number = 1
                            for key, tool_object in sorted(self.imported_tools.items()):
                                # if the entered number matches the tool, use that tool
                                if int(info_choice) == tool_number:
                                    print()
                                    print(helpers.color(tool_object.cli_name) + " => " + tool_object.description)
                                    print()
                                    show_header = False
                                tool_number += 1

                        # if the entered name matches the tool, use that tool
                        else:
                            for key, tool_object in sorted(self.imported_tools.items()):
                                if main_menu_command.split()[1].lower() == tool_object.cli_name.lower():
                                    print()

                                    print(helpers.color(tool_object.cli_name) + " => " + tool_object.description)