コード例 #1
0
 private void ButtonClick(object sender, EventArgs e)
 {
     ValidateMail.Close();
     base.Show();
     EmailLbl.Text    = MailUser;
     PasswordLbl.Text = PasswordTxt.Text;
     UsernameLbl.Text = UsernameTxt.Text + RandomCharUser.Text;
     webBrowser1.Document.GetElementById("emailVerificationSaveBtn").InvokeMember("click");
     OutlogTxt.AppendText(DateTime.Now.ToString() + " : Verifying Confirmation... Please Wait...", Color.DimGray);
     Waitil(5);
     if (webBrowser1.Url.ToString() == "https://account.sonyentertainmentnetwork.com/liquid/security/unverified-user!input.action?e=emailVerification.error.notVerified")
     {
         OutlogTxt.AppendText(DateTime.Now.ToString() + " : Error, " + webBrowser1.Document.GetElementById("errorDivMessage").InnerText, Color.Red);
     }
     else
     {
         iTalk_Button_21.Enabled    = false;
         iTalk_Button_21.Text       = "Status : OK!";
         iTalk_HeaderLabel7.Visible = true;
         OutlogTxt.AppendText(DateTime.Now.ToString() + " : Done! Your Account has been successfully Generated!", Color.Green);
         OutlogTxt.AppendText(DateTime.Now.ToString() + " : Visit All of our other Apps on http://unknowndevteam.org !", Color.Green);
         EmailLbl.Text              = MailUser;
         PasswordLbl.Text           = PasswordTxt.Text;
         UsernameLbl.Text           = UsernameTxt.Text + RandomCharUser.Text;
         GeneratorPanel.SelectedTab = AboutPage;
     }
 }
コード例 #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            int BrowserVer, RegVal;

            // get the installed IE version
            using (WebBrowser Wb = new WebBrowser())
                BrowserVer = Wb.Version.Major;

            // set the appropriate IE version
            if (BrowserVer >= 11)
            {
                RegVal = 11001;
            }
            else if (BrowserVer == 10)
            {
                RegVal = 10001;
            }
            else if (BrowserVer == 9)
            {
                RegVal = 9999;
            }
            else if (BrowserVer == 8)
            {
                RegVal = 8888;
            }
            else
            {
                RegVal = 7000;
            }

            // set the actual key
            RegistryKey Key = Registry.CurrentUser.OpenSubKey(@"SOFTWARE\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_BROWSER_EMULATION", true);

            Key.SetValue(System.Diagnostics.Process.GetCurrentProcess().ProcessName + ".exe", RegVal, RegistryValueKind.DWord);
            Key.Close();

            webBrowser1.Navigate("https://account.sonyentertainmentnetwork.com/liquid/external/create-account!input.action?service-entity=psn&returnURL=https://secure.eu.playstation.com/psnauth/PSNPdcResponse/pdc/?returnURL%3Dhttps://secure.eu.playstation.com/psn/mypsn/competelanding/");
            webBrowser2.Navigate("http://email-fake.com");

            RandomCharUser.Text = "-" + Randomizer.RandomNumber(1, 9).ToString() + Randomizer.RandomString(2).ToLower();
            PasswordTxt.Text    = "azerty12";
            OutlogTxt.AppendText(DateTime.Now.ToString() + " : SEN Account Generator by Unknauwn Successfully Initialized!", Color.Green);
            GeneratorPanel.SelectedTab = SettingGenerator;
        }
