forked from schylervalon/yixun-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
accountget.ahk
212 lines (188 loc) · 3.86 KB
/
accountget.ahk
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
ListLines, Off
#KeyHistory 0
#NoEnv
#SingleInstance Off
#NoTrayIcon
Global ver
Global acc
Global i
Global URL
Gui, Add, Text, x10 y10, 选择api:
Gui, Add, DropDownList, x+0 y+-16 w100 vapi, api.npoint.io|jsonbox.io
Gui, Add, Button, x10 y40 Default w80 gconfirmapi, 确定
Gui, Add, Button, x200 y40 w80 gcencel, 退出
Gui, Show, h75 w300, 账号提取器
return
confirmapi:
GuiControlGet,api
if (api = "api.npoint.io")
{
i = 0
getmain()
return
}
else
if (api = "jsonbox.io")
{
i = 1
getmain()
return
}
else{
MsgBox, 16,错误:,请选择api!
}
return
getmain()
{
Gui, Destroy
Gui, Add, Text, x10 y10, 选择亿寻版本:
Gui, Add, DropDownList, x+0 y+-16 w100 vver, 春节版|湖南版|b2|b2湖南版
Gui, Add, Button, x10 y40 Default w80 gconfirm, 确定
Gui, Add, Button, x200 y40 w80 gcencel, 退出
Gui, Show, h75 w300, 账号提取器
return
confirm:
GuiControlGet,ver
if (ver = "春节版")
{
if ( i = 0 )
{
URL := "https://api.npoint.io/c40d013198d9cb72b0f6"
}
else
{
URL := "https://jsonbox.io/box_4db33f1b89c83a597228"
}
getaccount()
}
else
{
if (ver = "湖南版")
{
if ( i = 0 )
{
URL := "https://api.npoint.io/02deb6ea7c329f04de0a"
}
else
{
URL := "https://jsonbox.io/box_199a1ef519292b29f373"
}
getaccount()
}else{
if (ver = "b2")
{
if ( i = 0 )
{
URL := "https://api.npoint.io/2bd185b46411dcfeb49a"
}
else
{
URL := "https://jsonbox.io/box_c981dc25c810786bc94a"
}
getaccount()
}else{
if(ver = "b2湖南版")
{
if ( i = 0 )
{
URL := "https://api.npoint.io/fff10be7d4b30046f4a5"
}
else
{
URL := "https://jsonbox.io/box_cb8d5a28bb2a5b2979cd"
}
getaccount()
}
else{
MsgBox, 16,错误:,请选择版本!
}
Return
}
return
}
return
}
return
}
getaccount()
{
r := sd()
FileDelete, etc\4
FileAppend, % r, etc\4
Try
{
RunWait, C:\Windows\System32\cmd.exe /C OpenSSL\bin\openssl.exe enc -d -aes-256-cbc -a -A -pbkdf2 -pass file:etc\accountdecryptkey -in etc\4 | clip,, Hide
}
Catch
{
failure := 1
MsgBox, 48, 错误:OpenSSL, 出现意外错误。
return
}
r := Clipboard
Clipboard := t
FileDelete, vipaccount
FileAppend, % r, vipaccount
MsgBox, 68 ,已提取,账号提取成功!账号信息已保存在:vipaccount
return
}
sd(i := 0, j := 0)
{
if ( i = 0 )
{
whr := ComObjCreate("WinHttp.WinHttpRequest.5.1")
Try
{
whr.SetProxy(1)
whr.Option(6) := false
whr.Open("GET", URL, true)
whr.Send()
whr.WaitForResponse()
if ( RegExMatch(whr.ResponseText, "(?<=""d"":"")[^""]+", r) = 0 )
{
if ( i = 0 )
{
return, sd(1)
}
}
else
{
return, r
}
}
Catch
{
return,sd(, 1)
}
}
else
{
t := Clipboard
Try
{
RunWait, C:\Windows\System32\cmd.exe /C curl\bin\curl.exe --noproxy * -s %URL% | clip,, Hide
}
Catch
{
MsgBox, 48, 错误:curl, 出现意外错误。
return
}
r := Clipboard
Clipboard := t
if ( RegExMatch(r, "(?<=""d"":"")[^""]+", r) = 0 )
{
if ( i = 0 )
{
return, sd(1, 1)
}
}
else
{
return, r
}
}
}
cencel:
Exitapp
GuiClose:
Exitapp