# Path: interface/messages.py
# def print_success(*args, **kwargs):
#     print(Color.GREEN + Color.BOLD + "[+]" + Color.ENDC, *args, **kwargs)
# 
# def print_error(*args, **kwargs):
#     print(Color.RED + Color.BOLD + "[-]" + Color.ENDC, *args, **kwargs)
# 
# def print_info(*args, **kwargs):
#     print(Color.BLUE + Color.BOLD + "[*]" + Color.ENDC, *args, **kwargs)
# 
# def print_help(*args, **kwargs):
#     print(Color.PURPLE + Color.BOLD + "[?]" + Color.ENDC, *args, **kwargs)


import requests
import requests.exceptions
import bs4
import core.Harvester
import interface.utils
from interface.messages import print_success, print_error, print_info, print_help
                else:
                    print_error("port value must be integer")
            elif args[0] == "username":
                self.username = args[1]
            elif args[0] == "password":
                self.password = args[1]
        except IndexError:
            print_error("please specify value for variable")

    def do_password(self, e):
        print_info(self.password)

    def help_password(self):
        print_help("Prints current value of password")

    def help_username(self):
        print_info("Prints current value of username")

    def do_username(self, e):
        print_info(self.username)

    def do_run(self, e):
        try:
            print_info("Connecting to:", self.host)
            auth = (self.username, self.password)
            response = requests.get("http://"+self.host+"/basic/home_wan.htm", auth=auth, timeout=60)
            # headers, body = http.request("http://"+self.target+"/basic/home_wan.htm")
            if response.status_code == 200:
                print_success("Authentication successful")
                ppp_credentials = self.fetch_ppp(response.text)

# Path: interface/messages.py
# def print_success(*args, **kwargs):
#     print(Color.GREEN + Color.BOLD + "[+]" + Color.ENDC, *args, **kwargs)
# 
# def print_error(*args, **kwargs):
#     print(Color.RED + Color.BOLD + "[-]" + Color.ENDC, *args, **kwargs)
# 
# def print_info(*args, **kwargs):
#     print(Color.BLUE + Color.BOLD + "[*]" + Color.ENDC, *args, **kwargs)
# 
# def print_help(*args, **kwargs):
#     print(Color.PURPLE + Color.BOLD + "[?]" + Color.ENDC, *args, **kwargs)


# Path: modules/harvesters/airlive/WT2000ARM.py
import requests
import requests.exceptions
import bs4
import core.Harvester
import interface.utils
from interface.messages import print_success, print_error, print_info, print_help

                else:
                    print_error("port value must be integer")
            elif args[0] == "username":
                self.username = args[1]
            elif args[0] == "password":
                self.password = args[1]
        except IndexError:
            print_error("please specify value for variable")

    def do_password(self, e):
        print_info(self.password)

    def help_password(self):
        print_help("Prints current value of password")

    def help_username(self):
        print_info("Prints current value of username")

    def do_username(self, e):
        print_info(self.username)

    def do_run(self, e):
        try:
            print_info("Connecting to:", self.host)
            auth = (self.username, self.password)
            response = requests.get("http://"+self.host+"/basic/home_wan.htm", auth=auth, timeout=60)
            # headers, body = http.request("http://"+self.target+"/basic/home_wan.htm")
            if response.status_code == 200:
                print_success("Authentication successful")
                ppp_credentials = self.fetch_ppp(response.text)

                print_success("PPPoE/PPPoA Username:", ppp_credentials[0])