加密字符串:
eyJpZCI6IjIwMjIwNzE0MTcyNTQ0IiwiY29tbWFuZCI6InF1ZXJ5RG9jIiwicGFyYW1zIjp7ImRldmlkIjoiOGUxMzg4Mzg0MzgzNGFmY2I5YWIwMGZhYTAzYTg1NTYiLCJkZXZ0eXBlIjoiMSIsImNpcGhlcnRleHQiOiIxMDAwMDExIDExMTAwMDEgMTAxMTAxMCAxMTAwMTAgMTEwMDEwMSAxMTAxMTAwIDExMDAxMCAxMDExMDAwIDEwMTEwMDEgMTEwMDAxIDExMDExMTEgMTEwMTAxMSAxMTAxMTAwIDExMTAwMDAgMTExMDExMSAxMTAxMTEwIDExMDExMSAxMTAwMDExIDEwMTEwMDAgMTAxMDAwMSAxMDAxMDAxIDEwMDAwMTAgMTEwMDEwIDExMDAxMDAgMTEwMDEwIDExMDAwMCAxMTAwMTAgMTEwMDEwIDExMDAwMCAxMTAxMTEgMTEwMDAxIDExMDEwMCAxMTAwMTAwIDEwMTAxMSAxMDEwMDEwIDExMTAwMSAxMDAwMTAwIDEwMTAxMDEgMTAxMDAwMCAxMDAxMDAxIDEwMTAwMTEgMTAwMDAxMCAxMDEwMTAxIDExMDAxMTAgMTAxMTAwMSAxMTEwMDAgMTAxMTAxMCAxMDAxMDEwIDEwMTAxMDAgMTAwMTAwMCAxMTAxMTEwIDExMTEwMTAgMTExMDAwMSAxMTEwMTExIDExMTEwMSAxMTExMDEiLCJwYWdlU2l6ZSI6IjIwIiwic29ydEZpZWxkcyI6InM1MDpkZXNjIiwicGFnZU51bSI6IjIiLCJxdWVyeUNvbmRpdGlvbiI6W3sia2V5IjoiczgiLCJ2YWx1ZSI6IjA1In1dfX0%3D
不考虑其他(不熟悉安卓逆向),能从外表看出是哪种加密吗。
1
mringg 2022-07-14 17:42:08 +08:00 1
{"id":"20220714172544","command":"queryDoc","params":{"devid":"8e13883843834afcb9ab00faa03a8556","devtype":"1","ciphertext":"1000011 1110001 1011010 110010 1100101 1101100 110010 1011000 1011001 110001 1101111 1101011 1101100 1110000 1110111 1101110 110111 1100011 1011000 1010001 1001001 1000010 110010 1100100 110010 110000 110010 110010 110000 110111 110001 110100 1100100 101011 1010010 111001 1000100 1010101 1010000 1001001 1010011 1000010 1010101 1100110 1011001 111000 1011010 1001010 1010100 1001000 1101110 1111010 1110001 1110111 111101 111101","pageSize":"20","sortFields":"s50:desc","pageNum":"2","queryCondition":[{"key":"s8","value":"05"}]}}
|
3
fx0719 2022-07-14 17:44:56 +08:00 1
ey 开头 base64 。可以看看这 https://mp.weixin.qq.com/s/4QTee0M9ukN6olgoR_LMug
|
4
fzdwx 2022-07-14 17:45:02 +08:00
base64
|
5
misdake 2022-07-14 17:46:41 +08:00
ciphertext 搁这儿套娃呢
|
7
Eiden 2022-07-14 17:47:45 +08:00
那么问题来了 ciphertext 又是啥😇
|
10
Lihanx9 2022-07-14 17:48:25 +08:00
结尾带等号的优先猜 base64 吧, %3D 是 url 编码的等号
就是赌😂 |
11
skinny 2022-07-14 17:48:27 +08:00
啥网站的啊,真是人才,密文用二进制字符串表示……
|
12
fx0719 2022-07-14 17:48:56 +08:00
目测是判决文书网站
|
13
mringg 2022-07-14 18:01:15 +08:00
|
14
dwlovelife 2022-07-14 18:26:59 +08:00
@fx0719 咋目测出来的
|
15
getcharch 2022-07-14 19:29:34 +08:00
```
s = '1000011 1110001 1011010 110010 1100101 1101100 110010 1011000 1011001 110001 1101111 1101011 1101100 1110000 1110111 1101110 110111 1100011 1011000 1010001 1001001 1000010 110010 1100100 110010 110000 110010 110010 110000 110111 110001 110100 1100100 101011 1010010 111001 1000100 1010101 1010000 1001001 1010011 1000010 1010101 1100110 1011001 111000 1011010 1001010 1010100 1001000 1101110 1111010 1110001 1110111 111101 111101' ciphertext = "".join([ chr(eval('0b' + i)) for i in s.split(' ') ]) print(ciphertext) CqZ2el2XY1oklpwn7cXQIB2d20220714d+R9DUPISBUfY8ZJTHnzqw== ``` |
17
yuzo555 2022-07-14 20:55:41 +08:00 3
常见格式文本的 base64 开头大家还是需要记下
ey 开头是字符串 {" 开头的内容的 base64 ,解码后大概率是 JSON aHR0c 开头是 http 的 base64 ,解码后大概率是 URL 网址 PE 、PF 、PG 、PH 开头的 base64 ,解码后有可能是 xml 或者 html 文本 |
18
yuzo555 2022-07-14 20:56:35 +08:00 2
还有,数字 5 或者数字 6 开头的 base64 字符串,解码后有可能是汉字内容
|
19
yuzo555 2022-07-14 20:57:59 +08:00 2
还有就是编码串里面 M N D 重复很多的,是数字内容,也可以考虑是 base64
|
21
nyxsonsleep 2022-07-17 12:16:20 +08:00
@yuzo555
感觉不如直接复制粘贴到常见加解密网站里去。 没有 key ,aes des rsa 也解不出来啊。 网页上的东西,要么 unicode ,ascii ,UrlEncode ,base64 ,应该没别的了。 |
22
kaiger OP @mringg #1
大佬在吗,ciphertext 套娃套到这里就不会了: b"\n\xa6vz]\x97cZ$\x96\x9c'\xed\xc5\xd0 \x1d\x9d\xdbM\xb6\xd3\xbdxw\xe4}\rC\xc8H\x15\x1fc\xc6ILy\xf3\xab" |
23
kaiger OP @getcharch #15
``` ciphertext = “CqZ2el2XY1oklpwn7cXQIB2d20220714d+R9DUPISBUfY8ZJTHnzqw==” ciphertext = base64.b64decode(ciphertext) print(ciphertext) b"\n\xa6vz]\x97cZ$\x96\x9c'\xed\xc5\xd0 \x1d\x9d\xdbM\xb6\xd3\xbdxw\xe4}\rC\xc8H\x15\x1fc\xc6ILy\xf3\xab" ``` 套娃[dog],请教一下,下面怎么解 |