开启辅助访问 切换到宽版

精易论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

用微信号发送消息登录论坛

新人指南 邀请好友注册 - 我关注人的新帖 教你赚取精币 - 每日签到


求职/招聘- 论坛接单- 开发者大厅

论坛版规 总版规 - 建议/投诉 - 应聘版主 - 精华帖总集 积分说明 - 禁言标准 - 有奖举报

查看: 596|回复: 2
收起左侧

[已解决] wss信息提取显示求专们搞这个的大佬看看

 关闭 [复制链接]
结帖率:80% (20/25)
发表于 2024-12-9 13:32:09 | 显示全部楼层 |阅读模式   湖北省潜江市
66精币
p夕夕接口抓到wss数据了 格式是hex的 我想转换成文本,试过论坛pd软件不成功,不知道是不是有对应的js文件解密这个,本人不是很会这个,求大佬解答


微1.png 2.png


截图的部分数据.txt (7.97 KB, 下载次数: 5)

最佳答案

查看完整内容

细节没搞,大概讲讲: 以你的第一个返回为例: [mw_shl_code=javascript,true]00 0A 00 66 00 00 00 00 00 00 00 00 00 00 05 0E 70 01 68 8A D2 A4 96 01 60 FD E9 A7 D4 D0 85 A0 AB 67 0A 0B 74 69 74 61 6E 2E 6D 4C 69 74 65 10 01 30 01 52 E8 09 1F 8B 08 00 00 00 00 00 00 00 C5 56 4B 6F DB 46 10 46 81 1E DA 02 BD E4 D0 43 4E 2D 53 18 3D 48 D6 BE 48 EE 0A 20 02 4B 96 D1 3C 11 DB 4A D3 36 36 16 24 77 29 D1 E2 ...

回答提醒:如果本帖被关闭无法回复,您有更好的答案帮助楼主解决,请发表至 源码区 可获得加分喔。
友情提醒:本版被采纳的主题可在 申请荣誉值 页面申请荣誉值,获得 1点 荣誉值,荣誉值可兑换荣誉会员、终身vip用户组。
快捷通道:申请荣誉值无答案申请取消悬赏投诉有答案未采纳为最佳

结帖率:100% (56/56)

签到天数: 12 天

发表于 2024-12-9 13:32:10 | 显示全部楼层   浙江省杭州市
细节没搞,大概讲讲:

