# 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: Tools/Bypass/bypass_common/bypass_helpers.py
# def deflate(string_val):
# def compileToTemp(language, payloadSource):
# def expiring_payload_variables():
# def format_long(title, message, frontTab=True, spacing=16):
# def inflate(b64string):
# def LHOST():
# def obfuscateNum(N, mod):
# def print_dict_message(commands, show_title=True):
# def randomString(length=-1):
# def title_screen():
# 
# 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)


import socket
import os
import readline
import subprocess
import binascii
import sys
        import settings
from lib.common import helpers
from Tools.Bypass.bypass_common import bypass_helpers
from lib.common import completer
                        for part in parts:
                            options = options[part]

                    except KeyError:
                        # make sure user entered a valid payload
                        if 'PAYLOAD' in self.required_options:
                            del self.required_options['PAYLOAD']
                        print(helpers.color(" [!] ERROR: Invalid payload specified!\n", warning=True))
                        selected_payload = None

                # remove the tab completer
                readline.set_completer(None)

                # set the internal payload to the one selected
                self.msfvenompayload = selected_payload

                # request a value for each required option
                for option in options:
                    value = ""
                    while value == "":

                        ### VALIDATION ###
                        # LHOST is a special case, so we can tab complete the local IP
                        if option == "LHOST":

                            try:
                                value = self.required_options['LHOST'][0]
                                print(' [>] Enter value for \'LHOST\', [tab] for local IP: %s' % (value))
                            except:
                                # set the completer to fill in the local IP

# 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: Tools/Bypass/bypass_common/bypass_helpers.py
# def deflate(string_val):
# def compileToTemp(language, payloadSource):
# def expiring_payload_variables():
# def format_long(title, message, frontTab=True, spacing=16):
# def inflate(b64string):
# def LHOST():
# def obfuscateNum(N, mod):
# def print_dict_message(commands, show_title=True):
# def randomString(length=-1):
# def title_screen():
# 
# 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: Tools/Bypass/bypass_common/shellcode_help.py
import socket
import os
import readline
import subprocess
import binascii
import sys
        import settings
from lib.common import helpers
from Tools.Bypass.bypass_common import bypass_helpers
from lib.common import completer

                        for part in parts:
                            options = options[part]

                    except KeyError:
                        # make sure user entered a valid payload
                        if 'PAYLOAD' in self.required_options:
                            del self.required_options['PAYLOAD']
                        print(helpers.color(" [!] ERROR: Invalid payload specified!\n", warning=True))
                        selected_payload = None

                # remove the tab completer
                readline.set_completer(None)

                # set the internal payload to the one selected
                self.msfvenompayload = selected_payload

                # request a value for each required option
                for option in options:
                    value = ""
                    while value == "":

                        ### VALIDATION ###
                        # LHOST is a special case, so we can tab complete the local IP
                        if option == "LHOST":

                            try:
                                value = self.required_options['LHOST'][0]
                                print(' [>] Enter value for \'LHOST\', [tab] for local IP: %s' % (value))
                            except:
                                # set the completer to fill in the local IP

                                readline.set_completer(completer.IPCompleter().complete)