3

我正在捕获 Selenium 使用 Browser Mob 代理(使用 browsermob-proxy Python 包)发出的 HTTP 请求。在我的 HAR 文件中,我看到了这个(它应该是一个 Javascript 文件):

"content": {
        "comment": "",
        "size": 10908,
        "mimeType": "application/x-javascript; charset=utf-8",
        "encoding": "base64",
        "text": "4qF2FJIUvnlRlDNSpoB6KeBkiFADdf4D8QYKthNRVc+tMqHv1vuipJbkMKsgPuuM4/FG3RVcLlYhxHmH35SDP/NTPTs+PWuP0OSUmpep2uur7Gg0QAyJLhUO46Fajm7qKW2HIkAKFgUwAKh2pplqVvWqnKqQtoMInI5jpiEhh7QO8b+zQ+HSllatf4Oq8hdgAzWVjJFBy4K7J02g0CWJaE3ikUbWh96mImD0tVD/hsgTm03zkZSKPTbyuux6ZjVB07R8fS9NIHHcSSsOkdejy1htoCuWa6qNMM7z2VERAsm2YnW3oRpFsJkUvrT3/99X7Z1ffUj6En9wyp2bLmQNl4tmOqemFs7Z517zBcDzAJBLIEGuERUmkNLE8M4NjyCCDEDgMIy0VvwpaBxCrmLponHp1adYxq6kOjeldTMD6cmsD03id+swTblb2+2X1oTXgDEGDCHbH9Pv+feptbckYYUdiFQCJAkgFKl3f8tnz3Np6clo7Ew75vzG+LaQOB1e21ynJe35eaQA+I2sEYlCgm6h+3cbWLVx4P2jO4754x/xT0lPemYveuX+jAjSCQeYXsCHqHK+xS9AIgSCvgDnhNzk3IcLxJEmwqIAJz+ccdWDC0AiQxA8QvMlzrniwQWgl6P//xfAEdO2ruZucLVYmUp6L8E5KE8gPqpjGVdkWCnJMJDqyq3bEkxdVBdt/dWpFB/n7JTjKAWquRsjYY49sj6MU0mu8+tOomC5okbz1zk+mvUs80FeweRRKRYW4FyjaRrQBbAOCQRMnIgzT/64QJrkePBXCl7JmhzbXBUevKs1h14bjs1sUmtKqH+rLB0fQUqwhDTrVBagWlKH5wlnIY2dCSIkOfKSIVexLI+XuLxVOn/IghTLTaLnbwpql4VSlGrJbyLmJMdECxS2wSLYQVOELiAoMBG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WymaOsVEW6xSH3UUaRo/VqTq4IZ0htmfeatxMr2JSRhbTFNEUZ17DEQS0UL+jWvrii1f67NdpzFHUMUBdU4v+dWIC6Xh1BXXMtwqkVwMKchBGNDKJZWhQB+CSVqkiMa3nxZ3WNKFddMiSk5enWGBI3hnEfxIYU7j3JkGCEaemaFPh9rV895sJhdxfTL1XHrWSkCMVRkd6VU5A/dCo2qSIm6g/UeH1aB2OyCjMNmPlMPn0vZuxI+pWJ/bJMKYZadfX8QdEuD8SSj0g4AnW1QYjPHfWaiAKxkbhJVmdxMiG0QU1DWz4DeZptmkHDQhRW5idMqzifRbpkqGdOvx08wiE6Kz6dSvkK7x5p4zrH9GeE8eLFuRbwq28v2kiT6jskPS7okJj4VkziTQSommnr0xScVQ5bN2R3/ZxU99rnZOfPbZByxGCTfmSXk7aRQ5I8d0ncXbzEsW0Lkk4tLVWuUNsgatviVbiTbhOL6LKq0RN7no5kNlUjbLwubt584R4nF/ZRFC+DnORNTSD75rukAMq35s3RPSlvVeK703y3z5d8erCRa6543oNbPg6qtyN8O7LOPvFAUR0AhCyTP4q+A64qO4R1ludQXWImoSjdNMwgsiZHgHQG"
      }

但是,当解码使用textcontent

base64.b64decode(my_coded_text).decode("UTF-8")

我总是收到以下错误:

UnicodeDecodeError: 'utf-8' codec can't decode bytes in position 0-1: invalid continuation byte

解码此类字符串的正确方法是什么?

编辑添加

我假设问题来自 rfc1341 的这一行:“base64 数据中的 CRLF 序列应转换为带引号的可打印换行符,但仅在转换文本数据时”,因为解码适用于图像。

但是,我还没有理解什么是 base64 数据中的 CRLF 序列以及如何转换它。

4

2 回答 2

0

我不确定“文本”属性中应该包含什么样的数据,但它肯定不是文本。您需要分析发出此请求的应用程序才能弄清楚这一点。

解码后的文本以以下数据开头,其中不包含任何可读文本,并且与任何已知文件格式都不匹配:

00000000: e2a1 7614 9214 be79 5194 3352 a680 7a29  ..v....yQ.3R..z)
00000010: e064 8850 0375 fe03 f106 0ab6 1351 55cf  .d.P.u.......QU.
00000020: ad32 a1ef d6fb a2a4 96e4 30ab 203e eb8c  .2........0. >..
00000030: e3f1 46dd 155c 2e56 21c4 7987 df94 833f  ..F..\.V!.y....?

对数据的分析表明它实际上是不可压缩的。这意味着它可能被加密或使用未知算法压缩。

于 2018-01-26T18:32:03.870 回答
0

我找不到解码 base64 的方法,但我可以找到一种解决方法:使用selenium-requests和访问响应发送相同的请求,这一次,不是 base64 编码的。

代码现在看起来像这样:

for http_req in proxy.har["log"]["entries"]:
    req_url = http_req["request"]["url"]
    if url in req_url:
        # Captures the POST data
        payload = {}
        for post_param in http_req["request"]["postData"]["params"]:
            param_name = post_param["name"]
            param_value = post_param["value"]
            payload[param_name] = param_value

# Resends the post request
r = driver.request('POST', url, data=payload)
于 2018-01-29T09:03:41.843 回答