コード例 #3
0
 private void SelectLanguage_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (SelectLanguage.SelectedIndex == 1)
     {
         iTalk_HeaderLabel1.Text  = "Pseudo :";
         iTalk_HeaderLabel10.Text = "Pseudo :";
         iTalk_HeaderLabel2.Text  = "Mdp :";
         iTalk_HeaderLabel6.Text  = "Mdp :";
         GenerateButton.Text      = "Generer le Compte";
         GenerateAgainButton.Text = "Generer Encore?";
         SettingPage.Text         = "Parametres Compte";
         AboutPage.Text           = "Infos Compte";
         SettingGenerator.Text    = "Parametres";
         iTalk_Button_21.Text     = "Verifier l'Email?";
         iTalk_HeaderLabel7.Text  = "Succesfully Generated!";
         iTalk_HeaderLabel12.Text = "Note : CFW 4.65 et Plus ont besoin de verifier l'Email.";
         HidePass.Text            = "Cacher?";
     }
     else
     {
         iTalk_HeaderLabel1.Text  = "Username :"******"Username :"******"Password :"******"Password :"******"Generate Account";
         GenerateAgainButton.Text = "Generate Again?";
         SettingPage.Text         = "Settings Account";
         AboutPage.Text           = "About Account";
         SettingGenerator.Text    = "Settings";
         iTalk_Button_21.Text     = "Verify Email?";
         iTalk_HeaderLabel7.Text  = "Generer avec Succes!";
         iTalk_HeaderLabel12.Text = "Note : CFW 4.65 and More need to Verify Email.";
         HidePass.Text            = "Hide?";
     }
     OutlogTxt.AppendText(DateTime.Now.ToString() + " : Language UI Changed!", Color.Green);
 }
