search
HomeBackend DevelopmentPython TutorialWhat happens when captured packet data is garbled?
What happens when captured packet data is garbled?Jul 27, 2017 pm 04:16 PM
bilibilipythonGarbled characters

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!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
bilibili缓存的视频在手机哪里bilibili缓存的视频在手机哪里Mar 21, 2024 pm 02:28 PM

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

详细讲解Python之Seaborn(数据可视化)详细讲解Python之Seaborn(数据可视化)Apr 21, 2022 pm 06:08 PM

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

详细了解Python进程池与进程锁详细了解Python进程池与进程锁May 10, 2022 pm 06:11 PM

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

归纳总结Python标准库归纳总结Python标准库May 03, 2022 am 09:00 AM

本篇文章给大家带来了关于Python的相关知识,其中主要介绍了关于标准库总结的相关问题,下面一起来看一下,希望对大家有帮助。

bilibili的视频怎么保存到本地?电脑版b站缓存视频到本地的方法bilibili的视频怎么保存到本地?电脑版b站缓存视频到本地的方法Mar 13, 2024 pm 10:25 PM

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

分享10款高效的VSCode插件,总有一款能够惊艳到你!!分享10款高效的VSCode插件,总有一款能够惊艳到你!!Mar 09, 2021 am 10:15 AM

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

Python数据类型详解之字符串、数字Python数据类型详解之字符串、数字Apr 27, 2022 pm 07:27 PM

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

详细介绍python的numpy模块详细介绍python的numpy模块May 19, 2022 am 11:43 AM

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

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft