@classmethod
def main(self, url, proxy, headers, payload, cookie, method=2):
    print((W + ('*' * 15)))
    self.payload = payload
    self.url = url
    self.session = session(proxy, headers, cookie)
    Log.info((('Checking connection to: ' + Y) + url))
    try:
        ctr = self.session.get(url)
        self.body = ctr.text
    except Exception as e:
        Log.high(('Internal error: ' + str(e)))
        return
    if (ctr.status_code > 400):
        Log.info((('Connection failed ' + G) + str(ctr.status_code)))
        return
    else:
        Log.info((('Connection estabilished ' + G) + str(ctr.status_code)))
    if (method >= 2):
        self.post_method()
        self.get_method()
        self.get_method_form()
    elif (method == 1):
        self.post_method()
    elif (method == 0):
        self.get_method()
        self.get_method_form()
@classmethod
def main(self, url, proxy, headers, payload, cookie, method=2):
    print((W + ('*' * 15)))
    self.payload = payload
    self.url = url
    self.session = session(proxy, headers, cookie)
    Log.info((('Checking connection to: ' + Y) + url))
    try:
        ctr = self.session.get(url)
        self.body = ctr.text
    except Exception as e:
        Log.high(('Internal error: ' + str(e)))
        return
    if (ctr.status_code > 400):
        Log.info((('Connection failed ' + G) + str(ctr.status_code)))
        return
    else:
        Log.info((('Connection estabilished ' + G) + str(ctr.status_code)))
    if (method >= 2):
        self.post_method()
        self.get_method()
        self.get_method_form()
    elif (method == 1):
        self.post_method()
    elif (method == 0):
        self.get_method()
        self.get_method_form()