-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cpp
More file actions
209 lines (200 loc) · 4.31 KB
/
main.cpp
File metadata and controls
209 lines (200 loc) · 4.31 KB
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
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
///////////////////////////////////////////
// TheOnionRouter(TOR)_master //
// V1.1 //
// By Bitpix(BTX) //
// Email:sergey0802058@gmail.com //
// VK:https://vk.com/id464962137 //
// Country:Russia //
//////////////////////////////////////////
//here everything is clear and without comment
#include <iostream>
#include <fstream>
using namespace std;
int Tor()
{
cout << "W########################################W" << endl
<< "W# TheOnionRouter(TOR)_master #W" << endl
<< "W# V1.1 #W" << endl
<< "W# By Bitpix(BTX) #W" << endl
<< "W# Email:sergey0802058@gmail.com #W" << endl
<< "W# VK:https://vk.com/id464962137 #W" << endl
<< "W# Country:Russia #W" << endl
<< "W########################################W" << endl << endl << endl;
int number;
cout << "1) Install service TOR without torrc\n"
<< "2) Install service TOR with torcc\n"
<< "3) Stop service TOR\n"
<< "4) Start service TOR\n"
<< "5) Remove service TOR\n"
<< "6) Restart service TOR\n"
<< "7) WinHTTP show TOR proxy\n"
<< "8) WinHTTP reset TOR proxy\n"
<< "9) WinHTTP import TOR proxy InternetExplorer\n"
<< "10) Listen TOR port\n"
<< "11) Install torcc\n"
<< "12) Remove torcc\n"
<< "0) Exit\n";
cout << "Enter" << ": ";
cin >> number;
system("cls");
if (number < 0 || number > 12)
{
cout << "Error" << endl;
system("pause");
system("cls");
return Tor();
}
switch (number)
{
case 1:
{
system("cmd /c \"C:\\Tor\\tor.exe --service install");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 2:
{
system("cmd /c \"C:\\Tor\\tor.exe --service install -options -f \"C:\\Tor\\torrc");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 3:
{
system("cmd /c \"C:\\Tor\\tor.exe --service stop");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 4:
{
system("cmd /c \"C:\\Tor\\tor.exe --service start");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 5:
{
system("cmd /c \"C:\\Tor\\tor.exe --service remove");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 6:
{
system("cmd /c \"C:\\Tor\\tor.exe --service stop");
system("cmd /c \"C:\\Tor\\tor.exe --service start");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 7:
{
system("netsh winhttp show proxy");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 8:
{
system("netsh winhttp reset proxy");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 9:
{
system("netsh winhttp import proxy source=ie");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 10:
{
system("netstat -aon | findstr :9050");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 11:
{
ofstream ofs("C:\\Tor\\torcc");
ofs.close();
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 12:
{
system("DEL / F / S / Q / A \"C:\\Tor\\torcc");
cout << "Completed" << endl;
system("pause");
system("cls");
return Tor();
break;
}
case 00:
{
cout << "Good Bye\n";
system("pause");
system("cls");
return 0;
break;
}
}
}
int data()
{
ifstream file("C:\\Data\\Tor\\geoip");
if (file.is_open())
return Tor();
else
{
cout << "No Data" << endl;
system("pause");
system("cls");
system("\"xcopy Data C:\\Data /S /E \"");
system("pause");
system("cls");
return Tor();
}
}
int main()
{
ifstream file("C:\\Tor\\tor.exe");
if (file.is_open())
return data();
else
{
cout << "No Tor" << endl;
system("pause");
system("cls");
system("\"xcopy Tor C:\\Tor /S /E \"");
system("pause");
system("cls");
return data();
}
}