· 8 years ago · Dec 28, 2017, 10:50 PM
1 bool sss = false;
2 private void button8_Click(object sender, EventArgs e)
3 {
4 sss = true;
5 //Unable to locate an account that matches that info. Are you SURE that was the email and GrowID you made? It's not case sensitive.
6 // That email doesn't match the one on that GrowID. Come on, THINK. Which one did you enter when you made the GrowID?!
7 webBrowser1.Navigate("https://growtopiagame.com/account");
8 }
9 Random r = new Random();
10 private string RandomString(int length)
11 {
12 const string pool = "abcdefghijklmnopqrstuvwxyz0123456789";
13 var builder = new StringBuilder();
14
15 for (var i = 0; i < length; i++)
16 {
17 var c = pool[r.Next(0, pool.Length)];
18 builder.Append(c);
19 }
20
21 return builder.ToString();
22 }
23 private async void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
24 {
25 await Task.Delay(300);
26
27 if (sss)
28 {
29 sss = false;
30 foreach (HtmlElement he in webBrowser1.Document.All.GetElementsByName("email"))
31 he.SetAttribute("value", RandomString(8) + "@gmail.com");
32
33 foreach (HtmlElement he in webBrowser1.Document.All.GetElementsByName("password"))
34 he.SetAttribute("value", RandomString(8));
35
36 foreach (HtmlElement he in webBrowser1.Document.All.GetElementsByName("name"))
37 he.SetAttribute("value", textBox1.Text);
38
39 await Task.Delay(75);
40 foreach (HtmlElement el in webBrowser1.Document.All)
41 if (el.GetAttribute("type").Equals("submit"))
42 el.InvokeMember("Click");
43
44
45 }
46 else
47 {
48 string s = webBrowser1.DocumentText;
49
50 if (s.Contains("Unable to locate an account that matches"))
51 MessageBox.Show("Account " + textBox1.Text + " doesn't exist");
52 else if(s.Contains(@"Which one did you enter when you made the GrowID?!"))
53 MessageBox.Show("Account " + textBox1.Text + " exists");
54 else
55 MessageBox.Show("lol error idk");
56
57 }
58
59
60 }