-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathData.cs
80 lines (79 loc) · 2.65 KB
/
Data.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
using System;
using System.Collections.Generic;
using System.IO;
using MSC.Brute;
namespace MSC
{
public class Data
{
private string[] SplitNow(string Item, char Sp)
{
string[] All = Item.Split(Sp);
return All;
}
public List<String> Combolist { set; get; }
public List<String> Proxylist { set; get; }
public Proxy Proxy { set; get; }
public int ChangeOfProxy { set; get; }
public int OfProxy { set; get; }
public int OfCombo { set; get; }
public char SplitAcount { set; get; }
public char SplitProxy { set; get; }
public int ChangedProxy {
set; get;
}
public void LoadComboList(string Filename)
{
OfCombo = 0;
string[] combo = File.ReadAllLines(Filename);
foreach (string item in combo)
{
string[] check = SplitNow(item, SplitAcount);
if (check.Length == 2)
Combolist.Add(item);
}
}
public void LoadProxyList(string Filename)
{
OfProxy = 0;
string[] proxy = File.ReadAllLines(Filename);
foreach (string item in proxy)
{
string[] check = SplitNow(item, SplitProxy);
if (check.Length == 2)
Proxylist.Add(item);
}
}
public void NextProxy()
{
if (Proxylist != null)
{
if (ChangedProxy >= ChangeOfProxy || ChangedProxy == 0)
if (OfProxy <= Proxylist.Count - 1)
{
OfProxy++;
string[] All = SplitNow(Proxylist[OfProxy], SplitProxy);
Proxy.Ip = All[0];
Proxy.Port = int.Parse(All[1]);
}
else if (OfProxy == Proxylist.Count - 1)
{
OfProxy = 0;
string[] All = SplitNow(Proxylist[OfProxy], SplitProxy);
Proxy.Ip = All[0];
Proxy.Port = int.Parse(All[1]);
}
else ChangedProxy++;
}
}
public Account GetNextAccout(int index)
{
Account account = new Account();
string[] userpass = Combolist[OfCombo].Split(SplitAcount);
account.Username = userpass[0];
account.Password = userpass[1];
OfCombo++;
return account;
}
}
}