Why does this happen? Careful children may find that the request connection data we sent to the server is different:
The information in the first picture is {"roomid":98284,"uid":271298361556770}
The information in the second picture is {"uid":276194535568357,"protover":2,"roomid":98284}
roomid is the real room number, and uid is a randomly generated string of numbers. You can copy and log in directly.
In comparison, the second one has an extra "protover":2 parameter. In fact, the first picture is to capture the data packet of the mobile client, and the second picture is to capture the data packet of the computer web page. So whether there is this "protover":2 parameter, you can connect to the barrage server.
So we can infer that the easiest data to capture when capturing packets is the mobile phone, followed by the wap side, and finally the computer side.
But many times the packet data we capture is a string of garbled characters as shown in Figure 2, whether you use utf8 or Even using gbk encoding cannot achieve the effect shown in Figure 1.
This kind of data is actually a kind of compressed data gzip. Currently, wireshark does not support the decompression mode of this compressed data.
Nowadays, websites are basically transmitted in compression mode during transmission, so the data you capture is compressed data. In your opinion, it is completely garbled and there is no way to start.
As shown in the figure, when visiting my blog homepage, the web page data sent back by the crawling server is in gzip mode, and the web pages we usually visit are decompressed and rendered by the browser and then presented to us.
Since the Bilibili server transmits gzip data, the solution is very simple. Installing a third-party zlib package or gzip package can solve this problem.
The above is the detailed content of What happens when captured packet data is garbled?. For more information, please follow other related articles on the PHP Chinese website!

哔哩哔哩缓存的视频保存位置位于手机存储路径中,具体位置为:Android/data/tv.danmaku.bili/download/。打开哔哩哔哩,缓存要保存的视频,在该路径下按时间顺序找到视频文件夹,其中video.m4s和audio.m4s分别包含视频和音频。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于Seaborn的相关问题,包括了数据可视化处理的散点图、折线图、条形图等等内容,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于进程池与进程锁的相关问题,包括进程池的创建模块,进程池函数等等内容,下面一起来看一下,希望对大家有帮助。

bilibili是当下最受欢迎的视频弹幕网站,如果看到感兴趣的视频,很多用户都会选择将其缓存下来。那么b站怎么缓存下载视频到本地呢?其实方法并不难,下面小编就给大家分享一下电脑版b站缓存视频到本地的方法。 b站怎么缓存下载视频到本地在浏览器地址栏中输入ibilibili,然后按回车。会弹出一个下载页面,您可以将鼠标悬停在视频上,选择“另存为”,即可将视频下载到本地。 2、在bilibili后面加上jj变成bilibilijj也是一样,也有下载的页面。 3、看简介和评论,有些UP主或者其

VS Code的确是一款非常热门、有强大用户基础的一款开发工具。本文给大家介绍一下10款高效、好用的插件,能够让原本单薄的VS Code如虎添翼,开发效率顿时提升到一个新的阶段。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于数据类型之字符串、数字的相关问题,下面一起来看一下,希望对大家有帮助。

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于numpy模块的相关问题,Numpy是Numerical Python extensions的缩写,字面意思是Python数值计算扩展,下面一起来看一下,希望对大家有帮助。


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
