public void GoGoGadgetiFaith() { QuitDFU = true; DFUConnected = false; ResetDFUInstructions = true; iDetector(); //Shutdown iTunes... //Shell("cmd /c taskkill /f /t /im iTunes.exe", AppWinStyle.Hide) //Shell("cmd /c taskkill /f /t /im iTunesHelper.exe", AppWinStyle.Hide) //Go... MDIMain.TopMost = true; MDIMain.Activate(); if (iREB_mode == true) { MDIMain.TopMost = true; MDIMain.Activate(); PictureBox2.Visible = true; ProgressBar1.Visible = true; PictureBox2.BringToFront(); ProgressBar1.BringToFront(); BackgroundWorker2.RunWorkerAsync(); SaveToDisk("s-irecovery.exe", temppath + "\\s-irecovery.exe"); iRecovery_exploit(); MDIMain.TopMost = false; Interaction.MsgBox("Your device is now in a PWNED DFU state (black screen)." + Strings.Chr(13) + Strings.Chr(13) + "You may now launch iTunes and do SHIFT + Restore" + Strings.Chr(13) + "to the custom *signed* IPSW located on your desktop!", MsgBoxStyle.Information); CleaniREB(); } else { Run.MdiParent = MDIMain; Run.Show(); this.Dispose(); } }
private void About_Load(System.Object sender, System.EventArgs e) { this.Location = new Point(45, 82); Welcome.Button1.Visible = false; Welcome.goback.Visible = false; Loaded = false; MDIMain.Activate(); }
private void iBootleft(object sender, DeviceNotificationEventArgs args) { if (iLeft == true) { return; } try { //iBoot disconnected. MDIMain.Activate(); this.Invoke((MethodInvoker)Cleanup); } catch (Exception ex) { } }
private void oniPhoneDisconnect(object Sender, ConnectEventArgs args) { if (iLeft == true) { return; } try { DoIgiveAshit = true; MDIMain.Activate(); this.Invoke((MethodInvoker)Cleanup); } catch (Exception ex) { } }
private void PowerRangerStyle(System.Object sender, System.EventArgs e) { try { if (iLeft == true) { return; } DoIgiveAshit = true; Button1.Visible = false; DoIgiveAshit = true; MDIMain.Activate(); this.Invoke((MethodInvoker)Cleanup); } catch (Exception ex) { } }
private void oniPhoneConnected(object sender, ConnectEventArgs args) { if (iLeft == true) { return; } try { FileSystem.FreeFile(); if (DoIgiveAshit == true) { DoIgiveAshit = false; ECID = Conversion.Hex(iPhoneInterface.CopyValue("UniqueChipID")); while (!(ECID.Length == 16)) { ECID = "0" + ECID; } MDIMain.Activate(); this.Invoke((MethodInvoker)PluggedinGrabber); } } catch (Exception ex) { } }
static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //string path = tmpFolder; bool isAutoLogin = args != null && args.Count() > 1; // Sets the CurrentCulture property to U.S. English. Thread.CurrentThread.CurrentCulture = new CultureInfo("en-US"); AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException1; // Force all WinForms errors to go through handler Application.SetUnhandledExceptionMode(UnhandledExceptionMode.CatchException); Application.ThreadException += Application_ThreadException1; //RpohR9gbCkfm68WwyTTPFA == //RpohR9gCbkfm68WywTTPFA ==old string var = MosesClassLibrary.Security.Encryption.Decrypt("wAJGdHnaqS8HiltluSOXVQ=="); string var2 = MosesClassLibrary.Security.Encryption.Decrypt("cowkqU3RAp5NnBQP5LAEFg=="); string var3 = MosesClassLibrary.Security.Encryption.Decrypt("fUGCTv0mBudxLzAy/UpOnQ=="); string var3s = MosesClassLibrary.Security.Encryption.Decrypt("XGTBpxxY8m7A26IoVgykqg=="); string varg3 = MosesClassLibrary.Security.Encryption.Decrypt("zFinOJ+88wFMs2p5XphOxg=="); string varg4 = MosesClassLibrary.Security.Encryption.Decrypt("wAJGdHnaqS8HiltluSOXVQ=="); string var4 = MosesClassLibrary.Security.Encryption.Decrypt("Udn/YDBdmprYCzNIai3VLHXPXP+jepSe"); var gte = MosesClassLibrary.Security.Encryption.Encrypt("password@1234"); isCentralData = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["IsCentralData"]) == 1 ? true : false; #if true SystemName = System.Environment.MachineName; //var configPath = TaxSmartConfiguration.ConfigManager.GetServerName; //bool isFullPath = !isCentralData; TaxSmartConfiguration.ConfigManager config = new TaxSmartConfiguration.ConfigManager(TaxSmartConfiguration.ConfigManager.GetServerName); if (!config.IsDefaultFolderExist) { //Load Database Settings TaxSmartConfiguration.Winform.FrmDatabaseSetup frmDatabaseSetup = new TaxSmartConfiguration.Winform.FrmDatabaseSetup(TaxSmartConfiguration.ConfigManager.GetServerName); frmDatabaseSetup.ShowDialog(); if (!frmDatabaseSetup.Status) { return; } } if (!Logic.LoadConfig()) { return; } //MessageBox.Show(Logic.ConnectionString); //return; //if (Logic.LoadConfig2()) return; #else if (!MosesClassLibrary.Configuration2.SetConfigurationFilePath(path)) { TaxSmartSuite.Class.Common.setMessageBox("Error loading application information", ApplicationName, 3); return; } if (!CheckDatabaseSettings)//check if there { using (BondForm.FrmConnections frmdbocnnect = new BondForm.FrmConnections(Program.ApplicationName, "TaxSmartSuite", path)) { frmdbocnnect.ShowDialog(); if (!frmdbocnnect.retValue) { TaxSmartSuite.Class.Common.setMessageBox("Application Could not Connect to the Sever", ApplicationName, 3); return; } } } Logic.ConfigureSettings(); #endif stateCode = getStatecode(); //passwords = getUserPassword(); if (Program.isCentralData) { stationName = "Central Station"; stationCode = "0009"; } else { stationName = getStationName(); stationCode = getStationCode(); } //check station code //if (string.IsNullOrEmpty(stationCode)) //{ } //TaxSmartSuite.Class.Common.UpdateConfigurationFile(Logic.ConnectionString, "Collection.Properties.Settings.TaxSmartSuiteConnectionString"); //TaxSmartSuite.Class.Common.UpdateConfigurationFile(Logic.ConnectionString, "Collection.Properties.Settings.TaxSmartSuiteRevisedConnectionString"); //Guid g = Guid.NewGuid(); //customerID = string.Format("{0}{1}{2}", DateTime.Now.ToString("yyyyMMdd"), "-", custIDIncrementer); if (IsApplicationValid()) { var frm = new MDIMain(); NavBars.ManageNavBarControls(frm.navBarControl1, Program.ApplicationCode); SQL = "SELECT TOP (1) StateName FROM dbo.ViewDefaultSetupRevenueOffice2"; StateName = (new Logic()).ExecuteScalar(SQL); //Application.EnableVisualStyles(); //Application.SetCompatibleTextRenderingDefault(false); //check whether another instance of the program, then kill it //if (System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly().Location)).Count() > 1) System.Diagnostics.Process.GetCurrentProcess().Kill(); var login = new FrmLogin(isAutoLogin); if (isAutoLogin) { login.Username = args[0]; login.Password = args[1]; UserID = args[0]; //passwords = args[1]; } //run the menu form Application.Run(login); UserName = getUsername(); Userphone = getuserphone(); if (APP_CONNECTED) { Application.Run(new MDIMain()); } } else { MessageBox.Show("Application Not Accessible"); } //} //else //{ //} }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); string path = tmpFolder; if (!MosesClassLibrary.Configuration2.SetConfigurationFilePath(path)) { TaxSmartSuite.Class.Common.setMessageBox("Error loading application information", ApplicationName, 3); return; } Logic.ConfigureSettings(); //stateCode = getStatecode(); TaxSmartSuite.Class.Common.UpdateConfigurationFile(Logic.ConnectionString, "Control_Panel.Properties.Settings.TaxSmartSuiteConnectionString"); //call state code if (!IsgetStatecode()) { Common.setMessageBox("Please Set the Default State of the Application", Program.ApplicationName, 2); } if (IsApplicationValid()) { var frm = new MDIMain(); NavBars.ManageNavBarControls(frm.navBarControl1, Program.ApplicationCode); //SQL = "SELECT TOP (1) StateName FROM dbo.ViewDefaultSetupRevenueOffice2"; SQL = "select StateName from tblState where Flag=1"; StateName = (new Logic()).ExecuteScalar(SQL); //check whether another instance of the program, then kill it if (System.Diagnostics.Process.GetProcessesByName(System.IO.Path.GetFileNameWithoutExtension(System.Reflection.Assembly.GetEntryAssembly().Location)).Count() > 1) { System.Diagnostics.Process.GetCurrentProcess().Kill(); } //run the menu form Application.Run(new FrmLogin()); if (APP_CONNECTED) { Application.Run(new MDIMain()); } // SingleApplication.Run(new MDIMain()); ////SingleApplication.Run(frm); //} } else { MessageBox.Show("Application Not Accessible"); } }