mirror of
https://github.com/WiiDatabase/nusdownloader.git
synced 2024-11-23 18:59:16 +01:00
Korean Key (Ticket) Support
This commit is contained in:
parent
29f6f726a1
commit
3f5082ba9c
@ -170,6 +170,17 @@ namespace NUS_Downloader
|
|||||||
WriteStatus("Common Key detected.");
|
WriteStatus("Common Key detected.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for Wii KOR common key bin file...
|
||||||
|
if (File.Exists(currentdir + "kkey.bin") == false)
|
||||||
|
{
|
||||||
|
//WriteStatus("Korean Common Key (kkey.bin) missing! Decryption disabled!");
|
||||||
|
//decryptbox.Visible = false;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WriteStatus("Korean Common Key detected.");
|
||||||
|
}
|
||||||
|
|
||||||
// Check for DSi common key bin file...
|
// Check for DSi common key bin file...
|
||||||
if (File.Exists(currentdir + "dskey.bin") == false)
|
if (File.Exists(currentdir + "dskey.bin") == false)
|
||||||
{
|
{
|
||||||
@ -640,10 +651,28 @@ namespace NUS_Downloader
|
|||||||
iv[i+8] = 0x00;
|
iv[i+8] = 0x00;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Standard/Korea
|
||||||
|
bool koreankey = false;
|
||||||
|
WriteStatus("0x01F1: " + Convert.ToString(cetkbuf[0x01F1]));
|
||||||
|
if (cetkbuf[0x01F1] == 0x01)
|
||||||
|
{
|
||||||
|
WriteStatus("Key Type: Korean");
|
||||||
|
koreankey = true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WriteStatus("Key Type: Standard");
|
||||||
|
}
|
||||||
|
|
||||||
// Common Key
|
// Common Key
|
||||||
byte[] keyBytes;
|
byte[] keyBytes;
|
||||||
if (wiimode)
|
if (wiimode)
|
||||||
|
{
|
||||||
|
if (koreankey)
|
||||||
|
keyBytes = LoadCommonKey(@"\kkey.bin");
|
||||||
|
else
|
||||||
keyBytes = LoadCommonKey(@"\key.bin");
|
keyBytes = LoadCommonKey(@"\key.bin");
|
||||||
|
}
|
||||||
else
|
else
|
||||||
keyBytes = LoadCommonKey(@"\dskey.bin");
|
keyBytes = LoadCommonKey(@"\dskey.bin");
|
||||||
|
|
||||||
@ -779,7 +808,7 @@ namespace NUS_Downloader
|
|||||||
{
|
{
|
||||||
WriteStatus(" - Hash Check: Fail");
|
WriteStatus(" - Hash Check: Fail");
|
||||||
WriteStatus(" - True Hash: " + DisplayBytes(hash));
|
WriteStatus(" - True Hash: " + DisplayBytes(hash));
|
||||||
WriteStatus(" - You Got: " + DisplayBytes(ComputeSHA(Decrypt(contbuf))));
|
WriteStatus(" - You Have: " + DisplayBytes(ComputeSHA(Decrypt(contbuf))));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1084,6 +1113,15 @@ namespace NUS_Downloader
|
|||||||
WriteStatus("Wii Decryption: OK");
|
WriteStatus("Wii Decryption: OK");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (File.Exists(currentdir + "kkey.bin") == false)
|
||||||
|
{
|
||||||
|
WriteStatus("Wii Korea Decryption: Need (kkey.bin)");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WriteStatus("Wii Korea Decryption: OK");
|
||||||
|
}
|
||||||
|
|
||||||
if (File.Exists(currentdir + "dskey.bin") == false)
|
if (File.Exists(currentdir + "dskey.bin") == false)
|
||||||
{
|
{
|
||||||
WriteStatus("DSi Decryption: Need (dskey.bin)");
|
WriteStatus("DSi Decryption: Need (dskey.bin)");
|
||||||
@ -1093,10 +1131,20 @@ namespace NUS_Downloader
|
|||||||
WriteStatus("DSi Decryption: OK");
|
WriteStatus("DSi Decryption: OK");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (File.Exists(currentdir + "database.xml") == false)
|
||||||
|
{
|
||||||
|
WriteStatus("Database: Need (database.xml)");
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
WriteStatus("Database: OK");
|
||||||
|
}
|
||||||
|
|
||||||
WriteStatus("");
|
WriteStatus("");
|
||||||
WriteStatus("Special thanks to:");
|
WriteStatus("Special thanks to:");
|
||||||
WriteStatus(" * Crediar for his wadmaker tool + source, and for the advice!");
|
WriteStatus(" * Crediar for his wadmaker tool + source, and for the advice!");
|
||||||
WriteStatus(" * SquidMan/Galaxy/comex for advice/sources.");
|
WriteStatus(" * SquidMan/Galaxy/comex for advice/sources.");
|
||||||
|
WriteStatus(" * Pasta for database compilation assistance.");
|
||||||
WriteStatus(" * #WiiDev for general assistance whenever I had questions.");
|
WriteStatus(" * #WiiDev for general assistance whenever I had questions.");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1251,9 +1299,7 @@ namespace NUS_Downloader
|
|||||||
private void titleversion_TextChanged(object sender, EventArgs e)
|
private void titleversion_TextChanged(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// Change WAD name if applicable
|
// Change WAD name if applicable
|
||||||
if (packbox.Checked == true)
|
if ((titleidbox.Enabled == true) && (packbox.Checked == true))
|
||||||
{
|
|
||||||
if (titleidbox.Enabled == true)
|
|
||||||
{
|
{
|
||||||
if (titleversion.Text != "")
|
if (titleversion.Text != "")
|
||||||
{
|
{
|
||||||
@ -1265,7 +1311,6 @@ namespace NUS_Downloader
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void initCrypt(byte[] iv, byte[] key)
|
public void initCrypt(byte[] iv, byte[] key)
|
||||||
{
|
{
|
||||||
@ -1602,7 +1647,7 @@ namespace NUS_Downloader
|
|||||||
{
|
{
|
||||||
/* Typical Region XML
|
/* Typical Region XML
|
||||||
* <REGIONS>
|
* <REGIONS>
|
||||||
<region index=0>41 (All/System)</region>
|
<region index="0">41 (All/System)</region>
|
||||||
<region index=1>44 (German)</region>
|
<region index=1>44 (German)</region>
|
||||||
<region index=2>45 (USA/NTSC)</region>
|
<region index=2>45 (USA/NTSC)</region>
|
||||||
<region index=3>46 (French)</region>
|
<region index=3>46 (French)</region>
|
||||||
|
@ -97,7 +97,6 @@
|
|||||||
<None Include="Resources\wilolgoi.png" />
|
<None Include="Resources\wilolgoi.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="NUS Downloader_TemporaryKey.pfx" />
|
|
||||||
<None Include="Properties\app.manifest" />
|
<None Include="Properties\app.manifest" />
|
||||||
<None Include="Resources\dsi.png" />
|
<None Include="Resources\dsi.png" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user