以你的第一个返回为例:
[JavaScript] 纯文本查看 复制代码
00 0A 00 66 00 00 00 00 00 00 00 00 00 00 05 0E 70 01 68 8A D2 A4 96 01 60 FD E9 A7 D4 D0 85 A0 AB 67 0A 0B 74 69 74 61 6E 2E 6D 4C 69 74 65 10 01 30 01 52 E8 09 1F 8B 08 00 00 00 00 00 00 00 C5 56 4B 6F DB 46 10 46 81 1E DA 02 BD E4 D0 43 4E 2D 53 18 3D 48 D6 BE 48 EE 0A 20 02 4B 96 D1 3C 11 DB 4A D3 36 36 16 24 77 29 D1 E2 2B 7C 38 B6 02 1F FA AB FA BB FA 0F 3A 4B 3D 22 47 72 50 34 29 2A CB 94 34 3B DC F9 66 E6 DB 6F F8 D5 1F 7F 7D 79 EF 1E 41 84 61 82 84 14 18 53 64 4B 84 EF FF A8 38 C6 61 14 84 5D 21 98 E8 32 ED 47 5D E1 BA A2 4B 89 A0 51 E0 3A 28 A4 91 F5 E7 77 AF DF 59 A9 AE 2A 7F A2 65 7D 5D 68 AB 6F 25 F1 A5 96 7E A3 62 9D 85 5A 66 4D 6A 75 16 B6 B4 9A C8 58 81 07 47 9C 12 EE 50 C6 31 25 0E 22 88 82 4B D1 54 53 99 C6 49 52 59 7D EC 52 EA 12 82 1D 9B 31 D6 59 07 50 7E ED 5B FD 77 3B 22 F4 6D 9B 72 B7 B3 BD 22 95 AE 42 08 69 EF DB EC AC 61 23 E4 7E 7F D6 70 31 24 67 8D EB A2 81 75 D3 B1 C2 A9 0E 67 5A C9 6A 9A BF 5D E0 DB 2E 07 F8 7D 42 9E 9C 31 2C 18 B2 09 FA 2C 79 F2 FF 21 CF 70 EA D7 32 CB EB 38 D4 77 A7 69 43 33 39 13 0E FF 17 69 6E 04 90 49 5C D5 56 FF F5 8E 95 25 A4 49 99 37 85 CC 0B 9D AD C0 6C 3A 15 65 9C 97 71 7D 0D D5 42 68 C7 FA 2A EE 24 CF 55 25 E3 2C CA DF FF CA FC D4 04 38 6B 28 C2 E8 AC 71 5C 31 5C 5D D9 08 53 73 3D 18 B4 AB F8 E9 63 C2 20 7C 3D 6D D2 40 36 65 02 B7 4D EB BA A8 FA BD 5E 9C 4E F6 0B A5 8A 38 DC 0F F3 B4 37 31 9D AA BB 71 0A 59 F7 4C D1 BB 98 74 11 EF 61 11 B8 36 09 42 11 31 1C 06 D8 C5 3A E0 C2 51 11 15 84 99 6A ED 5F 14 7A F2 B0 BD ED 59 3E 29 49 AF 8D 95 F9 71 02 BB A0 2B F8 FF 01 00 28 75 11 C8 C2 2F FD D4 A4 11 16 D5 69 3C C9 00 CC 70 28 57 ED 15 40 40 82 25 B1 6D D3 0A 61 4B 41 5D 07 6C 70 8A 35 7C 32 DB 56 A1 40 81 D2 98 21 86 91 52 B0 6D D8 98 E6 DA 0E 45 CC 46 14 38 E7 37 F5 F4 B0 C9 1F 81 15 4E 5A 5B 2E F3 DD E1 04 31 40 4C 84 70 16 C5 7E E6 27 89 59 11 88 43 00 C7 01 73 D1 12 65 0B 07 84 99 57 CB 3D B3 26 49 4C D4 AA CE D3 17 26 1B 5D EB 12 C8 63 19 BE 3E 52 DE 36 59 F7 4C B0 17 79 9C D5 A7 A1 CE B4 67 54 64 41 10 8E 6E 3A AB F6 EE 80 98 CD 96 FD 6A 5D F6 A7 75 9A 3C 5C 79 7B 9B CE 7B 32 F7 67 B2 0C EB DC FB ED D5 93 C7 D5 F8 E5 D5 CB 28 8B 46 BF 9C 4E 2F C9 5C B8 27 AE 00 97 50 66 32 9D D5 2D 39 3D BC A7 9A 1C DE 8B 5F B4 5D DE B6 40 3D BC AD 6A 2C A2 B5 74 0D FC 3A 9C CA 2A F3 5E 3E 97 C3 D1 C9 F8 E0 D1 73 39 38 18 0F 7F 96 A7 CF 17 6E A9 2E 81 D3 19 44 F5 27 50 9B C5 AE FE 75 AA C1 14 C4 73 4F 29 B3 D1 06 3A 95 A7 7E 9C 79 9C 6C 22 2E 65 9D CF 74 E6 15 F5 45 5A 45 6F 66 64 AE DF D8 80 73 D2 CC F2 79 94 35 97 09 65 33 A2 12 EA 46 F5 75 70 75 E1 33 46 8A 2C 67 C5 DB A0 6A E6 AC F4 69 38 8F FD 37 81 ED CE FD C6 B9 AC 03 15 16 93 BD C2 9C EE A8 CC 53 CF 76 6F 47 AB 42 6F 59 8C 35 3A 20 AC AC 80 B1 DE A7 F0 B5 DD A9 AD DC 52 DD 76 D1 65 1A 2B 58 9F 35 B2 D2 89 86 9E 96 D0 AC A5 92 94 4A 97 ED 5D AE 00 8D C2 46 AA 85 40 14 23 2E D6 A4 42 2B 4A B5 DE 56 9F 62 20 59 E0 87 33 B3 47 A6 64 98 27 39 98 AD 07 47 CB 17 DC 19 34 D7 32 A8 33 59 EB AB BA 95 15 9B 0E 40 3E 1C 72 34 34 DF 6D 73 02 94 AE E1 44 CB A5 2A B6 BA 67 DC 57 5A 97 E5 65 EA 27 E0 17 E5 D0 DA F7 41 46 07 18 F4 7A D3 4C EF B0 93 05 28 97 22 33 7F D6 50 20 D5 91 B9 1E F2 56 F5 37 63 56 85 0F 3A FF A1 F5 0E 24 D8 86 3F 67 1B C9 0E 3B B9 65 DF 28 CA 21 86 69 75 E8 BA B7 4A 73 73 DE B1 9A 0A 1A B3 9E 07 AD 24 51 78 30 E1 82 33 4A 3B 56 16 87 B3 B5 64 6F 24 04 6A 75 09 2A 5F 6E 68 F2 C2 40 37 75 D9 EF 1D A3 DF 50 90 24 E8 E9 B5 B0 F5 2B FB 78 8C 4F 8E D5 AF C7 57 63 3A 88 FD 34 39 3C C5 6A 70 32 7A 8B 7F 9F A9 27 C7 63 24 D4 C5 01 EA 62 33 EA 10 81 41 BC 5B 9B 31 68 33 80 BF 31 F5 BB 6B 82 C1 31 05 0E 7D 74 78 E1 8F 0E AF 60 B2 28 29 28 E4 6B EB 81 E3 A0 F6 65 9D EF A6 24 E3 CB F5 CF 4E B7 A3 43 EE D2 1D 74 1B 0D 29 19 DC 6A F2 11 42 E6 3A A4 8B 81 FA DF 90 6E 7D F2 B6 E8 BF B4 AF F1 38 AE 63 9B 71 CE 9D BB 88 C6 08 71 B9 C3 39 70 11 A3 0F B8 B6 9D 0D F4 FB FC 1F 3F 65 9D FF F4 05 B9 FF CD D7 15 30 B2 1E C7 A9 BE F7 ED C6 33 92 83 FE 06 54 C2 59 71 96 0B 00 00


