首页
社区
课程
招聘
[原创]雨天YT32智能加密狗数据分析工具,python+Bus Hound
发表于: 2023-2-5 19:49 6199

[原创]雨天YT32智能加密狗数据分析工具,python+Bus Hound

2023-2-5 19:49
6199

代码示例

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#Bus Hunter 数据分析
#执行命令: python 整理数据.py  222.txt中有用到的狗的api
import os
import re
import sys
import struct
 
#打开Bus Hunter记录
log = open("Bus数据.txt",'r')
dogmem = open('222.txt','w+')
inbuf = ""
findok = 0
inLen = 0
table = {}
cmdnum = []
dogcmdlist = []
#test
loglines = log.readlines()
for line in loglines:
    if "CMD    d1" in line:
        print(line[34:39])
        dogcmd = line[37:39].upper() 
        if dogcmd in cmdnum:
            continue
        else:
            cmdnum.append(dogcmd)
        match dogcmd:          
            case "02":
                dogcmdlist.append("GetLimitTimes")
            case "03":
                dogcmdlist.append("WriteHostKey")
            case "04":
                dogcmdlist.append("WriteLimitTimes")
            case "05":
                dogcmdlist.append("GetAlreadyTimes")
            case "06":
                dogcmdlist.append("WriteYinZhi")
            case "07":
                dogcmdlist.append("YT_ENCByPublic")
            case "08":
                dogcmdlist.append("MakeCodeIni")
            case "0A":
                dogcmdlist.append("MakeAuthCode")
            case "0B":
                dogcmdlist.append("YT_EecCodeFun")
            case "0C":
                dogcmdlist.append("EdcIni")
            case "0E":
                dogcmdlist.append("Sub_GetRunTimer")
            case "10":
                dogcmdlist.append("Ini_KeyByArray,Ini_Key,ReSet")
            case "12":
                dogcmdlist.append("YtRead")
            case "13":
                dogcmdlist.append("YtWrite")
            case "16":

[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!

注:下载本附件需支付 5雪币(note:5 points for downloading this attachment)
上传的附件:
收藏
免费 1
支持
分享
最新回复 (1)
雪    币:
能力值: ( LV1,RANK:0 )
在线值:
发帖
回帖
粉丝
2
能私信个联系方式吗
2024-3-13 21:37
0
游客
登录 | 注册 方可回帖
返回
//