V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
BadReese
V2EX  ›  程序员

请问这是啥编码?

  •  
  •   BadReese · 2017-10-19 15:39:54 +08:00 · 4718 次点击
    这是一个创建于 2352 天前的主题,其中的信息可能已经有所发展或是发生改变。
    \x82R\xee\xcf3\xac#\xd6\x88x\xba\x92\x8a\x1e\xe9\xb0\x03\xaf;\x16\x9aZ\xacf\x16\x8c\x1f\xb6\xf5j\x0f\x9a\xc6|E%\x05\x80\xa6\xaf*\x81)\xd9YU\xa7\xfa\xe8\xfb\xf4\xae\x87~\x89\xae^\xb8
    \xfd\x82y\x88\xeb\x951\xff
    a~\x1d%\x84\xdf\x99\xa7\xd0\x06\xc3\x1e\xf99\xa5\xf4\xa2\xe12\x00\x99,T$\x97\xe98\xd9]o\xc2\xcdz|\xae\xbd@;2r\xdc{z\x96)\xban\x9a\x9d\xa2\xf7\xd8\xda\xca\x8e\xc6+\xe3\xd3\xcd\x9db\x
    cem\x0e\xb7W\x1d\x15\x9cq\xdb\xfa\x9d5*\x0f\x0b\xad6\xf6^]\xbfw\x9f\xaf\x03T\x10YdM\x0357F\x84\xeb\xb8\x80\x9eHv`\x8b\xe6b\x0e\xf3\x1d\xc3U\x12\x97\xe6\x0b\xdcn\x07|~\x83\x8c\x8b
    17 条回复    2017-10-20 19:38:24 +08:00
    yidinghe
        1
    yidinghe  
       2017-10-19 15:57:32 +08:00
    看上去是未知编码,又插入随机符号了的,不懂规则很难解析。
    Famio
        2
    Famio  
       2017-10-19 16:26:21 +08:00
    ASCII 编码,如果是 py,需要先转换成 Unicode,然后用 print 输出就 OK 了
    zgx030030
        3
    zgx030030  
       2017-10-19 16:31:33 +08:00
    我尝试 numpy.fromstring(str, dtype=numpy.uint8)创建矩阵,能通过,不知道是否是巧合。。。
    BadReese
        4
    BadReese  
    OP
       2017-10-19 16:38:03 +08:00
    @zgx030030 通过得到啥结果..
    BadReese
        5
    BadReese  
    OP
       2017-10-19 16:38:24 +08:00
    @Famio 是 py 的呢 我试试
    zgx030030
        6
    zgx030030  
       2017-10-19 16:41:22 +08:00
    @BadReese
    [130 82 238 207 51 172 35 214 136 120 186 146 138 30 233 176 3 175
    59 22 154 90 172 102 22 140 31 182 245 106 15 154 198 124 69 37
    5 128 166 175 42 129 41 217 89 85 167 250 232 251 244 174 135 126
    137 174 94 184 253 130 121 136 235 149 49 255 97 126 29 37 132 223
    153 167 208 6 195 30 249 57 165 244 162 225 50 0 153 44 84 36
    151 233 56 217 93 111 194 205 122 124 174 189 64 59 50 114 220 123
    122 150 41 186 110 154 157 162 247 216 218 202 142 198 43 227 211 205
    157 98 206 109 14 183 87 29 21 156 113 219 250 157 53 42 15 11
    173 54 246 94 93 191 119 159 175 3 84 16 89 100 77 3 53 55
    70 132 235 184 128 158 72 118 96 139 230 98 14 243 29 195 85 18
    151 230 11 220 110 7 124 126 131 140 139]
    BadReese
        7
    BadReese  
    OP
       2017-10-19 16:49:03 +08:00
    @zgx030030 恩。。智商不够看不懂 哈哈
    BadReese
        8
    BadReese  
    OP
       2017-10-19 16:54:56 +08:00
    @Famio 转 unicode 打印出来的也不是可读的内容。。
    qiuyk
        9
    qiuyk  
       2017-10-19 16:57:29 +08:00
    @BadReese 应该是 buffer 吧 最大 255
    BadReese
        10
    BadReese  
    OP
       2017-10-19 17:21:25 +08:00 via iPhone
    @qiuyk 那请问该怎么转换呢?
    qiuyk
        11
    qiuyk  
       2017-10-19 18:47:43 +08:00
    @BadReese 试了一下 utf-8、base64、hex、ascii,都是乱七八糟的东西,你这是哪来的
    BadReese
        12
    BadReese  
    OP
       2017-10-19 19:12:10 +08:00
    @qiuyk 抓了一个 APP 的包 哈哈 我转出来也是乱的
    qiuyk
        13
    qiuyk  
       2017-10-19 22:06:52 +08:00
    @BadReese 估计前面有一堆握手协商相关的东西吧 然后后面可能做了混淆或者加密吧 不清楚
    BadReese
        14
    BadReese  
    OP
       2017-10-19 23:20:04 +08:00
    @qiuyk 恩 应该是加密了
    opengps
        15
    opengps  
       2017-10-20 08:48:50 +08:00
    \x 很明显是作为标识符,你尝试下先把这个替换成 0x00 等标记符试试,其他的,尝试下能否转换成 utf-8
    vZexc0m
        16
    vZexc0m  
       2017-10-20 17:58:10 +08:00
    .decode()
    iceheart
        17
    iceheart  
       2017-10-20 19:38:24 +08:00 via Android
    私有协议呗
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1704 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 396ms · UTC 16:42 · PVG 00:42 · LAX 09:42 · JFK 12:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.