这是一个wss buffer数据,如何解码,以下为nodejs代码:
[JavaScript] 纯文本查看 复制代码
let bytes=Buffer.from('000A006600000000000000000000050E7001688AD2A4960160FDE9A7D4D085A0AB670A0B746974616E2E6D4C6974651001300152E8091F8B0800000000000000C5564B6FDB461046811EDA02BDE4D0434E2D53183D48D6BE48EE0A20024B96D13C11DB4AD3363616247729D1E22B7C38B6021FFAABFABBFA0F3A4B3D2247725034292ACB94343BDCF966E6DB6FF8D51F7F7D79EF1E4184618284141853644B84EFFFA838C66114845D2198E832ED475DE1BAA24B89A051E03A28A491F5E777AFDF59A9AE2A7FA2657D5D68AB6F25F1A5967EA3629D855A664D6A7516B6B49AC8588107479C12EE50C631250E2288824BD1545399C64952597DEC52EA12821D9B31D65907507EED5BFD773B22F46D9B72B7B3BD2295AE420869EFDBECAC6123E47E7FD6703124678DEBA28175D3B1C2A90E675AC96A9ABF5DE0DB2E07F87D429E9C312C18B209FA2C79F2FF21CF70EAD732CBEB38D477A769433339130EFF17696E0490495CD556FFF58E9525A449993785CC0B9DADC06C3A15659C97717D0DD54268C7FA2AEE24CF5525E32CCADFFFCAFCD404386B28C2E8AC715C315C5DD90853733D18B4ABF8E963C2207C3D6DD240366502B74DEBBAA8FABD5E9C4EF60BA58A38DC0FF3B437319DAABB710A59F74CD1BB987411EF6111B836094211311C06D8C53AE0C251111584996AED5F147AF2B0BDED593E2949AF8D95F97102BBA02BF8FF0100287511C8C22FFDD4A41116D5693CC900CC702857ED1540408225B16DD30A614B415D076C708A357C32DB56A14081D29821869152B06DD898E6DA0E45CC461438E737F5F4B0C91F81154E5A5B2EF3DDE10431404C847016C57EE627895911884300C70173D112650B07849957CB3DB326494CD4AACED317261B5DEB12C86319BE3E52DE3659F74CB017799CD5A7A1CEB467546441108E6E3AABF6EE8098CD96FD6A5DF6A7759A3C5C797B9BCE7B32F767B20CEBDCFBEDD593C7D5F8E5D5CB288B46BF9C4E2FC95CB827AE00975066329DD52D393DBCA79A1CDE8B5FB45DDEB6403DBCAD6A2CA2B5740DFC3A9CCA2AF35E3E97C3D1C9F8E0D1733938180F7F96A7CF176EA92E81D31944F527509BC5AEFE75AAC114C4734F29B3D1063A95A77E9C799C6C222E659DCF74E615F5455A456F6664AEDFD88073D2CCF279943597096533A212EA46F5757075E133468A2C67C5DBA06AE6ACF469388FFD3781EDCEFDC6B9AC03151693BDC29CEEA8CC53CF766F47AB426F598C353A20ACAC80B1DEA7F0B5DDA9ADDC52DD76D1651A2B589F35B2D289869E96D0ACA592944A97ED5DAE008DC246AA854014232ED6A4422B4AB5DE569F622059E08733B347A66498273998AD0747CB17DC1934D732A83359EBABBA95159B0E403E1C723434DF6D730294AEE144CBA52AB6BA67DC575A97E565EA27E017E5D0DAF741460718F47AD34CEFB09305289722337FD65020D591B91EF256F5376356850F3AFFA1F50E24D8863F671BC90E3BB965DF28CA21866975E8BAB74A7373DEB19A0A1AB39E07AD24517830E182334A3B561687B3B5646F24046A75092A5F6E68F2C2403775D9EF1DA3DF509024E8E9B5B0F52BFB788C4F8ED5AFC757633A88FD34393CC56A70327A8B7F9FA927C76324D4C501EA6233EA108141BC5B9B31683380BF31F5BB6B82C131050E7D7478E18F0EAF60B2282928E46BEB81E3A0F6659DEFA624E3CBF5CF4EB7A343EED21D741B0D2919DC6AF21142E63AA48B81FADF906E7DF2B6E8BFB4AFF138AE639B71CE9DBB88C60871B9C3397011A30FB8B69D0DF4FBFC1F3F659DFFF405B9FFCDD71530B21EC7A9BEF7EDC6339283FE0654C25971960B0000','hex');

