mirror of
https://github.com/Nezumi-2711/winrar-keygen.git
synced 2026-09-22 13:48:33 +00:00
🎉 v1.0.4
fix a internal error: The length of register data is not correct
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -55,13 +55,12 @@ If you don't want to compile it yourself, you can also go to the [release page](
|
||||
$ vcpkg install mpir:x64-windows-static
|
||||
```
|
||||
|
||||
3. Your `vcpkg` has been integrated into your __Visual Studio__, which means you have run
|
||||
3. Your `vcpkg` has been integrated into your __Visual Studio__, which means you have run successfully.
|
||||
|
||||
```console
|
||||
$ vcpkg integrate install
|
||||
```
|
||||
|
||||
successfully.
|
||||
|
||||
### 3.2 Build
|
||||
|
||||
|
||||
+38
-2
@@ -189,7 +189,7 @@ public:
|
||||
RegInfo.Items[0] = GeneratePublicKeySM2CompressedFormat(RegInfo.Items[3].c_str());
|
||||
RegInfo.UID = HelperStringFormat("%.16s%.4s", temp.c_str() + 48, RegInfo.Items[0].c_str());
|
||||
|
||||
while (true) {
|
||||
/*while (true) {
|
||||
auto LicenseTypeSignature = Sign(RegInfo.LicenseType.c_str(), RegInfo.LicenseType.length());
|
||||
auto LicenseTypeSignatureR = LicenseTypeSignature.r.ToString(16, true);
|
||||
auto LicenseTypeSignatureS = LicenseTypeSignature.s.ToString(16, true);
|
||||
@@ -197,10 +197,27 @@ public:
|
||||
RegInfo.Items[1] = HelperStringFormat("60%060s%060s", LicenseTypeSignatureS.c_str(), LicenseTypeSignatureR.c_str());
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
|
||||
// Fix InternalError: The length of register data is not correct.
|
||||
while (true) {
|
||||
auto LicenseTypeSignature = Sign(RegInfo.LicenseType.c_str(), RegInfo.LicenseType.length());
|
||||
auto LicenseTypeSignatureR = LicenseTypeSignature.r.ToString(16, true);
|
||||
auto LicenseTypeSignatureS = LicenseTypeSignature.s.ToString(16, true);
|
||||
if (LicenseTypeSignatureR.length() < 60) {
|
||||
LicenseTypeSignatureR.insert(LicenseTypeSignatureR.begin(), 60 - LicenseTypeSignatureR.size(), '0');
|
||||
}
|
||||
if (LicenseTypeSignatureS.length() < 60) {
|
||||
LicenseTypeSignatureS.insert(LicenseTypeSignatureS.begin(), 60 - LicenseTypeSignatureS.size(), '0');
|
||||
}
|
||||
if (LicenseTypeSignatureR.length() == 60 && LicenseTypeSignatureS.length() == 60) {
|
||||
RegInfo.Items[1] = HelperStringFormat("60%060s%060s", LicenseTypeSignatureS.c_str(), LicenseTypeSignatureR.c_str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
temp = RegInfo.UserName + RegInfo.Items[0];
|
||||
while (true) {
|
||||
/*while (true) {
|
||||
auto UserNameSignature = Sign(temp.c_str(), temp.length());
|
||||
auto UserNameSignatureR = UserNameSignature.r.ToString(16, true);
|
||||
auto UserNameSignatureS = UserNameSignature.s.ToString(16, true);
|
||||
@@ -208,6 +225,23 @@ public:
|
||||
RegInfo.Items[2] = HelperStringFormat("60%060s%060s", UserNameSignatureS.c_str(), UserNameSignatureR.c_str());
|
||||
break;
|
||||
}
|
||||
}*/
|
||||
|
||||
// Fix InternalError: The length of register data is not correct.
|
||||
while (true) {
|
||||
auto UserNameSignature = Sign(temp.c_str(), temp.length());
|
||||
auto UserNameSignatureR = UserNameSignature.r.ToString(16, true);
|
||||
auto UserNameSignatureS = UserNameSignature.s.ToString(16, true);
|
||||
if (UserNameSignatureR.length() < 60) {
|
||||
UserNameSignatureR.insert(UserNameSignatureR.begin(), 60 - UserNameSignatureR.size(), '0');
|
||||
}
|
||||
if (UserNameSignatureS.length() < 60) {
|
||||
UserNameSignatureS.insert(UserNameSignatureS.begin(), 60 - UserNameSignatureS.size(), '0');
|
||||
}
|
||||
if (UserNameSignatureR.length() == 60 || UserNameSignatureS.length() == 60) {
|
||||
RegInfo.Items[2] = HelperStringFormat("60%060s%060s", UserNameSignatureS.c_str(), UserNameSignatureR.c_str());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
CalculateChecksum(RegInfo);
|
||||
@@ -224,6 +258,8 @@ public:
|
||||
RegInfo.Items[3].c_str(),
|
||||
RegInfo.Checksum
|
||||
);
|
||||
|
||||
// maybe have fixed
|
||||
if (RegInfo.HexData.length() % 54 != 0) {
|
||||
throw std::runtime_error("InternalError: The length of register data is not correct.");
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>D:\Users\haoning\Documents\GitHub\@bitcookies\winrar-keygen\bin\Win32-Release\winrar-keygen.exe</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
_tmain.cpp
|
||||
正在生成代码
|
||||
Previous IPDB not found, fall back to full compilation.
|
||||
All 413 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
|
||||
已完成代码的生成
|
||||
winrar-keygen.vcxproj -> D:\Users\haoning\Documents\GitHub\@bitcookies\winrar-keygen\bin\Win32-Release\winrar-keygen.exe
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native32Bit:VCToolsVersion=14.30.30705:TargetPlatformVersion=10.0.19041.0:
|
||||
Release|Win32|D:\Users\haoning\Documents\GitHub\@bitcookies\winrar-keygen\|
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
d:\users\haoning\documents\github\@bitcookies\winrar-keygen\bin\x64-release\winrar-keygen.pdb
|
||||
d:\users\haoning\documents\github\@bitcookies\winrar-keygen\bin\x64-release\winrar-keygen.exe
|
||||
d:\users\haoning\documents\github\@bitcookies\winrar-keygen\obj\x64-release\winrar-keygen.vcxproj.filelistabsolute.txt
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>D:\Users\haoning\Documents\GitHub\@bitcookies\winrar-keygen\bin\x64-Release\winrar-keygen.exe</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
||||
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
_tmain.cpp
|
||||
正在生成代码
|
||||
Previous IPDB not found, fall back to full compilation.
|
||||
All 414 functions were compiled because no usable IPDB/IOBJ from previous compilation was found.
|
||||
已完成代码的生成
|
||||
winrar-keygen.vcxproj -> D:\Users\haoning\Documents\GitHub\@bitcookies\winrar-keygen\bin\x64-Release\winrar-keygen.exe
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.30.30705:TargetPlatformVersion=10.0.19041.0:
|
||||
Release|x64|D:\Users\haoning\Documents\GitHub\@bitcookies\winrar-keygen\|
|
||||
Binary file not shown.
Binary file not shown.
+4
-4
@@ -61,8 +61,8 @@ IDI_ICON1 ICON "icon.ico"
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 1,0,3,0
|
||||
PRODUCTVERSION 1,0,3,0
|
||||
FILEVERSION 1,0,4,0
|
||||
PRODUCTVERSION 1,0,4,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@@ -79,12 +79,12 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "CompanyName", "WinRAR Keygen"
|
||||
VALUE "FileDescription", "WinRAR Key Generation Tool"
|
||||
VALUE "FileVersion", "1.0.3.0"
|
||||
VALUE "FileVersion", "1.0.4.0"
|
||||
VALUE "InternalName", "winrar-keygen.exe"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2021"
|
||||
VALUE "OriginalFilename", "winrar-keygen.exe"
|
||||
VALUE "ProductName", "WinRAR Keygen"
|
||||
VALUE "ProductVersion", "1.0.3.0"
|
||||
VALUE "ProductVersion", "1.0.4.0"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
Reference in New Issue
Block a user