Author: flcksr
Language: .NET
Upload: 1:33 AM 06/02/2024
Platform Windows
Difficulty: 2.0
Quality: 3.7
Arch: x86
Description
Find the encryption key and write a keygen
jewdev on 1:05 AM 06/25/2024: since the website's staff don't accept my solution, this is the code for a keygen. using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Security.Cryptography; using System.Text; using System.Threading.Tasks; namespace CrackmesKeygen { internal class Program { private static string PrivateKey = "ie1x922ff4b3pTUAG1hH"; static void Main(string[] args) { Console.WriteLine("Paste generated key:"); string generatedKey = Console.ReadLine(); string correctKey = DecryptString(generatedKey, PrivateKey); Console.WriteLine("Correct key:"); Console.WriteLine(correctKey); Console.ReadLine(); } private static string DecryptString(string encryptedString, string key) { string decryptedText; using (Aes aes = Aes.Create()) { Rfc2898DeriveBytes rfc2898DeriveBytes = new Rfc2898DeriveBytes(key, new byte[] { 73, 118, 97, 110, 32, 77, 101, 100, 118, 101, 100, 101, 118 }, 1000); aes.Key = rfc2898DeriveBytes.GetBytes(aes.KeySize / 8); aes.IV = new byte[16]; ICryptoTransform decryptor = aes.CreateDecryptor(aes.Key, aes.IV); byte[] buffer = Convert.FromBase64String(encryptedString); using (MemoryStream memoryStream = new MemoryStream(buffer)) { using (CryptoStream cryptoStream = new CryptoStream(memoryStream, decryptor, CryptoStreamMode.Read)) { using (StreamReader streamReader = new StreamReader(cryptoStream)) { decryptedText = streamReader.ReadToEnd(); } } } } return decryptedText; } } }
You must me logged to submit a solution
Share how awesome the crack me was or where you struggle to finish it! Stay polite and do not spoil the solution/flag!
How would you rate the difficulty of this crackme ?
How would you rate the quality of this crackme ?