let magic=bytes.readInt16BE(0);
let cmd=bytes.readInt16BE(2);
let ctx=bytes.readInt32BE(4);
let reserve=bytes.readInt32BE(8);
let bodyLen=bytes.readInt32BE(12);
let data=bytes.subarray(16,16+bodyLen);

console.log(data.toString('hex'));



输出为:
[JavaScript] 纯文本查看 复制代码
7001688ad2a4960160fde9a7d4d085a0ab670a0b746974616e2e6d4c6974651001300152e8091f8b0800000000000000c5564b6fdb461046811eda02bde4d0434e2d53183d48d6be48ee0a20024b96d13c11db4ad3363616247729d1e22b7c38b6021ffaabfabbfa0f3a4b3d2247725034292acb94343bdcf966e6db6ff8d51f7f7d79ef1e4184618284141853644b84efffa838c66114845d2198e832ed475de1baa24b89a051e03a28a491f5e777afdf59a9ae2a7fa2657d5d68ab6f25f1a5967ea3629d855a664d6a7516b6b49ac8588107479c12ee50c631250e2288824bd1545399c64952597dec52ea12821d9b31d65907507eed5bfd773b22f46d9b72b7b3bd2295ae420869efdbecac6123e47e7fd6703124678deba28175d3b1c2a90e675ac96a9abf5de0db2e07f87d429e9c312c18b209fa2c79f2ff21cf70ead732cbeb38d477a769433339130eff17696e0490495cd556fff58e9525a449993785cc0b9dadc06c3a15659c97717d0dd54268c7fa2aee24cf5525e32ccadfffcafcd404386b28c2e8ac715c315c5dd90853733d18b4abf8e963c2207c3d6dd240366502b74debbaa8fabd5e9c4ef60ba58a38dc0ff3b437319daabb710a59f74cd1bb987411ef6111b836094211311c06d8c53ae0c251111584996aed5f147af2b0bded593e2949af8d95f97102bba02bf8ff0100287511c8c22ffdd4a41116d5693cc900cc702857ed1540408225b16dd30a614b415d076c708a357c32db56a14081d29821869152b06dd898e6da0e45cc461438e737f5f4b0c91f81154e5a5b2ef3dde10431404c847016c57ee627895911884300c70173d112650b07849957cb3db326494cd4aaced317261b5deb12c86319be3e52de3659f74cb017799cd5a7a1ceb467546441108e6e3aabf6ee8098cd96fd6a5df6a7759a3c5c797b9bce7b32f767b20cebdcfbedd593c7d5f8e5d5cb288b46bf9c4e2fc95cb827ae00975066329dd52d393dbca79a1cde8b5fb45ddeb6403dbcad6a2ca2b5740dfc3a9cca2af35e3e97c3d1c9f8e0d1733938180f7f96a7cf176ea92e81d31944f527509bc5aefe75aac114c4734f29b3d1063a95a77e9c799c6c222e659dcf74e615f5455a456f6664aedfd88073d2ccf279943597096533a212ea46f5757075e133468a2c67c5dba06ae6acf469388ffd3781edcefdc6b9ac03151693bdc29ceea8cc53cf766f47ab426f598c353a20acac80b1dea7f0b5dda9addc52dd76d1651a2b589f35b2d289869e96d0aca592944a97ed5dae008dc246aa854014232ed6a4422b4ab5de569f622059e08733b347a66498273998ad0747cb17dc1934d732a83359ebabba95159b0e403e1c723434df6d730294aee144cba52ab6ba67dc575a97e565ea27e017e5d0daf741460718f47ad34cefb09305289722337fd65020d591b91ef256f5376356850f3affa1f50e24d8863f671bc90e3bb965df28ca21866975e8bab74a7373deb19a0a1ab39e07ad24517830e182334a3b561687b3b5646f24046a75092a5f6e68f2c2403775d9ef1da3df509024e8e9b5b0f52bfb788c4f8ed5afc757633a88fd34393cc56a70327a8b7f9fa927c76324d4c501ea6233ea108141bc5b9b31683380bf31f5bb6b82c131050e7d7478e18f0eaf60b2282928e46beb81e3a0f6659defa624e3cbf5cf4eb7a343eed21d741b0d2919dc6af21142e63aa48b81fadf906e7df2b6e8bfb4aff138ae639b71ce9dbb88c60871b9c3397011a30fb8b69d0df4fbfc1f3f659dfff405b9ffcdd71530b21ec7a9bef7edc6339283fe0654c25971960b0000


