@classmethod
def get_method(self):
    bsObj = BeautifulSoup(self.body, 'html.parser')
    links = bsObj.find_all('a', href=True)
    for a in links:
        url = a['href']
        if ((url.startswith('http://') is False) or (url.startswith('https://') is False) or (url.startswith('mailto:') is False)):
            base = urljoin(self.url, a['href'])
            query = urlparse(base).query
            if (query != ''):
                Log.warning((((('Found link with query: ' + G) + query) + N) + ' Maybe a vuln XSS point'))
                query_payload = query.replace(query[(query.find('=') + 1):len(query)], self.payload, 1)
                test = base.replace(query, query_payload, 1)
                query_all = base.replace(query, urlencode({x: self.payload for x in parse_qs(query)}))
                Log.info(('Query (GET) : ' + test))
                Log.info(('Query (GET) : ' + query_all))
                _respon = self.session.get(test)
                if ((self.payload in _respon.text) or (self.payload in self.session.get(query_all).text)):
                    Log.high(('Detected XSS (GET) at ' + _respon.url))
                    file = open('xss.txt', 'a')
                    file.write((str(_respon.url) + '\n\n'))
                    file.close()
                else:
                    Log.info('Parameter page using (GET) payloads but not 100% yet...')
@classmethod
def get_method(self):
    bsObj = BeautifulSoup(self.body, 'html.parser')
    links = bsObj.find_all('a', href=True)
    for a in links:
        url = a['href']
        if ((url.startswith('http://') is False) or (url.startswith('https://') is False) or (url.startswith('mailto:') is False)):
            base = urljoin(self.url, a['href'])
            query = urlparse(base).query
            if (query != ):
                Log.warning((((('Found link with query: ' + G) + query) + N) + ' Maybe a vuln XSS point'))
                query_payload = query.replace(query[(query.find('=') + 1):len(query)], self.payload, 1)
                test = base.replace(query, query_payload, 1)
                query_all = base.replace(query, urlencode({x: self.payload for x in parse_qs(query)}))
                Log.info(('Query (GET) : ' + test))
                Log.info(('Query (GET) : ' + query_all))
                _respon = self.session.get(test)
                if ((self.payload in _respon.text) or (self.payload in self.session.get(query_all).text)):
                    Log.high(('Detected XSS (GET) at ' + _respon.url))
                    file = open('xss.txt', 'a')
                    file.write((str(_respon.url) + '\n\n'))
                    file.close()
                else:
                    Log.info('Parameter page using (GET) payloads but not 100% yet...')