INNER CODE UNIT · Python

histories

volkandindar/agartha · Agartha.py:129

        histories = self._callbacks.getProxyHistory()[::-1]
        for history in histories:
            url = str(self._helpers.analyzeRequest(history).getUrl())
            if url.startswith("https"):
                url = url.replace(":443/", "/")
            elif url.startswith("http"):
                url = url.replace(":80/", "/")

            if  url == _url:
                if str(self._helpers.analyzeRequest(history.getRequest()).getMethod()) == 'GET':
                    header = str((self._helpers.bytesToString(history.getRequest())).split('\n', 1)[0]).split('\n', 1)[0]
                    returnMethod = 'GET'
                else:
                    header = (self._helpers.bytesToString(self._callbacks.getHelpers().toggleRequestMethod(history.getRequest()))).split('\n', 1)[0]
                    returnMethod = 'POST'
                break
        
        if not returnMethod:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…