以上是protobuf数据。

然后去这个网站https://www.protobufpal.com/解码看看效果
[JavaScript] 纯文本查看 复制代码
syntax = "proto3";

message Command {
        string command = 1;
        uint32 protocol = 2;
        uint32 errorCode = 3;
        uint32 bizCode = 4;
        string bizErrorMsg = 5;
        uint32 compress = 6;
        bytes extension = 9;
        bytes body = 10;
        uint64 downstreamSeq = 11;
        uint64 conId = 12;
        uint64 ctxId = 13;
}

message Body {
        uint32 bizType = 1;
        string groupId = 2;
        string msgId = 3;
        string payload = 4;
        bool needAck = 5;
}


VX截图_20241209212939.png
可以看到,解码出了数据。
其中的compress表示压缩了,gzip
那么我们解码它
[JavaScript] 纯文本查看 复制代码
const zlib = require('zlib');
let body = [31,139,8,0,0,0,0,0,0,0,197,86,75,111,219,70,16,70,129,30,218,2,189,228,208,67,78,45,83,24,61,72,214,190,72,238,10,32,2,75,150,209,60,17,219,74,211,54,54,22,36,119,41,209,226,43,124,56,182,2,31,250,171,250,187,250,15,58,75,61,34,71,114,80,52,41,42,203,148,52,59,220,249,102,230,219,111,248,213,31,127,125,121,239,30,65,132,97,130,132,20,24,83,100,75,132,239,255,168,56,198,97,20,132,93,33,152,232,50,237,71,93,225,186,162,75,137,160,81,224,58,40,164,145,245,231,119,175,223,89,169,174,42,127,162,101,125,93,104,171,111,37,241,165,150,126,163,98,157,133,90,102,77,106,117,22,182,180,154,200,88,129,7,71,156,18,238,80,198,49,37,14,34,136,130,75,209,84,83,153,198,73,82,89,125,236,82,234,18,130,29,155,49,214,89,7,80,126,237,91,253,119,59,34,244,109,155,114,183,179,189,34,149,174,66,8,105,239,219,236,172,97,35,228,126,127,214,112,49,36,103,141,235,162,129,117,211,177,194,169,14,103,90,201,106,154,191,93,224,219,46,7,248,125,66,158,156,49,44,24,178,9,250,44,121,242,255,33,207,112,234,215,50,203,235,56,212,119,167,105,67,51,57,19,14,255,23,105,110,4,144,73,92,213,86,255,245,142,149,37,164,73,153,55,133,204,11,157,173,192,108,58,21,101,156,151,113,125,13,213,66,104,199,250,42,238,36,207,85,37,227,44,202,223,255,202,252,212,4,56,107,40,194,232,172,113,92,49,92,93,217,8,83,115,61,24,180,171,248,233,99,194,32,124,61,109,210,64,54,101,2,183,77,235,186,168,250,189,94,156,78,246,11,165,138,56,220,15,243,180,55,49,157,170,187,113,10,89,247,76,209,187,152,116,17,239,97,17,184,54,9,66,17,49,28,6,216,197,58,224,194,81,17,21,132,153,106,237,95,20,122,242,176,189,237,89,62,41,73,175,141,149,249,113,2,187,160,43,248,255,1,0,40,117,17,200,194,47,253,212,164,17,22,213,105,60,201,0,204,112,40,87,237,21,64,64,130,37,177,109,211,10,97,75,65,93,7,108,112,138,53,124,50,219,86,161,64,129,210,152,33,134,145,82,176,109,216,152,230,218,14,69,204,70,20,56,231,55,245,244,176,201,31,129,21,78,90,91,46,243,221,225,4,49,64,76,132,112,22,197,126,230,39,137,89,17,136,67,0,199,1,115,209,18,101,11,7,132,153,87,203,61,179,38,73,76,212,170,206,211,23,38,27,93,235,18,200,99,25,190,62,82,222,54,89,247,76,176,23,121,156,213,167,161,206,180,103,84,100,65,16,142,110,58,171,246,238,128,152,205,150,253,106,93,246,167,117,154,60,92,121,123,155,206,123,50,247,103,178,12,235,220,251,237,213,147,199,213,248,229,213,203,40,139,70,191,156,78,47,201,92,184,39,174,0,151,80,102,50,157,213,45,57,61,188,167,154,28,222,139,95,180,93,222,182,64,61,188,173,106,44,162,181,116,13,252,58,156,202,42,243,94,62,151,195,209,201,248,224,209,115,57,56,24,15,127,150,167,207,23,110,169,46,129,211,25,68,245,39,80,155,197,174,254,117,170,193,20,196,115,79,41,179,209,6,58,149,167,126,156,121,156,108,34,46,101,157,207,116,230,21,245,69,90,69,111,102,100,174,223,216,128,115,210,204,242,121,148,53,151,9,101,51,162,18,234,70,245,117,112,117,225,51,70,138,44,103,197,219,160,106,230,172,244,105,56,143,253,55,129,237,206,253,198,185,172,3,21,22,147,189,194,156,238,168,204,83,207,118,111,71,171,66,111,89,140,53,58,32,172,172,128,177,222,167,240,181,221,169,173,220,82,221,118,209,101,26,43,88,159,53,178,210,137,134,158,150,208,172,165,146,148,74,151,237,93,174,0,141,194,70,170,133,64,20,35,46,214,164,66,43,74,181,222,86,159,98,32,89,224,135,51,179,71,166,100,152,39,57,152,173,7,71,203,23,220,25,52,215,50,168,51,89,235,171,186,149,21,155,14,64,62,28,114,52,52,223,109,115,2,148,174,225,68,203,165,42,182,186,103,220,87,90,151,229,101,234,39,224,23,229,208,218,247,65,70,7,24,244,122,211,76,239,176,147,5,40,151,34,51,127,214,80,32,213,145,185,30,242,86,245,55,99,86,133,15,58,255,161,245,14,36,216,134,63,103,27,201,14,59,185,101,223,40,202,33,134,105,117,232,186,183,74,115,115,222,177,154,10,26,179,158,7,173,36,81,120,48,225,130,51,74,59,86,22,135,179,181,100,111,36,4,106,117,9,42,95,110,104,242,194,64,55,117,217,239,29,163,223,80,144,36,232,233,181,176,245,43,251,120,140,79,142,213,175,199,87,99,58,136,253,52,57,60,197,106,112,50,122,139,127,159,169,39,199,99,36,212,197,1,234,98,51,234,16,129,65,188,91,155,49,104,51,128,191,49,245,187,107,130,193,49,5,14,125,116,120,225,143,14,175,96,178,40,41,40,228,107,235,129,227,160,246,101,157,239,166,36,227,203,245,207,78,183,163,67,238,210,29,116,27,13,41,25,220,106,242,17,66,230,58,164,139,129,250,223,144,110,125,242,182,232,191,180,175,241,56,174,99,155,113,206,157,187,136,198,8,113,185,195,57,112,17,163,15,184,182,157,13,244,251,252,31,63,101,157,255,244,5,185,255,205,215,21,48,178,30,199,169,190,247,237,198,51,146,131,254,6,84,194,89,113,150,11,0,0]


