You don't need to reverse it back to NDT Format.. just rename the txt to ndt and it will work
Did someone find a solution to this problem?Quote:
I have now a problem...
For IntAO and EuroAO the converter works.. but not for KAO...
Any idea how to solve this problem? I have attached an .ndt file from Korean AO...
Thanks a lot in advance...
#cs ----------------------------------------------------------------------------
AutoIt Version: 3.3.8.1
Author: NeuroNet (based on BootDisk)
Script Function:
NDT/NTX-Decryptor
#ce ----------------------------------------------------------------------------
$file_in = FileOpenDialog("Select ndt/ntx-file", @ScriptDir, "All (*.*)")
$file_ou = StringTrimRight($file_in, 4) & ".txt"
$in_file = FileOpen($file_in, 0)
$ou_file = FileOpen($file_ou, BitOR(16, 2))
If $in_file = -1 Then
MsgBox(0, "Error", "Unable to open file.")
Exit
EndIf
FileSetPos($in_file, 12, 0)
$seed = Asc(FileRead($in_file, 1))
$size = FileGetSize($file_in)
For $i = 26 To ($size-1)
FileSetPos($in_file, $i, 0)
$v = Asc(FileRead($in_file, 1))
$v = $v - $seed
$v = BitAND ($v, 0xFF)
$v2 = Asc(FileRead($in_file, 1))
$v = BitXOR ($v, $v2)
FileWrite($ou_file, Chr($v))
Next
FileClose($in_file)
FileClose($ou_file)
#cs ---------------------------------------------------------------------------- AutoIt Version: 3.3.8.1 Author: NeuroNet (based on BootDisk) Script Function: Decrypt-Seed-Tester #ce ---------------------------------------------------------------------------- ; clear result:"V e r s i o n I n f o " $test_result = "56 00 65 00 72 00 73 00 69 00 6F 00 6E 00 49 00 6E 00 66 00 6F 00" ; first "crypted" bytes of old 1.1 files.... $test_input = "5C 5C 0A DD 8B 4B F9 D4 82 59 07 DA 88 58 06 FD AB 37 E5 F5 A3 3E EC 93" ; first "crypted" bytes of new 1.3 files.... ;~ $test_input = "1B 00 0D F9 5D 00 B0 00 20 00 25 CC BF 57 74 00 21 00 DC CB DB 57 5A CD" $test_input_split = StringSplit($test_input, " ") $test_result_split = StringSplit($test_result, " ") $test_seed = "" For $i = 1 To $test_result_split[0] for $x = 0x0 to 0xFF $v = Dec($test_input_split[$i]) $v = $v - $x $v = BitAND ($v, 0xFF) $v2 = Dec($test_input_split[$i+1]) $v = BitXOR ($v, $v2) if Dec($test_result_split[$i]) = $v Then $test_seed = $test_seed & Hex($x, 2) & " " ExitLoop EndIf Next Next $Res_text = $test_input & @CRLF & $test_result & @CRLF & $test_seed MsgBox(4096, "Test", $Res_text)
USAGE: NDT_CONVERT sample.ndt