Reverse/ABuggerCrackMe2/solve.txt
2024-09-18 14:42:07 +08:00

43 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

dnspy
DES Encrypt
key,iv: Encoding.ASCII.GetBytes("ABugger2");
加密结果以base64形式表示
检查Key文本框是否为空
检查DES加密(Key文本)==license文件内容
检查DES加密(license文件路径)=="DIYCtpqJYWygsw1V7MbQdyxPnWMKkR4/"
通过解密可得:
license文件需要放C:\CrackMes\File
其内容为DES加密的key的Base64key和iv上面写了
private void btnCheck_Click(object sender, EventArgs e)
{
if (this.open.ShowDialog() == DialogResult.OK)
{
string fileName = this.open.FileName;
try
{
string text;
using (StreamReader streamReader = new StreamReader(fileName))
{
text = streamReader.ReadLine();
}
if (this.txtName.Text != "" && Form1.EncryptDES(this.txtName.Text) == text && Form1.EncryptDES(fileName) == "DIYCtpqJYWygsw1V7MbQdyxPnWMKkR4/")
{
this.lblMode.Text = "Trial mode";
this.lblMode.ForeColor = Color.Green;
}
else
{
MessageBox.Show("KeyFile is invalid");
}
}
catch
{
MessageBox.Show("I can't open file! :(");
}
}
}