let uint8Array = new Uint8Array(body)

let buffer = Buffer.from(uint8Array);
let decompressed = zlib.gunzipSync(buffer);

let decoder = new TextDecoder();
let string = decoder.decode(decompressed);
console.log(string);


输出了:
VX截图_20241209213513.png

我们复制出来进行Unicode解码,得到:
[JavaScript] 纯文本查看 复制代码
[{"message_type":"live_audience_num","live_msg_id":"808328634813260203","push_mills":1733722165444,"message_data":{"live_audience_num":55387,"live_audience_num_desc":"5.54万 观看"},"checked_show_id":"20241209_911305_01"},{"message_type":"live_audience_num","live_msg_id":"808328638441940520","push_mills":1733722165444,"message_data":{"live_audience_num":55388,"live_audience_num_desc":"5.54万 观看"},"checked_show_id":"20241209_911305_01"},{"message_type":"live_chat_notice","live_msg_id":"808328638526084968","push_mills":1733722165444,"message_data":{"live_chat_notice_list":[{"live_chat_notice_type":"group_open","live_chat_notice_priority":500,"live_chat_notice_data":{"goods_info":{"goods_name":"【果果专享】lj24","thumb_url":"https://img.pddpic.com/gaudit-image/2024-12-08/19b752bc9f41cb171eb896df39242165.jpeg?imagemogr2/thumbnail/200x200!","ddjb_param":{"cpssign":"cc_241209_9944121_255173395_9376441760e644455dc90bde140410dd","cuid":563045038,"authduoid":7,"goodsid":682043922996,"livemallid":908760666,"pid":"9944121_255173395","zsduoid":null,"customparameters":"showid=20241209_911305_01&livepointscene=3","type":80},"goods_id":682043922996,"link_url":"goods.html?goods_id=682043922996&_oak_rcto=ywkjstuxufnfevshv2z97r79&_oc_n_mkt_type=1&duoduo_type=3&_oc_duoduo_type=3&_oc_pid=9944121_255173395&_oak_live_batch_sn=un_certain_batch_sn&_oak_merchant_tag=20&_oc_payment_biz=ddlive&_oc_n_mkt_domain=82&_oc_n_mkt_tr_token=ptjmsfqk2zeq5typgukozfnuvl34k2dl37ftybxja442pno4pwbsuz4ra3cziaqb57zau6vtbdcpg&page_from=57&_oc_n_mkt_tr_sc=duoduo_live&_oc_cps_sign=cc_241209_9944121_255173395_9376441760e644455dc90bde140410dd&_oc_live_show_id=20241209_911305_01&hide_sku_selector=1&group_order_id=2795441052099031089","type":0,"goods_order":31},"background_color":"#ffffffff","buy_btn_text":"去拼单","detail_message":[{"text_type":"normal","font_color":"#fea101","font_color3":"#fea101","font_color2":"#ff7300","text":"神秘"},{"text_type":"space"},{"text_type":"normal","font_color":"#151516","font_color3":"#151516","font_color2":"#151516","text":"发起拼单"}],"user_list":[{"uid":3811898433,"nickname":"神秘","avatar":"https://avatar3.pddpic.com/a/q0y0bll0ly95ew5qt1rqdxqxt3biamlds1dbrew1zkdkqt09dja0-1638502388?imagemogr2/thumbnail/100x"}]}},{"live_chat_notice_type":"enter","live_chat_notice_priority":100,"live_chat_notice_data":{"bg_colors":["#66000000"],"background_color":"#48000000","detail_message":[{"text_type":"normal","font_color":"#fea101","font_color3":"#ffd873","font_color2":"#fec32b","text":"开心果"},{"text_type":"space"},{"text_type":"normal","font_color":"#151516","font_color3":"#ffffff","font_color2":"#ffffff","text":"来了"}],"user_list":[{"uid":4227868835510,"nickname":"开心果"}]}}]},"checked_show_id":"20241209_911305_01"}]



