-
Notifications
You must be signed in to change notification settings - Fork 283
/
settings.py
97 lines (89 loc) · 4.05 KB
/
settings.py
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
Tunna_Defaults = {
# Default Tunna Settings
'bufferSize': 1024*8, # Size of Socket Buffer
'verbose': False, # Verbose Print
'ping_delay': 0.5, # Delay between requests
'interval': 0.2,
'bind': '0.0.0.0', # Change to localhost for binding Tunna to localport
'useSocks': True, # Will use Socks Proxy if available
'ignoreServerCert': True,
# Default Remote Settings
'local_port': 0,
'remote_port': 0,
'remote_ip': "127.0.0.1",
# Start quering the socket first (eg. for SSH)
'start_p_thread': False,
# Set Up a Local Proxy
'upProxy': None, # autodetect
'upProxyAuth': None,
#! Not to be changed
'ProxyFileWin': 'lib/socks4aServer.exe',
'ProxyFilePy': 'lib/socks4aServer.py',
#! HTTP headers
'Cookie': '',
}
Webserver_Defaults = {
# Default WebServer Settings
'hostname': "0.0.0.0", # Change to localhost for local connection
'webServerPort': 8000,
'ssl': False,
# For Debug purposes
'WDEBUG': 2,
'USEFILE': False,
# SSL Certificate
'certificate': b'''
-----BEGIN PRIVATE KEY-----
MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQDTZfKj8Ipq+POr
yQxS8ybw9KCpowCOTdmMq6mXrA35Q8BCZ6xsRImMGWIJ5OTUCw6ynOJxDo9+6XvX
YVrqJoPy/452n2NLX0Yq2RhHSD3RKwi/KjVKLIjvplHPxwYI/gotLMbzvRPd1Y/3
rDJXlxIeU+lFo7K1kXwz4G3u0AivIMR7izsMyvDfSXW4G98/ESogfM4a9LtgnMHL
Dj1iB1ruUMbPzYAmJ4j6Tq8dGUZ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