Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Online C# Editor for free
- // Write, Edit and Run your C# code using C# Online Compiler
- using System;
- using System;
- using System.Diagnostics;
- using System.IO;
- using System.Net;
- using System.Reflection;
- using System.Security.Cryptography;
- using System.Text;
- using System.Threading;
- using Microsoft.Win32;
- public class HelloWorld
- {
- // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
- public static string DecryptString(string cipherText, byte[] key, byte[] iv)
- {
- Aes aes = Aes.Create();
- aes.Mode = CipherMode.CBC;
- byte[] array = new byte[32];
- Array.Copy(key, 0, array, 0, 32);
- aes.Key = array;
- aes.IV = iv;
- MemoryStream memoryStream = new MemoryStream();
- ICryptoTransform transform = aes.CreateDecryptor();
- CryptoStream cryptoStream = new CryptoStream(memoryStream, transform, CryptoStreamMode.Write);
- string result = string.Empty;
- try
- {
- byte[] array2 = Convert.FromBase64String(cipherText);
- cryptoStream.Write(array2, 0, array2.Length);
- cryptoStream.FlushFinalBlock();
- byte[] array3 = memoryStream.ToArray();
- result = Encoding.ASCII.GetString(array3, 0, array3.Length);
- }
- finally
- {
- memoryStream.Close();
- cryptoStream.Close();
- }
- return result;
- }
- // Token: 0x06000002 RID: 2 RVA: 0x00002118 File Offset: 0x00000318
- public static string get_acc()
- {
- string[] array = {"iWfIxaz9ys2/+cspNJJn2S7YaqoFL+0QEC5fsiyLEd4=", "mmD4BuNTEnycF/zVYfEj5zYYOzeygAMX0qnIbGjioLs="};
- byte[] bytes = Convert.FromBase64String("MzlkdmsyaiFkOWoxc2Q=");
- string string2 = Encoding.UTF8.GetString(bytes);
- SHA256 sha = SHA256.Create();
- byte[] key = sha.ComputeHash(Encoding.ASCII.GetBytes(string2));
- byte[] iv = new byte[]
- {
- 1,
- 5,
- 10,
- 68,
- 14,
- 120,
- 147,
- 110,
- 76,
- 17,
- 99,
- 33,
- 91,
- 176,
- 136,
- 13
- };
- string str = DecryptString(array[0], key, iv);
- string str2 = DecryptString(array[1], key, iv);
- return str + str2;
- }
- public static void Main(string[] args)
- {
- Console.WriteLine (get_acc());
- }
- }
Add Comment
Please, Sign In to add comment