コード例 #4
0
 private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
     if (webBrowser1.ReadyState == WebBrowserReadyState.Complete)
     {
         if (webBrowser1.Document.GetElementById("account_loginNameFieldError") != null)
         {
             Errors[0] = DateTime.Now.ToString() + " : Error, " + webBrowser1.Document.GetElementById("account_loginNameFieldError").InnerText;
         }
         else if (webBrowser1.Document.GetElementById("confirmPasswordFieldError") != null)
         {
             Errors[1] = DateTime.Now.ToString() + " : Error, " + webBrowser1.Document.GetElementById("confirmPasswordFieldError").InnerText;
         }
         else if (webBrowser1.Document.GetElementById("g-recaptcha-responseFieldError") != null)
         {
             Errors[2] = DateTime.Now.ToString() + " : Error, " + webBrowser1.Document.GetElementById("g-recaptcha-responseFieldError").InnerText;
         }
         else if (webBrowser1.Document.GetElementById("errorDivMessage") != null)
         {
             Errors[3] = DateTime.Now.ToString() + " : Error, " + webBrowser1.Document.GetElementById("errorDivMessage").InnerText;
         }
         if (webBrowser1.Url.ToString() != "https://account.sonyentertainmentnetwork.com/liquid/external/create-account!input.action?service-entity=psn&returnURL=https://secure.eu.playstation.com/psnauth/PSNPdcResponse/pdc/?returnURL%3Dhttps://secure.eu.playstation.com/psn/mypsn/competelanding/&cancelURL")
         {
             if (webBrowser1.Url.ToString().Contains("edit-profile"))
             {
                 this.Width = 494;
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Step 1 => OK!", Color.Green);
                 SetValue("handleFieldInput", UsernameTxt.Text + RandomCharUser.Text);
                 ClickOnButton("saveIdentityButton");
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Processing Step 2... Please Wait...", Color.DimGray);
             }
             else if (webBrowser1.Url.ToString().Contains("identity-security"))
             {
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Step 2 => OK!", Color.Green);
                 SetValue("firstNameField", Randomizer.RandomString(Randomizer.RandomNumber(5, 12)));
                 SetValue("lastNameField", Randomizer.RandomString(Randomizer.RandomNumber(5, 12)));
                 SetValue("securityQuestionListField", "Quel est votre lieu de naissance ?");
                 SetValue("securityAnswerField", Randomizer.RandomString(Randomizer.RandomNumber(5, 0x11)));
                 ClickOnButton("saveIdentityButton");
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Processing Step 3... Please Wait...", Color.DimGray);
             }
             else if (webBrowser1.Url.ToString().Contains("edit-location"))
             {
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Step 3 => OK!", Color.Green);
                 SetValue("address_address1Field_input", Randomizer.RandomString(Randomizer.RandomNumber(10, 0x13)));
                 SetValue("address_cityField_input", Randomizer.RandomString(Randomizer.RandomNumber(8, 14)));
                 SetValue("address_provinceField_input", Randomizer.RandomString(Randomizer.RandomNumber(5, 9)));
                 SetValue("address_zipCodeField_input", Randomizer.RandomNumber(0x2710, 0x16378).ToString());
                 ClickOnButton("saveLocationButton");
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Processing Step 4... Please Wait...", Color.DimGray);
             }
             else if (webBrowser1.Url.ToString().Contains("connect-billing!input.action"))
             {
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Step 4 => OK!", Color.Green);
                 webBrowser1.Document.InvokeScript("doNo");
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Processing Step 5... Please Wait...", Color.DimGray);
             }
             else if (webBrowser1.Url.ToString().Contains("connect-billing!no-billing.action"))
             {
                 webBrowser1.Navigate("https://account.sonyentertainmentnetwork.com/cam/devices/playstation/notify-settings!input.action");
             }
             else if (webBrowser1.Url.ToString().Contains("notify-settings"))
             {
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Step 5 => OK!", Color.Green);
                 ClickOnButton("notificationSettingsSaveBtn");
                 OutlogTxt.AppendText(DateTime.Now.ToString() + " : Processing Final Step... Please Wait...", Color.DimGray);
             }
             else if (webBrowser1.Url.ToString().Contains("unverified-user!input.action?m=psnUpgradeSuccess"))
             {
                 if (CFWQuestion.SelectedIndex == 0)
                 {
                     OutlogTxt.AppendText(DateTime.Now.ToString() + " : Done! Your Account has been successfully Generated!", Color.Green);
                     OutlogTxt.AppendText(DateTime.Now.ToString() + " : CFW 4.65+ => You have selected 'No', You don't need to Verify the Email : )", Color.Green);
                     EmailLbl.Text = MailUser;
                     iTalk_HeaderLabel7.Visible = true;
                     iTalk_Button_21.Enabled    = true;
                     PasswordLbl.Text           = PasswordTxt.Text;
                     UsernameLbl.Text           = UsernameTxt.Text + RandomCharUser.Text;
                     GeneratorPanel.SelectedTab = AboutPage;
                 }
                 else
                 {
                     iTalk_HeaderLabel7.Visible = true;
                     iTalk_Button_21.Enabled    = true;
                     EmailLbl.Text              = MailUser;
                     PasswordLbl.Text           = PasswordTxt.Text;
                     UsernameLbl.Text           = UsernameTxt.Text + RandomCharUser.Text;
                     GeneratorPanel.SelectedTab = AboutPage;
                     OutlogTxt.AppendText(DateTime.Now.ToString() + " : Alerte, CFW 4.65+ => You have selected 'Yes',  Please verify Email and Confirm it!", Color.Red);
                 }
             }
             else
             {
                 String[] ItemtoHide = new string[] { "blackHeaderBar", "topLogo", "marketingAreaSection", "signInLinkSection", "messageTargetDiv", "errorDiv", "createNewAccountHeaderTitle", "regLabel_SignInID", "account_loginNameFieldInput", "signInIdContextualHelp", "labelSignInIDExample", "regLabel_DateOfBirth", "div_dayDropDown", "div_monthDropDown", "div_yearDropDown", "regLabel_Gender", "genderMaleSection", "genderFemaleSection", "regLabel_Country", "regInput_Country", "regLabel_Language", "regInput_Language", "accountLanguage", "regLabel_CreatePassword", "account_password", "passwordContextualHelp", "passwordStrengthText", "passwordStrengthMeter", "account_passwordField", "regLabel_ConfirmPassword", "confirmPasswordField", "notificationSettingsWrapper", "termsOfServiceButton", "privacyButton", "dataWillBeChangeForAllLinkedServices", "regLabel_EULALegalBlurbMobile", "createAccountButtonSection", "footerContainer" };
                 foreach (String divstring in ItemtoHide)
                 {
                     webBrowser1.Document.GetElementById(divstring).Style = "display:none";
                 }
             }
         }
     }
 }
