add frida script and key_func_trait for qq on version 9.9.17-31363 (64bit)#56
Open
heshanu3d wants to merge 1 commit intoQQBackup:masterfrom
Open
add frida script and key_func_trait for qq on version 9.9.17-31363 (64bit)#56heshanu3d wants to merge 1 commit intoQQBackup:masterfrom
heshanu3d wants to merge 1 commit intoQQBackup:masterfrom
Conversation
…4bit)
procedure:
0. find the key_function_addr
1. close qq and open qq, stop at login UI
2. python pkey_get\pcqq_get_key.py
3. pkey will show as below
logs:
14252 1
['C:\\Program Files (x86)\\Tencent\\QQNT\\QQ.exe']
QQ pid is: 14252
104493056 0
[*] wrapper.node pattern FOUND!!
[*] 41 56 56 57 53 48 83 ec 28 44 89 ce 4c 89 c7 49 89 d6 48 89 cb 48 8d 15 17 d3 65 01 b9 08 00 00
[*] [{'address': '0x7ffc75fe5c70', 'size': 32}]
[*] 0x7ffc75fe5c70
Bytecode at 0x7ffc75fe5c70:
Bytecode: 41 56 56 57 53 48 83 ec 28 44 89 ce 4c 89 c7 49
104493056 0
[*] wrapper.node pattern FOUND!!
[*] 41 56 56 57 53 48 83 ec 28 31 f6 48 85 d2 74 2d 8b 59 30 85 db 7e 26 48 89 d7 4c 8b 71 28 31 f6
[*] [{'address': '0x7ffc75fe55b0', 'size': 32}]
[*] 0x7ffc75fe55b0
Bytecode at 0x7ffc75fe55b0:
Bytecode: 41 56 56 57 53 48 83 ec 28 31 f6 48 85 d2 74 2d
hooked.
Memory at 0x1b2f1cee730 (16 bytes as chars): @y.___pkey______
Memory at 0x1b2f1cee6e0 (16 bytes as chars): @y.___pkey______
...
Memory at 0x1b314ec2050 (16 bytes as chars): @y.___pkey______
Memory at 0x1b314ec2010 (16 bytes as chars): @y.___pkey______
Member
|
感觉更优雅的方法是自动化判断qq版本,不过我得先看看怎么实现…… |
Contributor
|
可能需要每个版本都适配才行,判断版本的方法倒是简单,直接读注册表就行了 网站有个示例(不过感觉不是很好) |
|
首先获取QQ版本方法很多 |
Member
1的本质就是2,这个没有问题。
由于绿色版一类的东西,不考虑。
确实可以。另外在这个项目里用Frida的 如果方便的话,可否发个PR,实现上述内容?谢谢! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
add frida script and key_func_trait for qq on version 9.9.17-31363 (64bit)
procedure:
0. find the key_function_addr
logs:
14252 1
['C:\Program Files (x86)\Tencent\QQNT\QQ.exe']
QQ pid is: 14252
104493056 0
[] wrapper.node pattern FOUND!!
[] 41 56 56 57 53 48 83 ec 28 44 89 ce 4c 89 c7 49 89 d6 48 89 cb 48 8d 15 17 d3 65 01 b9 08 00 00
[] [{'address': '0x7ffc75fe5c70', 'size': 32}]
[] 0x7ffc75fe5c70
Bytecode at 0x7ffc75fe5c70:
Bytecode: 41 56 56 57 53 48 83 ec 28 44 89 ce 4c 89 c7 49 104493056 0
[] wrapper.node pattern FOUND!!
[] 41 56 56 57 53 48 83 ec 28 31 f6 48 85 d2 74 2d 8b 59 30 85 db 7e 26 48 89 d7 4c 8b 71 28 31 f6
[] [{'address': '0x7ffc75fe55b0', 'size': 32}]
[] 0x7ffc75fe55b0
Bytecode at 0x7ffc75fe55b0:
Bytecode: 41 56 56 57 53 48 83 ec 28 31 f6 48 85 d2 74 2d hooked.
Memory at 0x1b2f1cee730 (16 bytes as chars): @y.pkey___
Memory at 0x1b2f1cee6e0 (16 bytes as chars): @y.pkey___
...
Memory at 0x1b314ec2050 (16 bytes as chars): @y.pkey___
Memory at 0x1b314ec2010 (16 bytes as chars): @y.pkey___