-
Notifications
You must be signed in to change notification settings - Fork 0
/
UP_DEC.ahk
29 lines (26 loc) · 869 Bytes
/
UP_DEC.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
File = Admin.bin
FileRead,tmpfilevar,%File%
If (ErrorLevel=1)
{
Msgbox,16,Critical Error, Error trying to read`n%file%
Msgbox, Maybe the file just doesn't exist? `nPlease enter new windows credentials on the following screen`n`nWhen completed, please restart AATT.ahk
Run UP_ENC.ahk
ExitApp
}
Loop,Parse,tmpfilevar,`n
{
;msgbox, current linecontains %A_LoopField%
If A_LoopField = ; reached the end of the IP address list
Break
If A_index = 1
EncAdminName = %A_LoopField%
If A_index = 2
EncPass = %A_LoopField%
}
StringTrimRight,EncAdminName,EncAdminName,1
;msgbox, crypted name = %EncAdminName% `n crypted password = %EncPass%
DecAdminName := DraGon_Dec(EncAdminName)
DecPass := DraGon_Dec(EncPass)
;msgbox, decrypted name = %DecAdminName% `n dencrypted password = %DecPass%
;exitapp
#include DragonEnc.ahk