コード例 #5
0
        private void GenerateButton_Click(object sender, EventArgs e)
        {
            if (webBrowser1.ReadyState == WebBrowserReadyState.Complete)
            {
                try
                {
                    Mail = webBrowser2.Document.GetElementById("userName").GetAttribute("value");
                    //Domain = webBrowser2.Document.GetElementById("domainName").GetAttribute("selected value");
                    HtmlElement SelectedValue = webBrowser2.Document.GetElementById("domainName");
                    foreach (HtmlElement child in SelectedValue.All)
                    {
                        if (child.GetAttribute("tagName").Equals("OPTION") && child.GetAttribute("selected").Equals("True"))
                        {
                            Domain = child.GetAttribute("text");
                            break;
                        }
                    }

                    MailUser = Mail + Domain;
                    webBrowser1.Document.GetElementById("account_loginNameFieldInput").SetAttribute("value", MailUser);
                    webBrowser1.Document.GetElementById("dayDropDown").SetAttribute("value", Randomizer.RandomNumber(1, 0x1f).ToString());
                    webBrowser1.Document.GetElementById("monthDropDown").SetAttribute("value", Randomizer.RandomNumber(1, 12).ToString());
                    webBrowser1.Document.GetElementById("yearDropDown").SetAttribute("value", Randomizer.RandomNumber(0x79e, 0x7ca).ToString());
                    webBrowser1.Document.GetElementById("regInput_Country").SetAttribute("value", "FR");
                    webBrowser1.Document.GetElementById("account_loginNameFieldInput").SetAttribute("value", MailUser);
                    foreach (HtmlElement element in webBrowser1.Document.GetElementsByTagName("input"))
                    {
                        if (((element.GetAttribute("name") != string.Empty) && (element.GetAttribute("name").Length != 0)) && (element.GetAttribute("name") == "account.password"))
                        {
                            element.SetAttribute("value", PasswordTxt.Text);
                        }
                    }
                    webBrowser1.Document.GetElementById("confirmPasswordField").SetAttribute("value", PasswordTxt.Text);
                    object[] args = new object[] { MailUser, "account_loginNameFieldInput", PasswordTxt.Text, "account_password" };
                    webBrowser1.Document.InvokeScript("validatePasswordAJAX", args);

                    if (UsernameTxt.Text.Equals(String.Empty))
                    {
                        MessageBox.Show("Username Empty", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                    }
                    else if (PasswordTxt.Text.Equals(String.Empty))
                    {
                        MessageBox.Show("Password Empty", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                    }
                    else if (PasswordTxt.Lenght() < 8)
                    {
                        MessageBox.Show("Password lenght minimum is 8", "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Hand);
                    }
                    else
                    {
                        webBrowser1.Document.GetElementById("createAccountButton").InvokeMember("click");
                        OutlogTxt.AppendText(DateTime.Now.ToString() + " : Processing Step 1... Please Wait...", Color.DimGray);
                    }
                }
                catch (Exception ex)
                {
                    //MessageBox.Show(ex.ToString());
                    OutlogTxt.AppendText(DateTime.Now.ToString() + " : Error with Sony Website or GeneratorWebsite, Please wait few minutes and try again.", Color.Red);
                }
            }
            Waitil(5);
            if (Errors[0] != null)
            {
                OutlogTxt.AppendText(Errors[0], Color.Red);
            }
            else if (Errors[1] != null)
            {
                OutlogTxt.AppendText(Errors[1], Color.Red);
            }
            else if (Errors[2] != null)
            {
                OutlogTxt.AppendText(Errors[2], Color.Red);
            }
            else if (Errors[3] != null)
            {
                OutlogTxt.AppendText(Errors[3], Color.Red);
            }
        }