osori

Untitled

Oct 21st, 2024
15
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.06 KB | None | 0 0
  1. // Online C# Editor for free
  2. // Write, Edit and Run your C# code using C# Online Compiler
  3.  
  4. using System;
  5. using System;
  6. using System.Diagnostics;
  7. using System.IO;
  8. using System.Net;
  9. using System.Reflection;
  10. using System.Security.Cryptography;
  11. using System.Text;
  12. using System.Threading;
  13. using Microsoft.Win32;
  14. public class HelloWorld
  15. {
  16. // Token: 0x06000001 RID: 1 RVA: 0x00002050 File Offset: 0x00000250
  17.     public static string DecryptString(string cipherText, byte[] key, byte[] iv)
  18.     {
  19.         Aes aes = Aes.Create();
  20.         aes.Mode = CipherMode.CBC;
  21.         byte[] array = new byte[32];
  22.         Array.Copy(key, 0, array, 0, 32);
  23.         aes.Key = array;
  24.         aes.IV = iv;
  25.         MemoryStream memoryStream = new MemoryStream();
  26.         ICryptoTransform transform = aes.CreateDecryptor();
  27.         CryptoStream cryptoStream = new CryptoStream(memoryStream, transform, CryptoStreamMode.Write);
  28.         string result = string.Empty;
  29.         try
  30.         {
  31.             byte[] array2 = Convert.FromBase64String(cipherText);
  32.             cryptoStream.Write(array2, 0, array2.Length);
  33.             cryptoStream.FlushFinalBlock();
  34.             byte[] array3 = memoryStream.ToArray();
  35.             result = Encoding.ASCII.GetString(array3, 0, array3.Length);
  36.         }
  37.         finally
  38.         {
  39.             memoryStream.Close();
  40.             cryptoStream.Close();
  41.         }
  42.         return result;
  43.     }
  44.  
  45.         // Token: 0x06000002 RID: 2 RVA: 0x00002118 File Offset: 0x00000318
  46.     public static string get_acc()
  47.     {
  48.         string[] array = {"iWfIxaz9ys2/+cspNJJn2S7YaqoFL+0QEC5fsiyLEd4=", "mmD4BuNTEnycF/zVYfEj5zYYOzeygAMX0qnIbGjioLs="};
  49.         byte[] bytes = Convert.FromBase64String("MzlkdmsyaiFkOWoxc2Q=");
  50.         string string2 = Encoding.UTF8.GetString(bytes);
  51.         SHA256 sha = SHA256.Create();
  52.         byte[] key = sha.ComputeHash(Encoding.ASCII.GetBytes(string2));
  53.         byte[] iv = new byte[]
  54.         {
  55.             1,
  56.             5,
  57.             10,
  58.             68,
  59.             14,
  60.             120,
  61.             147,
  62.             110,
  63.             76,
  64.             17,
  65.             99,
  66.             33,
  67.             91,
  68.             176,
  69.             136,
  70.             13
  71.         };
  72.         string str = DecryptString(array[0], key, iv);
  73.         string str2 = DecryptString(array[1], key, iv);
  74.         return str + str2;
  75.     }
  76.     public static void Main(string[] args)
  77.     {
  78.         Console.WriteLine (get_acc());
  79.     }
  80. }
Add Comment
Please, Sign In to add comment