solved new crackme
This commit is contained in:
parent
f7dd91e33f
commit
cc1be924fa
BIN
Acid Materie/AC1D.Materie.exe.zip
Normal file
BIN
Acid Materie/AC1D.Materie.exe.zip
Normal file
Binary file not shown.
16
Acid Materie/Readme!.txt
Normal file
16
Acid Materie/Readme!.txt
Normal file
@ -0,0 +1,16 @@
|
||||
Hi guys.
|
||||
|
||||
Try to Solve this Keygenme!
|
||||
|
||||
RuleZ:
|
||||
|
||||
-NoPatching ( u can patch it but its not a valid res.)
|
||||
-Write a Keygen!
|
||||
|
||||
written in C++ by #ParadoxX[AC1D] 5.3.2010
|
||||
Coding FTW!
|
||||
|
||||
Dreaming in Digital
|
||||
Living in realtime
|
||||
Thinking in binary
|
||||
Talking in IP...
|
23
Acid Materie/keygen/keygen1.deps.json
Normal file
23
Acid Materie/keygen/keygen1.deps.json
Normal file
@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v8.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v8.0": {
|
||||
"keygen1/1.0.0": {
|
||||
"runtime": {
|
||||
"keygen1.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"keygen1/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
BIN
Acid Materie/keygen/keygen1.dll
Normal file
BIN
Acid Materie/keygen/keygen1.dll
Normal file
Binary file not shown.
BIN
Acid Materie/keygen/keygen1.exe
Normal file
BIN
Acid Materie/keygen/keygen1.exe
Normal file
Binary file not shown.
19
Acid Materie/keygen/keygen1.runtimeconfig.json
Normal file
19
Acid Materie/keygen/keygen1.runtimeconfig.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"frameworks": [
|
||||
{
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
{
|
||||
"name": "Microsoft.WindowsDesktop.App",
|
||||
"version": "8.0.0"
|
||||
}
|
||||
],
|
||||
"configProperties": {
|
||||
"System.Reflection.Metadata.MetadataUpdater.IsSupported": false,
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": true
|
||||
}
|
||||
}
|
||||
}
|
106
Acid Materie/solve.md
Normal file
106
Acid Materie/solve.md
Normal file
@ -0,0 +1,106 @@
|
||||
VT 10/73
|
||||
|
||||
会不会有别的猫腻?
|
||||
|
||||
判断逻辑:(已简化整理代码)
|
||||
|
||||
```c#
|
||||
int serial1 = "user input"; // ebp-10
|
||||
int serial2 = "user input"; // ebp-14
|
||||
int a = 0x539; // ebp-4
|
||||
int c = 2; //ebp-C
|
||||
|
||||
while(a!=0){
|
||||
serial2 ^= c++;
|
||||
a--;
|
||||
}
|
||||
if(serial1==serial2){
|
||||
//SUCCESS
|
||||
}else{
|
||||
//FAIL
|
||||
}
|
||||
```
|
||||
|
||||
Main: 00401390
|
||||
|
||||
```assembly
|
||||
00401390 | 55 | push ebp |
|
||||
00401391 | 89E5 | mov ebp,esp |
|
||||
00401393 | 83EC 28 | sub esp,28 |
|
||||
00401396 | 83E4 F0 | and esp,FFFFFFF0 |
|
||||
00401399 | B8 00000000 | mov eax,0 |
|
||||
0040139E | 83C0 0F | add eax,F |
|
||||
004013A1 | 83C0 0F | add eax,F |
|
||||
004013A4 | C1E8 04 | shr eax,4 |
|
||||
004013A7 | C1E0 04 | shl eax,4 |
|
||||
004013AA | 8945 E8 | mov dword ptr ss:[ebp-18],eax |
|
||||
004013AD | 8B45 E8 | mov eax,dword ptr ss:[ebp-18] |
|
||||
004013B0 | E8 F3BD0000 | call ac1d.materie.40D1A8 |
|
||||
004013B5 | E8 2EBA0000 | call ac1d.materie.40CDE8 |
|
||||
004013BA | C745 FC 39050000 | mov dword ptr ss:[ebp-4],539 |
|
||||
004013C1 | C745 F8 00CA9A3B | mov dword ptr ss:[ebp-8],3B9ACA00 |
|
||||
004013C8 | C745 F4 02000000 | mov dword ptr ss:[ebp-C],2 | [ebp-0C]:&"ALLUSERSPROFILE=C:\\ProgramData"
|
||||
004013CF | C74424 04 00004400 | mov dword ptr ss:[esp+4],ac1d.materie.440000 | 440000:"############################\n"
|
||||
004013D7 | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
004013DE | E8 2DAB0300 | call <ac1d.materie.Cout> |
|
||||
004013E3 | C74424 04 1E004400 | mov dword ptr ss:[esp+4],ac1d.materie.44001E | 44001E:"#____[ AC1D Materie#1 ]____#\n"
|
||||
004013EB | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
004013F2 | E8 19AB0300 | call <ac1d.materie.Cout> |
|
||||
004013F7 | C74424 04 3C004400 | mov dword ptr ss:[esp+4],ac1d.materie.44003C | 44003C:"#__[ by #ParadoxX[AC1D] ]__#\n"
|
||||
004013FF | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
00401406 | E8 05AB0300 | call <ac1d.materie.Cout> |
|
||||
0040140B | C74424 04 5C004400 | mov dword ptr ss:[esp+4],ac1d.materie.44005C | 44005C:"############################\n\n"
|
||||
00401413 | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
0040141A | E8 F1AA0300 | call <ac1d.materie.Cout> |
|
||||
0040141F | C74424 04 7B004400 | mov dword ptr ss:[esp+4],ac1d.materie.44007B | 44007B:"First Serial: "
|
||||
00401427 | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
0040142E | E8 DDAA0300 | call <ac1d.materie.Cout> |
|
||||
00401433 | 8D45 F0 | lea eax,dword ptr ss:[ebp-10] |
|
||||
00401436 | 894424 04 | mov dword ptr ss:[esp+4],eax | serial1
|
||||
0040143A | C70424 60344400 | mov dword ptr ss:[esp],ac1d.materie.443460 |
|
||||
00401441 | E8 926B0200 | call <ac1d.materie.Cin> |
|
||||
00401446 | C74424 04 8A004400 | mov dword ptr ss:[esp+4],ac1d.materie.44008A | 44008A:"\nSecond Serial: "
|
||||
0040144E | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
00401455 | E8 B6AA0300 | call <ac1d.materie.Cout> |
|
||||
0040145A | 8D45 EC | lea eax,dword ptr ss:[ebp-14] | [ebp-14]:__get_image_app_type+1B
|
||||
0040145D | 894424 04 | mov dword ptr ss:[esp+4],eax | serial2
|
||||
00401461 | C70424 60344400 | mov dword ptr ss:[esp],ac1d.materie.443460 |
|
||||
00401468 | E8 6B6B0200 | call <ac1d.materie.Cin> |
|
||||
0040146D | 837D FC 00 | cmp dword ptr ss:[ebp-4],0 | init ebp-4:539 计算serial
|
||||
00401471 | 74 14 | je ac1d.materie.401487 |
|
||||
00401473 | 8B55 F4 | mov edx,dword ptr ss:[ebp-C] |
|
||||
00401476 | 8D45 EC | lea eax,dword ptr ss:[ebp-14] |
|
||||
00401479 | 3110 | xor dword ptr ds:[eax],edx |
|
||||
0040147B | 8D45 F4 | lea eax,dword ptr ss:[ebp-C] |
|
||||
0040147E | FF00 | inc dword ptr ds:[eax] |
|
||||
00401480 | 8D45 FC | lea eax,dword ptr ss:[ebp-4] |
|
||||
00401483 | FF08 | dec dword ptr ds:[eax] |
|
||||
00401485 | EB E6 | jmp ac1d.materie.40146D |
|
||||
00401487 | C74424 04 9B004400 | mov dword ptr ss:[esp+4],ac1d.materie.44009B | 44009B:"\nChecking...\n"
|
||||
0040148F | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
00401496 | E8 75AA0300 | call <ac1d.materie.Cout> |
|
||||
0040149B | C70424 E8030000 | mov dword ptr ss:[esp],3E8 |
|
||||
004014A2 | E8 C9F30000 | call <JMP.&_SleepStub@4> |
|
||||
004014A7 | 83EC 04 | sub esp,4 |
|
||||
004014AA | 8B45 F0 | mov eax,dword ptr ss:[ebp-10] |
|
||||
004014AD | 3B45 EC | cmp eax,dword ptr ss:[ebp-14] | 检查
|
||||
004014B0 | 74 22 | je ac1d.materie.4014D4 |
|
||||
004014B2 | C74424 04 A9004400 | mov dword ptr ss:[esp+4],ac1d.materie.4400A9 | Fail, 4400A9:"Wrong Serial!\a\n"
|
||||
004014BA | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
004014C1 | E8 4AAA0300 | call <ac1d.materie.Cout> |
|
||||
004014C6 | C70424 B9004400 | mov dword ptr ss:[esp],ac1d.materie.4400B9 | 4400B9:"pause"
|
||||
004014CD | E8 66F20000 | call <JMP.&_system> |
|
||||
004014D2 | EB 34 | jmp ac1d.materie.401508 |
|
||||
004014D4 | C74424 04 C0004400 | mov dword ptr ss:[esp+4],ac1d.materie.4400C0 | Success, 4400C0:"Solved! Show me your resolution at Crackmes.de + KeyGen!\n"
|
||||
004014DC | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
004014E3 | E8 28AA0300 | call <ac1d.materie.Cout> |
|
||||
004014E8 | C74424 04 FC004400 | mov dword ptr ss:[esp+4],ac1d.materie.4400FC | 4400FC:"Powered by #ParadoxX[AC1D] and Crackmes.de\n\n"
|
||||
004014F0 | C70424 C0334400 | mov dword ptr ss:[esp],ac1d.materie.4433C0 |
|
||||
004014F7 | E8 14AA0300 | call <ac1d.materie.Cout> |
|
||||
004014FC | C70424 B9004400 | mov dword ptr ss:[esp],ac1d.materie.4400B9 | 4400B9:"pause"
|
||||
00401503 | E8 30F20000 | call <JMP.&_system> |
|
||||
00401508 | B8 00000000 | mov eax,0 |
|
||||
0040150D | C9 | leave |
|
||||
0040150E | C3 | ret |
|
||||
```
|
||||
|
51
Acid Materie/source/keygen1.sln
Normal file
51
Acid Materie/source/keygen1.sln
Normal file
@ -0,0 +1,51 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.11.35303.130
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "keygen1", "keygen1\keygen1.csproj", "{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "keygen2", "keygen2\keygen2.csproj", "{2446CB50-1882-4219-9DB0-E7F5517E6E20}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "keygen3", "keygen3\keygen3.csproj", "{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Debug|x86.Build.0 = Debug|x86
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Release|x86.ActiveCfg = Release|x86
|
||||
{D0E162E3-FC99-4405-BEE1-AB85D9D41DA9}.Release|x86.Build.0 = Release|x86
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Debug|x86.Build.0 = Debug|x86
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Release|x86.ActiveCfg = Release|x86
|
||||
{2446CB50-1882-4219-9DB0-E7F5517E6E20}.Release|x86.Build.0 = Release|x86
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Debug|x86.Build.0 = Debug|x86
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Release|x86.ActiveCfg = Release|x86
|
||||
{BC47A6DE-7F9D-4D65-A996-69FB778C95F3}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {01ED3EE8-E89A-4A27-AF68-EF2490CB6BD7}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
158
Acid Materie/source/keygen1/Form1.Designer.cs
generated
Normal file
158
Acid Materie/source/keygen1/Form1.Designer.cs
generated
Normal file
@ -0,0 +1,158 @@
|
||||
namespace keygen1
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
button1 = new Button();
|
||||
label1 = new Label();
|
||||
textBox1 = new TextBox();
|
||||
label2 = new Label();
|
||||
textBox2 = new TextBox();
|
||||
label3 = new Label();
|
||||
checkBox1 = new CheckBox();
|
||||
button2 = new Button();
|
||||
button3 = new Button();
|
||||
SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
button1.Location = new Point(393, 2);
|
||||
button1.Name = "button1";
|
||||
button1.Size = new Size(93, 94);
|
||||
button1.TabIndex = 0;
|
||||
button1.Text = "Generate";
|
||||
button1.UseVisualStyleBackColor = true;
|
||||
button1.Click += Button1_Click;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Location = new Point(12, 17);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new Size(41, 15);
|
||||
label1.TabIndex = 1;
|
||||
label1.Text = "Serial1";
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
textBox1.Location = new Point(56, 14);
|
||||
textBox1.Name = "textBox1";
|
||||
textBox1.Size = new Size(281, 23);
|
||||
textBox1.TabIndex = 2;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
label2.AutoSize = true;
|
||||
label2.Location = new Point(12, 50);
|
||||
label2.Name = "label2";
|
||||
label2.Size = new Size(41, 15);
|
||||
label2.TabIndex = 3;
|
||||
label2.Text = "Serial2";
|
||||
//
|
||||
// textBox2
|
||||
//
|
||||
textBox2.Location = new Point(56, 47);
|
||||
textBox2.Name = "textBox2";
|
||||
textBox2.Size = new Size(281, 23);
|
||||
textBox2.TabIndex = 4;
|
||||
//
|
||||
// label3
|
||||
//
|
||||
label3.AutoSize = true;
|
||||
label3.Location = new Point(312, 78);
|
||||
label3.Name = "label3";
|
||||
label3.Size = new Size(75, 15);
|
||||
label3.TabIndex = 5;
|
||||
label3.Text = "By Chenx221";
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
checkBox1.AutoSize = true;
|
||||
checkBox1.Enabled = false;
|
||||
checkBox1.Location = new Point(56, 78);
|
||||
checkBox1.Name = "checkBox1";
|
||||
checkBox1.Size = new Size(275, 19);
|
||||
checkBox1.TabIndex = 6;
|
||||
checkBox1.Text = "Auto Mode (Console programs not supported)";
|
||||
checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// button2
|
||||
//
|
||||
button2.Location = new Point(343, 13);
|
||||
button2.Name = "button2";
|
||||
button2.Size = new Size(44, 24);
|
||||
button2.TabIndex = 7;
|
||||
button2.Text = "Copy";
|
||||
button2.UseVisualStyleBackColor = true;
|
||||
button2.Click += Button2_Click;
|
||||
//
|
||||
// button3
|
||||
//
|
||||
button3.Location = new Point(343, 47);
|
||||
button3.Name = "button3";
|
||||
button3.Size = new Size(44, 23);
|
||||
button3.TabIndex = 8;
|
||||
button3.Text = "Copy";
|
||||
button3.UseVisualStyleBackColor = true;
|
||||
button3.Click += Button3_Click;
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(491, 103);
|
||||
Controls.Add(button3);
|
||||
Controls.Add(button2);
|
||||
Controls.Add(checkBox1);
|
||||
Controls.Add(label3);
|
||||
Controls.Add(textBox2);
|
||||
Controls.Add(label2);
|
||||
Controls.Add(textBox1);
|
||||
Controls.Add(label1);
|
||||
Controls.Add(button1);
|
||||
FormBorderStyle = FormBorderStyle.FixedSingle;
|
||||
MaximizeBox = false;
|
||||
Name = "Form1";
|
||||
Text = "KeyGen For Acid Materie";
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private Button button1;
|
||||
private Label label1;
|
||||
private TextBox textBox1;
|
||||
private Label label2;
|
||||
private TextBox textBox2;
|
||||
private Label label3;
|
||||
private CheckBox checkBox1;
|
||||
private Button button2;
|
||||
private Button button3;
|
||||
}
|
||||
}
|
115
Acid Materie/source/keygen1/Form1.cs
Normal file
115
Acid Materie/source/keygen1/Form1.cs
Normal file
@ -0,0 +1,115 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace keygen1
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
|
||||
static extern IntPtr FindWindow(string? lpClassName, string lpWindowName);
|
||||
|
||||
[DllImport("user32.dll", SetLastError = true)]
|
||||
static extern IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Unicode, SetLastError = false)]
|
||||
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, StringBuilder? lParam);
|
||||
|
||||
[DllImport("user32.dll", CharSet = CharSet.Auto, SetLastError = false)]
|
||||
static extern IntPtr SendMessage(IntPtr hWnd, uint Msg, IntPtr wParam, IntPtr lParam);
|
||||
|
||||
const uint WM_SETTEXT = 0x000C;
|
||||
const uint BM_CLICK = 0x00F5;
|
||||
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void Button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (string.IsNullOrEmpty(textBox1.Text)) MessageBox.Show("Serial1不能为空");
|
||||
Generate(textBox1.Text);
|
||||
}
|
||||
|
||||
private void Generate(string username)
|
||||
{
|
||||
//if (username.Length <= 3)
|
||||
//{
|
||||
// MessageBox.Show("Name长度需大于3位");
|
||||
// return;
|
||||
//}
|
||||
//string key = GenerateKey(username);
|
||||
|
||||
if (!int.TryParse(username, out int serial1))
|
||||
{
|
||||
MessageBox.Show("Serial1不是有效数字");
|
||||
return;
|
||||
}
|
||||
string key = GenerateKey(serial1);
|
||||
textBox2.Text = key;
|
||||
//if (checkBox1.Checked) AutoMode(username, key);
|
||||
}
|
||||
|
||||
//private static string GenerateKey(string name)
|
||||
//{
|
||||
// return ((char)(name[name.Length - 1] ^ 3)).ToString();
|
||||
//}
|
||||
|
||||
private static string GenerateKey(int serial)
|
||||
{
|
||||
int a = 0x539; // ebp-4
|
||||
int c = 2 + a - 1; //ebp-C
|
||||
|
||||
while (a != 0)
|
||||
{
|
||||
serial ^= c--;
|
||||
a--;
|
||||
}
|
||||
|
||||
return serial.ToString();
|
||||
}
|
||||
|
||||
private static void AutoMode(string username, string key)
|
||||
{
|
||||
string windowTitle = "Crackme 8";
|
||||
IntPtr hWnd = FindWindow(null, windowTitle);
|
||||
|
||||
if (hWnd == IntPtr.Zero)
|
||||
{
|
||||
MessageBox.Show("窗口未找到");
|
||||
return;
|
||||
}
|
||||
|
||||
int usernameControlId = 4;
|
||||
int keyControlId = 3;
|
||||
int submitButtonId = 2;
|
||||
|
||||
IntPtr usernameHwnd = GetDlgItem(hWnd, usernameControlId);
|
||||
IntPtr keyHwnd = GetDlgItem(hWnd, keyControlId);
|
||||
IntPtr submitButtonHwnd = GetDlgItem(hWnd, submitButtonId);
|
||||
|
||||
if (usernameHwnd == IntPtr.Zero || keyHwnd == IntPtr.Zero || submitButtonHwnd == IntPtr.Zero)
|
||||
{
|
||||
MessageBox.Show("控件未找到");
|
||||
return;
|
||||
}
|
||||
|
||||
StringBuilder usernameToSet = new(username);
|
||||
StringBuilder keyToSet = new(key);
|
||||
|
||||
SendMessage(usernameHwnd, WM_SETTEXT, IntPtr.Zero, usernameToSet);
|
||||
SendMessage(keyHwnd, WM_SETTEXT, IntPtr.Zero, keyToSet);
|
||||
SendMessage(submitButtonHwnd, BM_CLICK, IntPtr.Zero, IntPtr.Zero);
|
||||
}
|
||||
|
||||
private void Button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
Clipboard.SetText(textBox1.Text);
|
||||
}
|
||||
|
||||
private void Button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
Clipboard.SetText(textBox2.Text);
|
||||
}
|
||||
}
|
||||
}
|
120
Acid Materie/source/keygen1/Form1.resx
Normal file
120
Acid Materie/source/keygen1/Form1.resx
Normal file
@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
17
Acid Materie/source/keygen1/Program.cs
Normal file
17
Acid Materie/source/keygen1/Program.cs
Normal file
@ -0,0 +1,17 @@
|
||||
namespace keygen1
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
// To customize application configuration such as set high DPI settings or default font,
|
||||
// see https://aka.ms/applicationconfiguration.
|
||||
ApplicationConfiguration.Initialize();
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
31
Acid Materie/source/keygen1/keygen1.csproj
Normal file
31
Acid Materie/source/keygen1/keygen1.csproj
Normal file
@ -0,0 +1,31 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<TargetFramework>net8.0-windows</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<UseWindowsForms>true</UseWindowsForms>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||
<Platforms>AnyCPU;x86</Platforms>
|
||||
<Authors>chenx221</Authors>
|
||||
<Company>chenx221</Company>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
|
||||
<DebugType>portable</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
|
||||
<DebugType>portable</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
|
||||
<DebugType>portable</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
|
||||
<DebugType>portable</DebugType>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user