Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2018
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 5.20 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.IO;
  7. using System.Linq;
  8. using System.Net;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12.  
  13. namespace RobloxFavoriteBot
  14. {
  15.     public partial class createacc : Form
  16.     {
  17.         public createacc()
  18.         {
  19.             InitializeComponent();
  20.         }
  21.  
  22.         string[] let = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K" };
  23.         string[] num = { "1", "2", "3", "4", "5", "6", "7", "8" };
  24.         public List<string> proxies1 = new List<string>();
  25.         void create(Uri address, string username, string pass)
  26.         {
  27.             HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://api.roblox.com/signup/v1");
  28.  
  29.             WebProxy myproxy = new WebProxy(address);
  30.             myproxy.BypassProxyOnLocal = false;
  31.             request.Proxy = myproxy;
  32.             request.Timeout = 1000;
  33.             request.KeepAlive = false;
  34.             request.Accept = "application/json, text/plain, */*";
  35.             request.Headers.Add("Origin", @"http://www.roblox.com");
  36.             request.UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36";
  37.             request.ContentType = "application/x-www-form-urlencoded";
  38.             request.Referer = "http://www.roblox.com/account/signupredir";
  39.             request.Headers.Set(HttpRequestHeader.AcceptEncoding, "gzip, deflate, br");
  40.             request.Headers.Set(HttpRequestHeader.AcceptLanguage, "en-US,en;q=0.8");
  41.             request.Headers.Set(HttpRequestHeader.Cookie, @"RBXSource=rbx_acquisition_time=11/20/2016 4:16:17 PM&rbx_acquisition_referrer=&rbx_medium=Direct&rbx_source=&rbx_campaign=&rbx_adgroup=&rbx_keyword=&rbx_matchtype=&rbx_send_info=1; RBXViralAcquisition=time=11/20/2016 4:16:17 PM&referrer=&originatingsite=; GuestData=UserID=-786589586; RBXMarketing=FirstHomePageVisit=1; _ga=GA1.2.1124241181.1479680169; __gads=ID=2f32111c4a67df96:T=1479932982:S=ALNI_MYQrw_wu6veOAM4iM4ic50xkPn2JA; RBXEventTrackerV2=CreateDate=11/24/2016 8:10:20 PM&rbxid=184130891&browserid=5729346186; rbx-ip=; RBXImageCache=timg=30336534386264332D616236352D343162662D383061312D3763656637363738396534642535302E3133362E3138312E3231362531312F32312F323031362031313A33343A303320504DE75B95121DA744C64A041A6EAC747C4F1DD27F41; __utmt_b=1; __utma=200924205.1124241181.1479680169.1480038327.1480042238.14; __utmb=200924205.26.10.1480042238; __utmc=200924205; __utmz=200924205.1480022244.12.3.utmcsr=web.roblox.com|utmccn=(referral)|utmcmd=referral|utmcct=/catalog/");
  42.  
  43.             request.Method = "POST";
  44.             request.ServicePoint.Expect100Continue = false;
  45.  
  46.             string body = @"isEligibleForHideAdsAbTest=False&username=" + username + "&password=" + pass + "&birthday=18+Sep+1998&gender=2&context=RollerCoasterSignupForm";
  47.             byte[] postBytes = System.Text.Encoding.UTF8.GetBytes(body);
  48.             request.ContentLength = postBytes.Length;
  49.  
  50.             try
  51.             {
  52.                 Stream stream = request.GetRequestStream();
  53.                 stream.Write(postBytes, 0, postBytes.Length);
  54.                 stream.Close();
  55.                 richTextBox1.AppendText("[" + DateTime.Now + "]" + " Created account - " + username + ":" + pass + "\n");
  56.             }
  57.             catch (Exception)
  58.             {
  59.                 richTextBox1.AppendText("Proxy failed.\n");
  60.             }
  61.            
  62.  
  63.         }
  64.         private void button1_Click(object sender, EventArgs e)
  65.         {
  66.             richTextBox1.AppendText("["+DateTime.Now+"]" + " Account creation has started, " + numericUpDown1.Value.ToString() + " accounts are in queue to be created.\n");
  67.  
  68.             using (StringReader reader = new StringReader(proxies.getProx()))
  69.             {
  70.                 string line;
  71.                 while ((line = reader.ReadLine()) != null)
  72.                 {
  73.                     proxies1.Add(line);
  74.                 }
  75.             }
  76.  
  77.             accCreate.Start();
  78.         }
  79.  
  80.         private void createacc_Load(object sender, EventArgs e)
  81.         {
  82.  
  83.         }
  84.         int count = 0;
  85.         private void accCreate_Tick(object sender, EventArgs e)
  86.         {
  87.             Random r = new Random();
  88.             int num2 = r.Next(0, 26);
  89.             char let1 = (char)('a' + num2);
  90.  
  91.             string user = let1 + r.Next(100000, 999999).ToString();
  92.             string pass = let[new Random().Next(0, let.Length)] + let[new Random().Next(0, let.Length)] + let[new Random().Next(0, let.Length)] + let[new Random().Next(0, let.Length)] + let[new Random().Next(0, let.Length)] + let[new Random().Next(0, let.Length)] + let[new Random().Next(0, let.Length)] + let[new Random().Next(0, let.Length)] + "_" + num[new Random().Next(0, num.Length)] + num[new Random().Next(0, num.Length)] + num[new Random().Next(0, num.Length)] + num[new Random().Next(0, num.Length)] + num[new Random().Next(0, num.Length)] + num[new Random().Next(0, num.Length)] + num[new Random().Next(0, num.Length)] + num[new Random().Next(0, num.Length)];
  93.             count++;
  94.             create(new Uri("http://"+proxies1[count]), user, pass);
  95.         }
  96.     }
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement