-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathConfig.cs
112 lines (102 loc) · 2.2 KB
/
Config.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
using System.Collections.Generic;
namespace MSC
{
public class Capture
{
public string Redirect { set; get; }
public string Regex { set; get; }
public bool RemoveLines { set; get; }
public bool RemoveSpaseChars { set; get; }
public bool Remove2SpaseChars { set; get; }
public bool UseCookies { set; get; }
public string[] Lable;
public int MaxMatchs { set; get; }
}
public class Config
{
public int MaxRedirects { set; get; }
public bool AllowAutoRedirect { set; get; }
public List<Hash.HashType> Varible = new List<Hash.HashType>();
public void AddAuthorization(string input)
{
Headers += "Authorization: Basic " + Hash.Hashs.StringToBase64(input) + "|";
}
public void AddHeader(string input)
{
Headers += input + "|";
}
public string SourceSuccess
{
set;
get;
}
public string DataSet
{
set;
get;
}
public string Cookies
{
set;
get;
}
public string Headers
{
set;
get;
}
public string PostData
{
set;
get;
}
public string Referer
{
set;
get;
}
public string LoginURL
{
set;
get;
}
public string UserAgent
{
set;
get;
}
public string ContectType
{
set;
get;
}
public bool KeepAlive
{
set;
get;
}
public Method Method
{
set;
get;
}
public bool Contains
{
set;
get;
}
public bool DecompressionGZip
{
set;
get;
}
public int TimeOut = 0;
}
public enum Method
{
POST,
GET,
PUT
}
}