御剑WEB目录扫描优化版KEYGEN 作者: admin 时间: 2019-04-15 分类: 工具,逆向破解 分析过程就不写了。直接贴出关键代码就好了:stuck_out_tongue_winking_eye: ```csharp using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Security.Cryptography; using System.Text; using System.Windows.Forms; namespace 御剑KEYGEN { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { textBox2.Text = AesEncrypt(Encoding.Default.GetBytes(textBox1.Text), new byte[] { 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15, 15 }); } public static string AesEncrypt(byte[] SourceArray, byte[] KeyArray) { RijndaelManaged rijndaelManaged = new RijndaelManaged(); RijndaelManaged rijndaelManaged2 = rijndaelManaged; rijndaelManaged2.Key = KeyArray; rijndaelManaged2.Mode = CipherMode.ECB; rijndaelManaged2.Padding = PaddingMode.Zeros; byte[] value = rijndaelManaged.CreateEncryptor().TransformFinalBlock(SourceArray, 0, SourceArray.Length); return BitConverter.ToString(value).Replace("-", ""); } private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { System.Diagnostics.Process.Start("https://www.ch1ng.com/"); } } } ``` ![w](https://raw.githubusercontent.com/Alennnnnn/YUJIANKEYGEN/master/img/photo_2019-03-29_21-34-34.jpg) 下载地址: [https://github.com/Ch1ngg/YUJIANKEYGEN](https://github.com/Ch1ngg/YUJIANKEYGEN) 标签: KEYGEN, 逆向, 破解