参考:
https://bbs.125.la/thread-14815051-1-1.html

评分

参与人数 1荣誉 +1 收起 理由
笨潴 + 1 热心帮助他人,荣誉+1,希望继续努力(*^__^*) 嘻嘻!

查看全部评分

回复

使用道具 举报

结帖率:100% (3/3)

签到天数: 15 天

发表于 2024-12-9 23:22:16 | 显示全部楼层   陕西省延安市
做过,测试没问题,看我签名,加好友备注   '精易论坛'
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则 致发广告者

发布主题 收藏帖子 返回列表

sitemap| 易语言源码| 易语言教程| 易语言论坛| 易语言模块| 手机版| 广告投放| 精易论坛
拒绝任何人以任何形式在本论坛发表与中华人民共和国法律相抵触的言论,本站内容均为会员发表,并不代表精易立场!
论坛帖子内容仅用于技术交流学习和研究的目的,严禁用于非法目的,否则造成一切后果自负!如帖子内容侵害到你的权益,请联系我们!
防范网络诈骗,远离网络犯罪 违法和不良信息举报电话0663-3422125,QQ: 793400750,邮箱:wp@125.la
网站简介:精易论坛成立于2009年,是一个程序设计学习交流技术论坛,隶属于揭阳市揭东区精易科技有限公司所有。
Powered by Discuz! X3.4 揭阳市揭东区精易科技有限公司 ( 粤ICP备12094385号-1) 粤公网安备 44522102000125 增值电信业务经营许可证 粤B2-20192173

快速回复 返回顶部 返回列表