Guest User

Untitled

a guest
Dec 9th, 2018
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 13.96 KB | None | 0 0
  1. // Decompiled with JetBrains decompiler
  2. // Type: DAC_v4.DAC
  3. // Assembly: DAC v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. // MVID: ADCD26C7-7115-49CB-A171-B101A2567B86
  5. // Assembly location: C:\Users\xD\Desktop\DAC v4\DAC v4.exe
  6.  
  7. using MetroFramework;
  8. using MetroFramework.Controls;
  9. using MetroFramework.Forms;
  10. using Microsoft.CSharp.RuntimeBinder;
  11. using Newtonsoft.Json.Linq;
  12. using System;
  13. using System.Collections.Generic;
  14. using System.ComponentModel;
  15. using System.Diagnostics;
  16. using System.Drawing;
  17. using System.Net;
  18. using System.Runtime.CompilerServices;
  19. using System.Text.RegularExpressions;
  20. using System.Threading;
  21. using System.Windows.Forms;
  22.  
  23. namespace DAC_v4
  24. {
  25.   public class DAC : MetroForm
  26.   {
  27.     public string[] proxies = new WebClient().DownloadString("https://proxyscrape.com/proxies/HTTP_Working_Proxies.txt").Split('\n');
  28.     public string fileName = string.Format("tokens/{0:yyyy-MM-dd_HH-mm-ss}.txt", (object) DateTime.Now);
  29.     private IContainer components = (IContainer) null;
  30.     private MetroButton start;
  31.     private MetroLabel label;
  32.     private MetroTextBox username;
  33.     private MetroCheckBox random;
  34.     private MetroTextBox metroTextBox1;
  35.     private MetroTextBox invite;
  36.     private MetroLabel metroLabel1;
  37.     private MetroCheckBox metroCheckBox2;
  38.     private MetroButton getProxies;
  39.  
  40.     public DAC()
  41.     {
  42.       this.InitializeComponent();
  43.       Control.CheckForIllegalCrossThreadCalls = false;
  44.       Process.Start("https://www.youtube.com/Lemons1337?sub_confirmation=1");
  45.     }
  46.  
  47.     private void metroLabel1_Click(object sender, EventArgs e)
  48.     {
  49.     }
  50.  
  51.     private void metroTextBox1_Click(object sender, EventArgs e)
  52.     {
  53.     }
  54.  
  55.     private void metroCheckBox1_CheckedChanged(object sender, EventArgs e)
  56.     {
  57.       switch (this.random.CheckState)
  58.       {
  59.         case CheckState.Unchecked:
  60.         case CheckState.Indeterminate:
  61.           this.username.Enabled = true;
  62.           break;
  63.         case CheckState.Checked:
  64.           this.username.Enabled = false;
  65.           break;
  66.       }
  67.     }
  68.  
  69.     private void metroTextBox1_Click_1(object sender, EventArgs e)
  70.     {
  71.     }
  72.  
  73.     private void start_Click(object sender, EventArgs e)
  74.     {
  75.       string upper = this.start.Text.ToUpper();
  76.       if (!(upper == "START"))
  77.       {
  78.         if (!(upper == "STOP"))
  79.           return;
  80.         this.start.Text = "Start";
  81.       }
  82.       else
  83.       {
  84.         this.start.Text = "Stop";
  85.         new Thread((ThreadStart) (() => this.startThreads()))
  86.         {
  87.           IsBackground = true
  88.         }.Start();
  89.       }
  90.     }
  91.  
  92.     public string createAccount(string username, string invite, string host, int port)
  93.     {
  94.       if (this.start.Text.ToUpper() == "START")
  95.         return (string) null;
  96.       string address = "https://discordapp.com/api/auth/register";
  97.       WebClient webClient = new WebClient();
  98.       webClient.Proxy = (IWebProxy) new WebProxy(host, port);
  99.       string data = "{\"username\":\"" + username + "\",\"invite\":" + invite + ",\"consent\":true,\"captcha_key\":null}";
  100.       webClient.Headers[HttpRequestHeader.ContentType] = "application/json";
  101.       try
  102.       {
  103.         object obj1 = (object) JObject.Parse(webClient.UploadString(address, data));
  104.         // ISSUE: reference to a compiler-generated field
  105.         if (DAC.\u003C\u003Eo__6.\u003C\u003Ep__2 == null)
  106.         {
  107.           // ISSUE: reference to a compiler-generated field
  108.           DAC.\u003C\u003Eo__6.\u003C\u003Ep__2 = CallSite<Func<CallSite, object, string>>.Create(Binder.Convert(CSharpBinderFlags.None, typeof (string), typeof (DAC)));
  109.         }
  110.         // ISSUE: reference to a compiler-generated field
  111.         // ISSUE: variable of the null type
  112.         __Null target1 = DAC.\u003C\u003Eo__6.\u003C\u003Ep__2.Target;
  113.         // ISSUE: reference to a compiler-generated field
  114.         CallSite<Func<CallSite, object, string>> p2 = DAC.\u003C\u003Eo__6.\u003C\u003Ep__2;
  115.         // ISSUE: reference to a compiler-generated field
  116.         if (DAC.\u003C\u003Eo__6.\u003C\u003Ep__1 == null)
  117.         {
  118.           // ISSUE: reference to a compiler-generated field
  119.           DAC.\u003C\u003Eo__6.\u003C\u003Ep__1 = CallSite<Func<CallSite, object, object>>.Create(Binder.InvokeMember(CSharpBinderFlags.None, "ToString", (IEnumerable<System.Type>) null, typeof (DAC), (IEnumerable<CSharpArgumentInfo>) new CSharpArgumentInfo[1]
  120.           {
  121.             CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string) null)
  122.           }));
  123.         }
  124.         // ISSUE: reference to a compiler-generated field
  125.         // ISSUE: variable of the null type
  126.         __Null target2 = DAC.\u003C\u003Eo__6.\u003C\u003Ep__1.Target;
  127.         // ISSUE: reference to a compiler-generated field
  128.         CallSite<Func<CallSite, object, object>> p1 = DAC.\u003C\u003Eo__6.\u003C\u003Ep__1;
  129.         // ISSUE: reference to a compiler-generated field
  130.         if (DAC.\u003C\u003Eo__6.\u003C\u003Ep__0 == null)
  131.         {
  132.           // ISSUE: reference to a compiler-generated field
  133.           DAC.\u003C\u003Eo__6.\u003C\u003Ep__0 = CallSite<Func<CallSite, object, object>>.Create(Binder.GetMember(CSharpBinderFlags.None, "token", typeof (DAC), (IEnumerable<CSharpArgumentInfo>) new CSharpArgumentInfo[1]
  134.           {
  135.             CSharpArgumentInfo.Create(CSharpArgumentInfoFlags.None, (string) null)
  136.           }));
  137.         }
  138.         // ISSUE: reference to a compiler-generated field
  139.         // ISSUE: reference to a compiler-generated field
  140.         object obj2 = ((Func<CallSite, object, object>) DAC.\u003C\u003Eo__6.\u003C\u003Ep__0.Target).Invoke((CallSite) DAC.\u003C\u003Eo__6.\u003C\u003Ep__0, obj1);
  141.         object obj3 = ((Func<CallSite, object, object>) target2).Invoke((CallSite) p1, obj2);
  142.         string str = ((Func<CallSite, object, string>) target1).Invoke((CallSite) p2, obj3);
  143.         this.metroTextBox1.AppendText(str + "\r\n");
  144.         System.IO.File.AppendAllText(this.fileName, str + "\r\n");
  145.       }
  146.       catch (Exception ex)
  147.       {
  148.       }
  149.       new Thread((ThreadStart) (() => this.sendAnother()))
  150.       {
  151.         IsBackground = true
  152.       }.Start();
  153.       return (string) null;
  154.     }
  155.  
  156.     public string getName()
  157.     {
  158.       return Regex.Replace(Convert.ToBase64String(Guid.NewGuid().ToByteArray()).Substring(0, 12), "[^0-9A-Za-z]+", "");
  159.     }
  160.  
  161.     private void metroTextBox2_Click(object sender, EventArgs e)
  162.     {
  163.     }
  164.  
  165.     public string sendAnother()
  166.     {
  167.       try
  168.       {
  169.         string u = this.random.Checked ? this.getName() : this.username.Text;
  170.         string i = this.metroCheckBox2.Checked ? "\"" + this.invite.Text + "\"" : "null";
  171.         string str = this.proxies[new Random().Next(this.proxies.Length)].ToString();
  172.         string h = str.Split(':')[0];
  173.         int p2 = int.Parse(str.Split(':')[1]);
  174.         new Thread((ThreadStart) (() => this.createAccount(u, i, h, p2)))
  175.         {
  176.           IsBackground = true
  177.         }.Start();
  178.       }
  179.       catch (Exception ex)
  180.       {
  181.       }
  182.       return (string) null;
  183.     }
  184.  
  185.     private void metroCheckBox1_CheckedChanged_1(object sender, EventArgs e)
  186.     {
  187.       switch (this.metroCheckBox2.CheckState)
  188.       {
  189.         case CheckState.Unchecked:
  190.         case CheckState.Indeterminate:
  191.           this.invite.Enabled = false;
  192.           break;
  193.         case CheckState.Checked:
  194.           this.invite.Enabled = true;
  195.           break;
  196.       }
  197.     }
  198.  
  199.     public string startThreads()
  200.     {
  201.       int num = (int) MessageBox.Show("Started Account Creator");
  202.       string u = this.random.Checked ? this.getName() : this.username.Text;
  203.       string i = this.metroCheckBox2.Checked ? "\"" + this.invite.Text + "\"" : "null";
  204.       for (int index = 0; index < 500; ++index)
  205.       {
  206.         try
  207.         {
  208.           string str = this.proxies[new Random().Next(this.proxies.Length)].ToString();
  209.           string h = str.Split(':')[0];
  210.           int p2 = int.Parse(str.Split(':')[1]);
  211.           new Thread((ThreadStart) (() => this.createAccount(u, i, h, p2)))
  212.           {
  213.             IsBackground = true
  214.           }.Start();
  215.         }
  216.         catch (Exception ex)
  217.         {
  218.         }
  219.       }
  220.       return (string) null;
  221.     }
  222.  
  223.     private void DAC_Load(object sender, EventArgs e)
  224.     {
  225.     }
  226.  
  227.     private void getProxies_Click(object sender, EventArgs e)
  228.     {
  229.       OpenFileDialog openFileDialog = new OpenFileDialog();
  230.       openFileDialog.Filter = "Text Files (*.txt)|*.txt";
  231.       openFileDialog.Title = "Select your proxy list";
  232.       if (openFileDialog.ShowDialog() != DialogResult.OK)
  233.         return;
  234.       this.proxies = System.IO.File.ReadAllText(openFileDialog.FileName.ToString()).Split('\n');
  235.       int num = (int) MessageBox.Show("Proxy file selected!");
  236.     }
  237.  
  238.     protected override void Dispose(bool disposing)
  239.     {
  240.       if (disposing && this.components != null)
  241.         this.components.Dispose();
  242.       base.Dispose(disposing);
  243.     }
  244.  
  245.     private void InitializeComponent()
  246.     {
  247.       ComponentResourceManager componentResourceManager = new ComponentResourceManager(typeof (DAC));
  248.       this.start = new MetroButton();
  249.       this.label = new MetroLabel();
  250.       this.username = new MetroTextBox();
  251.       this.random = new MetroCheckBox();
  252.       this.metroTextBox1 = new MetroTextBox();
  253.       this.invite = new MetroTextBox();
  254.       this.metroLabel1 = new MetroLabel();
  255.       this.metroCheckBox2 = new MetroCheckBox();
  256.       this.getProxies = new MetroButton();
  257.       this.SuspendLayout();
  258.       this.start.Highlight = true;
  259.       this.start.Location = new Point(48, 345);
  260.       this.start.Name = "start";
  261.       this.start.Size = new Size(315, 60);
  262.       this.start.TabIndex = 0;
  263.       this.start.Text = "Start";
  264.       this.start.Theme = MetroThemeStyle.Dark;
  265.       this.start.Click += new EventHandler(this.start_Click);
  266.       this.label.AutoSize = true;
  267.       this.label.BackColor = Color.White;
  268.       this.label.ForeColor = SystemColors.ControlText;
  269.       this.label.Location = new Point(48, 296);
  270.       this.label.Name = "label";
  271.       this.label.Size = new Size(75, 19);
  272.       this.label.Style = MetroColorStyle.Teal;
  273.       this.label.TabIndex = 1;
  274.       this.label.Text = "Username: ";
  275.       this.label.Theme = MetroThemeStyle.Dark;
  276.       this.label.Click += new EventHandler(this.metroLabel1_Click);
  277.       this.username.Location = new Point(129, 296);
  278.       this.username.MaxLength = 30;
  279.       this.username.Name = "username";
  280.       this.username.Size = new Size(234, 23);
  281.       this.username.TabIndex = 2;
  282.       this.username.Text = "allthefoxes";
  283.       this.username.Theme = MetroThemeStyle.Dark;
  284.       this.username.Click += new EventHandler(this.metroTextBox1_Click);
  285.       this.random.AutoSize = true;
  286.       this.random.Location = new Point(48, 213);
  287.       this.random.Name = "random";
  288.       this.random.Size = new Size(129, 15);
  289.       this.random.TabIndex = 3;
  290.       this.random.Text = "Random Usernames";
  291.       this.random.Theme = MetroThemeStyle.Dark;
  292.       this.random.UseVisualStyleBackColor = true;
  293.       this.random.CheckedChanged += new EventHandler(this.metroCheckBox1_CheckedChanged);
  294.       this.metroTextBox1.Location = new Point(416, 38);
  295.       this.metroTextBox1.Multiline = true;
  296.       this.metroTextBox1.Name = "metroTextBox1";
  297.       this.metroTextBox1.ScrollBars = ScrollBars.Vertical;
  298.       this.metroTextBox1.Size = new Size(495, 486);
  299.       this.metroTextBox1.TabIndex = 4;
  300.       this.metroTextBox1.Theme = MetroThemeStyle.Dark;
  301.       this.invite.Location = new Point(96, 250);
  302.       this.invite.MaxLength = 20;
  303.       this.invite.Name = "invite";
  304.       this.invite.Size = new Size(267, 23);
  305.       this.invite.TabIndex = 6;
  306.       this.invite.Text = "qJq5C";
  307.       this.invite.Theme = MetroThemeStyle.Dark;
  308.       this.invite.Click += new EventHandler(this.metroTextBox2_Click);
  309.       this.metroLabel1.AutoSize = true;
  310.       this.metroLabel1.Location = new Point(48, 254);
  311.       this.metroLabel1.Name = "metroLabel1";
  312.       this.metroLabel1.Size = new Size(42, 19);
  313.       this.metroLabel1.TabIndex = 7;
  314.       this.metroLabel1.Text = "Invite:";
  315.       this.metroLabel1.Theme = MetroThemeStyle.Dark;
  316.       this.metroCheckBox2.AutoSize = true;
  317.       this.metroCheckBox2.Checked = true;
  318.       this.metroCheckBox2.CheckState = CheckState.Checked;
  319.       this.metroCheckBox2.Location = new Point(48, 180);
  320.       this.metroCheckBox2.Name = "metroCheckBox2";
  321.       this.metroCheckBox2.Size = new Size(97, 15);
  322.       this.metroCheckBox2.TabIndex = 5;
  323.       this.metroCheckBox2.Text = "Custom Invite";
  324.       this.metroCheckBox2.Theme = MetroThemeStyle.Dark;
  325.       this.metroCheckBox2.UseVisualStyleBackColor = true;
  326.       this.metroCheckBox2.CheckedChanged += new EventHandler(this.metroCheckBox1_CheckedChanged_1);
  327.       this.getProxies.Highlight = true;
  328.       this.getProxies.Location = new Point(209, 180);
  329.       this.getProxies.Name = "getProxies";
  330.       this.getProxies.Size = new Size(154, 48);
  331.       this.getProxies.TabIndex = 10;
  332.       this.getProxies.Text = "Select Proxies (optional)";
  333.       this.getProxies.Theme = MetroThemeStyle.Dark;
  334.       this.getProxies.Click += new EventHandler(this.getProxies_Click);
  335.       this.AutoScaleDimensions = new SizeF(6f, 13f);
  336.       this.AutoScaleMode = AutoScaleMode.Font;
  337.       this.ClientSize = new Size(934, 547);
  338.       this.Controls.Add((Control) this.getProxies);
  339.       this.Controls.Add((Control) this.metroLabel1);
  340.       this.Controls.Add((Control) this.invite);
  341.       this.Controls.Add((Control) this.metroCheckBox2);
  342.       this.Controls.Add((Control) this.metroTextBox1);
  343.       this.Controls.Add((Control) this.random);
  344.       this.Controls.Add((Control) this.username);
  345.       this.Controls.Add((Control) this.label);
  346.       this.Controls.Add((Control) this.start);
  347.       this.Icon = (Icon) componentResourceManager.GetObject("$this.Icon");
  348.       this.Name = nameof (DAC);
  349.       this.Text = "Discord Account Creator";
  350.       this.Theme = MetroThemeStyle.Dark;
  351.       this.Load += new EventHandler(this.DAC_Load);
  352.       this.ResumeLayout(false);
  353.       this.PerformLayout();
  354.     }
  355.   }
  356. }
Add Comment
Please, Sign In to add comment