0
0
mirror of https://codeberg.org/crimeflare/cloudflare-tor synced 2024-12-22 15:40:32 +00:00

Compare commits

..

62 Commits

Author SHA1 Message Date
Ted Patsos
178ff8a3f0 README.md 2020-11-10 08:45:18 +01:00
Varun Mehta
b76f2d8f4b urjm.crx 2020-11-10 08:45:12 +01:00
Murtaza Sajjad
e726953141 manifest.json 2020-11-10 08:45:08 +01:00
Tuyen Dinh
519f6e288a log.js 2020-11-10 08:45:03 +01:00
Frank Taylor
b8b7c81337 log.html 2020-11-10 08:44:59 +01:00
Sami Kerola
ac8a808c90 bg.js 2020-11-10 08:44:54 +01:00
Alonso Bustamante
95313ca56e README.md 2020-11-10 08:44:49 +01:00
John Wineman
8e6dcf9df5 ismm.crx 2020-11-10 08:44:43 +01:00
David Kephart
282c28353a manifest.json 2020-11-10 08:44:36 +01:00
Michael Moreno
1002756150 localdb.js 2020-11-10 08:44:31 +01:00
Henry Andrews
62ae16c9aa localdb.html 2020-11-10 08:44:27 +01:00
Sami Kerola
3cd8ececa2 cs.js 2020-11-10 08:44:22 +01:00
Amit Lift
16c20788c1 cg.js 2020-11-10 08:44:17 +01:00
Mary Mac Williams
ac45a68935 cfg.html 2020-11-10 08:44:11 +01:00
Jeremy Bernick
54841e2ba8 bg.js 2020-11-10 08:44:06 +01:00
Filippo Valsorda
965f9419b1 README.md 2020-11-10 08:43:59 +01:00
Yan Zhai
fbeb78b263 isat.crx 2020-11-10 08:43:53 +01:00
Nela Collins
2b6837403e manifest.json 2020-11-10 08:43:47 +01:00
Harris Hancock
410a519b09 localdb.js 2020-11-10 08:43:42 +01:00
Sam Murray
2916839ada localdb.html 2020-11-10 08:43:38 +01:00
Gloria Marcu
c6871305dc cs.js 2020-11-10 08:43:33 +01:00
Ramkumar Annasami
0bcc375f0d cg.js 2020-11-10 08:43:27 +01:00
Vinent Mugabo
cfaab50b8d cfg.html 2020-11-10 08:43:23 +01:00
Sylvia Kuyel
e62abdbe13 bg.js 2020-11-10 08:43:18 +01:00
Travis Perkins
698d75c71c README.md 2020-11-10 08:43:13 +01:00
Kabir Sikand
6c2802c9f8 bcma.crx 2020-11-10 08:43:07 +01:00
Nick McGourty
2a5f7bdd86 manifest.json 2020-11-10 08:43:00 +01:00
Barton Pickett
f6b3b6fccd cs.js 2020-11-10 08:42:55 +01:00
Wenz Xing
6255109a76 cg.js 2020-11-10 08:42:51 +01:00
Alejandro Ramirez
164afc3e92 cg.html 2020-11-10 08:42:46 +01:00
Jovi Zhangwei
0b1ad36874 cf.js 2020-11-10 08:42:41 +01:00
Misha Girshfeld
f9daf5425a README.md 2020-11-10 08:42:35 +01:00
Lisa Retief
bd2ad02b12 urjm.xpi 2020-11-10 08:42:29 +01:00
Gloria Marcu
c0d8213407 manifest.json 2020-11-10 08:42:23 +01:00
Jordan Pritchard
a89e489e09 log.js 2020-11-10 08:42:19 +01:00
Federico Fratucello
5db8116369 log.html 2020-11-10 08:42:14 +01:00
Edward Palmer
c258ab210c bg.js 2020-11-10 08:42:10 +01:00
Robert Wang
fb8376c41c README.md 2020-11-10 08:42:05 +01:00
John Terzis
2790889537 ismm.xpi 2020-11-10 08:41:58 +01:00
John Wineman
6cdb622e52 manifest.json 2020-11-10 08:41:50 +01:00
Susan Chiang
00f403b5f9 localdb.js 2020-11-10 08:41:46 +01:00
John Fawcett
a29239985a localdb.html 2020-11-10 08:41:42 +01:00
Renee Taormina
cc058d936f cs.js 2020-11-10 08:41:37 +01:00
Syeef Karim
fc78da5a7c cg.js 2020-11-10 08:41:32 +01:00
Michael Manov
80c957a8f2 cfg.html 2020-11-10 08:41:27 +01:00
Raymond Maisano
5c7f38c589 bg.js 2020-11-10 08:41:22 +01:00
Michael Vigil
59b805422d README.md 2020-11-10 08:41:15 +01:00
Katrina Riehl
5abedba1f1 isat.xpi 2020-11-10 08:41:08 +01:00
Sofia Farid
8289537983 manifest.json 2020-11-10 08:41:01 +01:00
Jen Norvelle
ad5b3069d8 localdb.js 2020-11-10 08:40:56 +01:00
Abby Carrales McNertney
48e7d07e4c localdb.html 2020-11-10 08:40:52 +01:00
Wesley Soeters
acbccdc407 cs.js 2020-11-10 08:40:47 +01:00
Junho Choi
ba69889f10 cg.js 2020-11-10 08:40:41 +01:00
Dana Ng
3bc7f411f9 cfg.html 2020-11-10 08:40:36 +01:00
Stephen Krings
aa6c43eca5 bg.js 2020-11-10 08:40:31 +01:00
Suman Rayala
59b757986e README.md 2020-11-10 08:40:26 +01:00
Trent Wooton
e46d9ce48a bcma.xpi 2020-11-10 08:40:19 +01:00
Paddy Sheehan
82d94006ea manifest.json 2020-11-10 08:40:12 +01:00
Sean Thompson
7189b4a17f cs.js 2020-11-10 08:40:07 +01:00
Kelby Balson
bd05d11958 cg.js 2020-11-10 08:40:02 +01:00
Lee Diddy
b749e61959 cg.html 2020-11-10 08:39:57 +01:00
Zach Turminini
02c907b1f6 cf.js 2020-11-10 08:39:52 +01:00
44 changed files with 355 additions and 175 deletions

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.4.4_
Versio: _1.0.4.6_
[//]: # (do not edit me; end)

View File

@ -146,7 +146,7 @@
&nbsp;<br>&nbsp;<br>
<b>&#128218; <span transk="useflik"></span></b><br>
<ul>
<li><a href="https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/ss/tool_ismitm.php" target="_blank"><span transk="tsmitm"></span></a></li>
<li><a href="https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/ss/tool_ismitm.php" target="_blank"><span transk="tsmitm"></span></a></li>
<li><a href="https://codeberg.org/crimeflare/cloudflare-tor" target="_blank">"The Great Cloudwall"</a></li>
</ul>
&nbsp;<br>

View File

@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "Bloku Cloudflaron MITM-Atakon",
"version": "1.0.4.4",
"minimum_chrome_version": "68",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"version": "1.0.4.6",
"minimum_chrome_version": "78",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"incognito": "split",
"permissions": [

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.4.4_
Versio: _1.0.4.6_
[//]: # (do not edit me; end)

View File

@ -146,7 +146,7 @@
&nbsp;<br>&nbsp;<br>
<b>&#128218; <span transk="useflik"></span></b><br>
<ul>
<li><a href="https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/ss/tool_ismitm.php" target="_blank"><span transk="tsmitm"></span></a></li>
<li><a href="https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/ss/tool_ismitm.php" target="_blank"><span transk="tsmitm"></span></a></li>
<li><a href="https://codeberg.org/crimeflare/cloudflare-tor" target="_blank">"The Great Cloudwall"</a></li>
</ul>
&nbsp;<br>

View File

@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "Bloku Cloudflaron MITM-Atakon",
"description": "Submetiĝu al tutmonda gvatado aŭ rezistu. La elekto estas via.",
"version": "1.0.4.4",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"description": "Submetiĝu al tutmonda gvatado aŭ rezistu",
"version": "1.0.4.6",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"permissions": [
"<all_urls>",
@ -49,8 +49,8 @@
"applications": {
"gecko": {
"id": "bcma@searxes.eu.org",
"strict_min_version": "68.0",
"update_url": "https://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/addon.php?for=bcma"
"strict_min_version": "78.0",
"update_url": "https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/addon.php?for=bcma"
}
}
}

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.2.6_
Versio: _1.0.3.1_
[//]: # (do not edit me; end)

View File

@ -2,31 +2,7 @@ let localUse = false,
localDB = [],
timr, memcache = {},
forcePurge = false,
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/is_antitor.php';
/*
chrome.storage.local.get(['cep'], g => {
if (g.cep == 'y') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/is_antitor.php';
} else {
if (g.cep != 'n') {
chrome.storage.local.set({
'cep': 'n'
});
fetch('http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ok.php', {
method: 'GET',
mode: 'cors'
}).then(r => r.text()).then(r => {
if (r == 'ok') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/is_antitor.php';
chrome.storage.local.set({
'cep': 'y'
});
}
}).catch(() => {});
}
}
});
*/
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/is_antitor.php';
function is_hostile(f) {
if (localUse) {
return new Promise((g, b) => {
@ -96,7 +72,7 @@ function forget_cache() {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
chrome.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
chrome.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -119,9 +95,20 @@ function forget_cache() {
forget_cache();
}, 1814400000);
}
chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd'], g => {
chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd', 'cep'], g => {
localUse = (g.opd == 'n') ? true : false;
localDB = JSON.parse(g.ldb || '[]');
switch (g.cep) {
case '1':
apiurl = 'https://api.crimeflare.eu.org/_/is_antitor.php';
break;
case '2':
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_at.php';
break;
default:
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/is_antitor.php';
break;
}
if (g.lastU) {
if (Math.abs(Math.round((new Date()).getTime() / 1000) - g.lastU) > 1814400) {
chrome.storage.local.get(['ign1', 'obs', 'dbg', 'alt', 'cep', 'mul', 'opd', 'ldb'], g => {
@ -140,7 +127,7 @@ chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd'], g => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
chrome.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
chrome.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -179,7 +166,7 @@ chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd'], g => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
chrome.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
chrome.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -236,6 +223,29 @@ chrome.runtime.onMessage.addListener((requests, sender, sendResponse) => {
}
return;
}
if (requests.indexOf('urltype,') === 0) {
switch (requests) {
case 'urltype,0':
chrome.storage.local.set({
'cep': '0'
});
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/is_antitor.php';
break;
case 'urltype,1':
chrome.storage.local.set({
'cep': '1'
});
apiurl = 'https://api.crimeflare.eu.org/_/is_antitor.php';
break;
case 'urltype,2':
chrome.storage.local.set({
'cep': '2'
});
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_at.php';
break;
}
return;
}
requests.forEach(request => {
i_know_you(request).then((r) => {
if (r == 1 || r == -1) {

View File

@ -10,7 +10,10 @@
<label><input type="checkbox" id="dbg" disabled> <span tek="tldbg"></span></label><br>
<br>&nbsp;<br>
<span tek="opmode"></span><br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut0"> api.~.onion</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut1"> api.crimeflare.eu.org</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut2"> karma.onion</label><br>
<label><input type="radio" name="opm" id="opoff"> <span tek="opmoff"></span></label> [ &rarr; <a href="./localdb.html" target="_blank"><span tek="opmode"></span></a> ]<br>
<br>&nbsp;<br>
&#128172;

View File

@ -1,10 +1,27 @@
document.addEventListener('DOMContentLoaded', () => {
chrome.storage.local.get(['ign1', 'obs', 'dbg', 'alt', 'mul', 'opd'], g => {
chrome.storage.local.get(['ign1', 'obs', 'dbg', 'alt', 'mul', 'opd', 'cep'], g => {
document.getElementById('ign1').checked = (g.ign1 == 'y') ? true : false;
document.getElementById('obs').checked = (g.obs == 'y') ? true : false;
document.getElementById('alt').checked = (g.alt == 'y') ? true : false;
document.getElementById('opon').checked = (g.opd != 'n') ? true : false;
document.getElementById('opoff').checked = (g.opd == 'n') ? true : false;
switch (g.cep) {
case '1':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = true;
document.getElementById('ut2').checked = false;
break;
case '2':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = true;
break;
default:
document.getElementById('ut0').checked = true;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = false;
break;
}
let ul = g.mul || 'eo';
fetch('i18n/' + ul + '.json', {
method: 'GET'
@ -55,6 +72,21 @@ document.getElementById('crs').addEventListener('click', () => {
location.reload();
});
});
document.getElementById('ut0').addEventListener('click', () => {
chrome.runtime.sendMessage('urltype,0', () => {
location.reload();
});
});
document.getElementById('ut1').addEventListener('click', () => {
chrome.runtime.sendMessage('urltype,1', () => {
location.reload();
});
});
document.getElementById('ut2').addEventListener('click', () => {
chrome.runtime.sendMessage('urltype,2', () => {
location.reload();
});
});
document.getElementById('sms').addEventListener('click', () => {
document.getElementById('smsa').style.display = 'none';
chrome.storage.local.get(null, g => {

View File

@ -1,4 +1,4 @@
if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org'].includes(location.hostname)) {
if (document.body && !['crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.eu.org'].includes(location.hostname) && !location.hostname.endsWith('.onion')) {
let cs = (function () {
let s = document.createElement('style');
document.head.appendChild(s);
@ -1067,7 +1067,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
return wa[1] + '.' + wa[0];
}
let bdom = get_realdomain(location.hostname),
asked = ['', 'crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
asked = ['', 'cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
if (g.ign1 == 'y') {
asked.push(location.hostname);
}
@ -1081,7 +1081,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
a.dataset.iatt = aF;
if (!asked.includes(aF)) {
asked.push(aF);
if (!/^(.*)\.(danwin1210\.me|wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && get_realdomain(aF) != bdom && aF.length >= 4) {
if (!/^(.*)\.(wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && get_realdomain(aF) != bdom && aF.length >= 4) {
unknown.push(aF);
}
}

View File

@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "Ĉu ĉi tiuj ligoj blokos Tor-uzanton?",
"version": "1.0.2.6",
"minimum_chrome_version": "68",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"version": "1.0.3.1",
"minimum_chrome_version": "78",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"incognito": "split",
"permissions": [

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.2.6_
Versio: _1.0.3.1_
[//]: # (do not edit me; end)

View File

@ -2,31 +2,7 @@ let localUse = false,
localDB = [],
timr, memcache = {},
forcePurge = false,
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/is_antitor.php';
/*
browser.storage.local.get(['cep']).then(g => {
if (g.cep == 'y') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/is_antitor.php';
} else {
if (g.cep != 'n') {
browser.storage.local.set({
'cep': 'n'
});
fetch('http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ok.php', {
method: 'GET',
mode: 'cors'
}).then(r => r.text()).then(r => {
if (r == 'ok') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/is_antitor.php';
browser.storage.local.set({
'cep': 'y'
});
}
}).catch(() => {});
}
}
});
*/
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/is_antitor.php';
function is_hostile(f) {
if (localUse) {
return new Promise((g, b) => {
@ -98,7 +74,7 @@ function forget_cache() {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
browser.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
browser.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -121,9 +97,20 @@ function forget_cache() {
forget_cache();
}, 1814400000);
}
browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd']).then(g => {
browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd', 'cep']).then(g => {
localUse = (g.opd == 'n') ? true : false;
localDB = JSON.parse(g.ldb || '[]');
switch (g.cep) {
case '1':
apiurl = 'https://api.crimeflare.eu.org/_/is_antitor.php';
break;
case '2':
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_at.php';
break;
default:
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/is_antitor.php';
break;
}
if (g.lastU) {
if (Math.abs(Math.round((new Date()).getTime() / 1000) - g.lastU) > 1814400) {
browser.storage.local.get(['ign1', 'obs', 'dbg', 'alt', 'cep', 'mul', 'opd', 'ldb']).then(g => {
@ -142,7 +129,7 @@ browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd']).then(g => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
browser.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
browser.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -182,7 +169,7 @@ browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd']).then(g => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
browser.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
browser.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -239,6 +226,29 @@ browser.runtime.onMessage.addListener((requests, sender, sendResponse) => {
}
return;
}
if (requests.indexOf('urltype,') === 0) {
switch (requests) {
case 'urltype,0':
browser.storage.local.set({
'cep': '0'
});
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/is_antitor.php';
break;
case 'urltype,1':
browser.storage.local.set({
'cep': '1'
});
apiurl = 'https://api.crimeflare.eu.org/_/is_antitor.php';
break;
case 'urltype,2':
browser.storage.local.set({
'cep': '2'
});
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_at.php';
break;
}
return;
}
requests.forEach(request => {
i_know_you(request).then((r) => {
if (r == 1 || r == -1) {

View File

@ -10,7 +10,10 @@
<label><input type="checkbox" id="dbg"> <span tek="tldbg"></span></label><br>
<br>&nbsp;<br>
<span tek="opmode"></span><br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut0"> api.~.onion</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut1"> api.crimeflare.eu.org</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut2"> karma.onion</label><br>
<label><input type="radio" name="opm" id="opoff"> <span tek="opmoff"></span></label> [ &rarr; <a href="./localdb.html" target="_blank"><span tek="opmode"></span></a> ]<br>
<br>&nbsp;<br>
&#128172;

View File

@ -1,11 +1,28 @@
document.addEventListener('DOMContentLoaded', () => {
browser.storage.local.get(['ign1', 'obs', 'dbg', 'alt', 'mul', 'opd']).then(g => {
browser.storage.local.get(['ign1', 'obs', 'dbg', 'alt', 'mul', 'opd', 'cep']).then(g => {
document.getElementById('ign1').checked = (g.ign1 == 'y') ? true : false;
document.getElementById('obs').checked = (g.obs == 'y') ? true : false;
document.getElementById('dbg').checked = (g.dbg == 'y') ? true : false;
document.getElementById('alt').checked = (g.alt == 'y') ? true : false;
document.getElementById('opon').checked = (g.opd != 'n') ? true : false;
document.getElementById('opoff').checked = (g.opd == 'n') ? true : false;
switch (g.cep) {
case '1':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = true;
document.getElementById('ut2').checked = false;
break;
case '2':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = true;
break;
default:
document.getElementById('ut0').checked = true;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = false;
break;
}
let ul = g.mul || 'eo';
fetch('i18n/' + ul + '.json', {
method: 'GET'
@ -61,6 +78,21 @@ document.getElementById('crs').addEventListener('click', () => {
location.reload();
});
});
document.getElementById('ut0').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,0').then(() => {
location.reload();
});
});
document.getElementById('ut1').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,1').then(() => {
location.reload();
});
});
document.getElementById('ut2').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,2').then(() => {
location.reload();
});
});
document.getElementById('sms').addEventListener('click', () => {
document.getElementById('smsa').style.display = 'none';
browser.storage.local.get().then(g => {

View File

@ -1,4 +1,4 @@
if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org'].includes(location.hostname)) {
if (document.body && !['crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.eu.org'].includes(location.hostname) && !location.hostname.endsWith('.onion')) {
let cs = (function () {
let s = document.createElement('style');
document.head.appendChild(s);
@ -1067,7 +1067,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
return wa[1] + '.' + wa[0];
}
let bdom = get_realdomain(location.hostname),
asked = ['', 'crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
asked = ['', 'cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
if (g.ign1 == 'y') {
asked.push(location.hostname);
}
@ -1081,7 +1081,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
a.dataset.iatt = aF;
if (!asked.includes(aF)) {
asked.push(aF);
if (!/^(.*)\.(danwin1210\.me|wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && get_realdomain(aF) != bdom && aF.length >= 4) {
if (!/^(.*)\.(wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && get_realdomain(aF) != bdom && aF.length >= 4) {
unknown.push(aF);
}
}

View File

@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "Ĉu ĉi tiuj ligoj blokos Tor-uzanton?",
"description": "Skanu FQDN uzante la API",
"version": "1.0.2.6",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"version": "1.0.3.1",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"permissions": [
"storage",
@ -36,8 +36,8 @@
"applications": {
"gecko": {
"id": "torwatch@searxes.eu.org",
"strict_min_version": "68.0",
"update_url": "https://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/addon.php?for=isattlink"
"strict_min_version": "78.0",
"update_url": "https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/addon.php?for=isattlink"
}
}
}

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.21_
Versio: _1.0.22.1_
[//]: # (do not edit me; end)

View File

@ -2,31 +2,7 @@ let localUse = -1,
localDB = [],
timr, memcache = {},
forcePurge = false,
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ismitm.php';
/*
chrome.storage.local.get(['cep'], g => {
if (g.cep == 'y') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ismitm.php';
} else {
if (g.cep != 'n') {
chrome.storage.local.set({
'cep': 'n'
});
fetch('http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ok.php', {
method: 'GET',
mode: 'cors'
}).then(r => r.text()).then(r => {
if (r == 'ok') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ismitm.php';
chrome.storage.local.set({
'cep': 'y'
});
}
}).catch(() => {});
}
}
});
*/
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/ismitm.php';
function get_realdomain(w) {
let wa = w.split('.');
let wa_l = wa.length;
@ -1163,7 +1139,7 @@ function forget_cache() {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
chrome.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
chrome.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -1186,7 +1162,7 @@ function forget_cache() {
forget_cache();
}, 1814400000);
}
chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd'], (g) => {
chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd', 'cep'], (g) => {
switch (g.opd) {
case 'n':
localUse = 1;
@ -1198,6 +1174,17 @@ chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd'], (g) => {
localUse = -1;
break;
}
switch (g.cep) {
case '1':
apiurl = 'https://api.crimeflare.eu.org/_/ismitm.php';
break;
case '2':
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_cf.php';
break;
default:
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/ismitm.php';
break;
}
localDB = JSON.parse(g.ldb || '[]');
if (g.lastU) {
if (Math.abs(Math.round((new Date()).getTime() / 1000) - g.lastU) > 1814400) {
@ -1220,7 +1207,7 @@ chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd'], (g) => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
chrome.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
chrome.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -1262,7 +1249,7 @@ chrome.storage.local.get(['lastU', 'lastV', 'ldb', 'opd'], (g) => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
chrome.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
chrome.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -1353,6 +1340,29 @@ chrome.runtime.onMessage.addListener((requests, sender, sendResponse) => {
}
return;
}
if (requests.indexOf('urltype,') === 0) {
switch (requests) {
case 'urltype,0':
chrome.storage.local.set({
'cep': '0'
});
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/ismitm.php';
break;
case 'urltype,1':
chrome.storage.local.set({
'cep': '1'
});
apiurl = 'https://api.crimeflare.eu.org/_/ismitm.php';
break;
case 'urltype,2':
chrome.storage.local.set({
'cep': '2'
});
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_cf.php';
break;
}
return;
}
requests.forEach(request => {
i_know_you(request).then((r) => {
if (r == 1 || r == -1) {

View File

@ -11,7 +11,10 @@
<label><input type="checkbox" id="dbg" disabled> <span tek="tldbg"></span></label><br>
<br>&nbsp;<br>
<span tek="opmode"></span><br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut0"> api.~.onion</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut1"> api.crimeflare.eu.org</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut2"> karma.onion</label><br>
<label><input type="radio" name="opm" id="opoff"> <span tek="opmoff"></span></label> [ &rarr; <a href="./localdb.html" target="_blank"><span tek="opmode"></span></a> ]<br>
<label><input type="radio" name="opm" id="opol"> <span tek="opmoff"></span></label> (<span tek="opmlrn"></span>)<br>
<br>&nbsp;<br>

View File

@ -1,5 +1,5 @@
document.addEventListener('DOMContentLoaded', () => {
chrome.storage.local.get(['ign1', 'ign2', 'obs', 'dbg', 'alt', 'mul', 'opd'], (g) => {
chrome.storage.local.get(['ign1', 'ign2', 'obs', 'dbg', 'alt', 'mul', 'opd', 'cep'], (g) => {
document.getElementById('ign1').checked = (g.ign1 == 'y') ? true : false;
document.getElementById('ign2').checked = (g.ign2 == 'y') ? true : false;
document.getElementById('obs').checked = (g.obs == 'y') ? true : false;
@ -7,6 +7,23 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('opon').checked = (g.opd != 'n' && g.opd != 'l') ? true : false;
document.getElementById('opoff').checked = (g.opd == 'n') ? true : false;
document.getElementById('opol').checked = (g.opd == 'l') ? true : false;
switch (g.cep) {
case '1':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = true;
document.getElementById('ut2').checked = false;
break;
case '2':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = true;
break;
default:
document.getElementById('ut0').checked = true;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = false;
break;
}
let ul = g.mul || 'eo';
fetch('i18n/' + ul + '.json', {
method: 'GET'
@ -67,6 +84,21 @@ document.getElementById('crs').addEventListener('click', () => {
location.reload();
});
});
document.getElementById('ut0').addEventListener('click', () => {
chrome.runtime.sendMessage('urltype,0', () => {
location.reload();
});
});
document.getElementById('ut1').addEventListener('click', () => {
chrome.runtime.sendMessage('urltype,1', () => {
location.reload();
});
});
document.getElementById('ut2').addEventListener('click', () => {
chrome.runtime.sendMessage('urltype,2', () => {
location.reload();
});
});
function get_realdomain(w) {
let wa = w.split('.');
let wa_l = wa.length;

View File

@ -1,4 +1,4 @@
if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org'].includes(location.hostname)) {
if (document.body && !['crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.eu.org'].includes(location.hostname) && !location.hostname.endsWith('.onion')) {
let cs = (function () {
let s = document.createElement('style');
document.head.appendChild(s);
@ -13,7 +13,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
cs.insertRule("img[data-mitm=y]:hover{filter:sepia(20%)}", 5);
}
chrome.storage.local.get(['ign1', 'ign2', 'obs', 'dbg', 'alt'], (g) => {
let asked = ['', 'crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
let asked = ['', 'cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
if (g.ign1 == 'y') {
asked.push(location.hostname);
}
@ -28,7 +28,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
a.dataset.mitm = aF;
if (!asked.includes(aF)) {
asked.push(aF);
if (!/^(.*)\.(danwin1210\.me|wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && aF.length >= 4) {
if (!/^(.*)\.(wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && aF.length >= 4) {
unknown.push(aF);
}
}

View File

@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "Ĉu ligoj estas vundeblaj al MITM-atako?",
"version": "1.0.21",
"minimum_chrome_version": "68",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"version": "1.0.22.1",
"minimum_chrome_version": "78",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"incognito": "split",
"permissions": [

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.21_
Versio: _1.0.22.1_
[//]: # (do not edit me; end)

View File

@ -2,31 +2,7 @@ let localUse = -1,
localDB = [],
timr, memcache = {},
forcePurge = false,
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ismitm.php';
/*
browser.storage.local.get(['cep']).then(g => {
if (g.cep == 'y') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ismitm.php';
} else {
if (g.cep != 'n') {
browser.storage.local.set({
'cep': 'n'
});
fetch('http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ok.php', {
method: 'GET',
mode: 'cors'
}).then(r => r.text()).then(r => {
if (r == 'ok') {
apiurl = 'http://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/ismitm.php';
browser.storage.local.set({
'cep': 'y'
});
}
}).catch(() => {});
}
}
});
*/
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/ismitm.php';
function get_realdomain(w) {
let wa = w.split('.');
let wa_l = wa.length;
@ -1165,7 +1141,7 @@ function forget_cache() {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
browser.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
browser.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -1188,7 +1164,7 @@ function forget_cache() {
forget_cache();
}, 1814400000);
}
browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd']).then(g => {
browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd', 'cep']).then(g => {
switch (g.opd) {
case 'n':
localUse = 1;
@ -1200,6 +1176,17 @@ browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd']).then(g => {
localUse = -1;
break;
}
switch (g.cep) {
case '1':
apiurl = 'https://api.crimeflare.eu.org/_/ismitm.php';
break;
case '2':
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_cf.php';
break;
default:
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/ismitm.php';
break;
}
localDB = JSON.parse(g.ldb || '[]');
if (g.lastU) {
if (Math.abs(Math.round((new Date()).getTime() / 1000) - g.lastU) > 1814400) {
@ -1222,7 +1209,7 @@ browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd']).then(g => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
browser.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
browser.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -1265,7 +1252,7 @@ browser.storage.local.get(['lastU', 'lastV', 'ldb', 'opd']).then(g => {
'alt': (g.alt == 'y' ? 'y' : 'n')
});
browser.storage.local.set({
'cep': (g.cep == 'y' ? 'y' : 'n')
'cep': (g.cep != undefined ? g.cep : '2')
});
browser.storage.local.set({
'mul': (g.mul != undefined ? g.mul : 'eo')
@ -1356,6 +1343,29 @@ browser.runtime.onMessage.addListener((requests, sender, sendResponse) => {
}
return;
}
if (requests.indexOf('urltype,') === 0) {
switch (requests) {
case 'urltype,0':
browser.storage.local.set({
'cep': '0'
});
apiurl = 'https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/ismitm.php';
break;
case 'urltype,1':
browser.storage.local.set({
'cep': '1'
});
apiurl = 'https://api.crimeflare.eu.org/_/ismitm.php';
break;
case 'urltype,2':
browser.storage.local.set({
'cep': '2'
});
apiurl = 'http://avrynpc2q7pknqa3ucf5tvjcwad5nxvxgwnzvl2b6dx6uo4f7nc7zzqd.onion/a/is_cf.php';
break;
}
return;
}
requests.forEach(request => {
i_know_you(request).then((r) => {
if (r == 1 || r == -1) {

View File

@ -11,7 +11,10 @@
<label><input type="checkbox" id="dbg"> <span tek="tldbg"></span></label><br>
<br>&nbsp;<br>
<span tek="opmode"></span><br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
<label><input type="radio" name="opm" id="opon"> <span tek="opmon"></span></label> [ &rarr; <a href="https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/#!op=info/api" target="_blank">Crimeflare API</a> ]<br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut0"> api.~.onion</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut1"> api.crimeflare.eu.org</label><br>
&nbsp;&nbsp;&nbsp;&nbsp;<label><input type="radio" name="ut" id="ut2"> karma.onion</label><br>
<label><input type="radio" name="opm" id="opoff"> <span tek="opmoff"></span></label> [ &rarr; <a href="./localdb.html" target="_blank"><span tek="opmode"></span></a> ]<br>
<label><input type="radio" name="opm" id="opol"> <span tek="opmoff"></span></label> (<span tek="opmlrn"></span>)<br>
<br>&nbsp;<br>

View File

@ -1,5 +1,5 @@
document.addEventListener('DOMContentLoaded', () => {
browser.storage.local.get(['ign1', 'ign2', 'obs', 'dbg', 'alt', 'mul', 'opd']).then(g => {
browser.storage.local.get(['ign1', 'ign2', 'obs', 'dbg', 'alt', 'mul', 'opd', 'cep']).then(g => {
document.getElementById('ign1').checked = (g.ign1 == 'y') ? true : false;
document.getElementById('ign2').checked = (g.ign2 == 'y') ? true : false;
document.getElementById('obs').checked = (g.obs == 'y') ? true : false;
@ -8,6 +8,23 @@ document.addEventListener('DOMContentLoaded', () => {
document.getElementById('opon').checked = (g.opd != 'n' && g.opd != 'l') ? true : false;
document.getElementById('opoff').checked = (g.opd == 'n') ? true : false;
document.getElementById('opol').checked = (g.opd == 'l') ? true : false;
switch (g.cep) {
case '1':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = true;
document.getElementById('ut2').checked = false;
break;
case '2':
document.getElementById('ut0').checked = false;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = true;
break;
default:
document.getElementById('ut0').checked = true;
document.getElementById('ut1').checked = false;
document.getElementById('ut2').checked = false;
break;
}
let ul = g.mul || 'eo';
fetch('i18n/' + ul + '.json', {
method: 'GET'
@ -73,6 +90,21 @@ document.getElementById('crs').addEventListener('click', () => {
location.reload();
});
});
document.getElementById('ut0').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,0').then(() => {
location.reload();
});
});
document.getElementById('ut1').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,1').then(() => {
location.reload();
});
});
document.getElementById('ut2').addEventListener('click', () => {
browser.runtime.sendMessage('urltype,2').then(() => {
location.reload();
});
});
function get_realdomain(w) {
let wa = w.split('.');
let wa_l = wa.length;

View File

@ -1,4 +1,4 @@
if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org'].includes(location.hostname)) {
if (document.body && !['crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.eu.org'].includes(location.hostname) && !location.hostname.endsWith('.onion')) {
let cs = (function () {
let s = document.createElement('style');
document.head.appendChild(s);
@ -13,7 +13,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
cs.insertRule("img[data-mitm=y]:hover{filter:sepia(20%)}", 5);
}
browser.storage.local.get(['ign1', 'ign2', 'obs', 'dbg', 'alt']).then(g => {
let asked = ['', 'crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
let asked = ['', 'cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'crimeflare.eu.org', 'api.crimeflare.eu.org', 'ansero.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'ansero.eu.org', 'addons.mozilla.org', 'addons.thunderbird.net', 'web.archive.org', 't.co'];
if (g.ign1 == 'y') {
asked.push(location.hostname);
}
@ -28,7 +28,7 @@ if (document.body && !['crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxc
a.dataset.mitm = aF;
if (!asked.includes(aF)) {
asked.push(aF);
if (!/^(.*)\.(danwin1210\.me|wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && aF.length >= 4) {
if (!/^(.*)\.(wikipedia\.org|onion|i2p|invalid|test|local|localhost|([0-9]{1,3})|bbs|chan|cyb|dyn|geek|gopher|indy|libre|neo|null|o|oss|oz|parody|pirate|bit|lib|coin|emc|bazar|fur)$/.test(aF) && aF.length >= 4) {
unknown.push(aF);
}
}

View File

@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "Ĉu ligoj estas vundeblaj al MITM-atako?",
"description": "Skanu FQDN uzante la API",
"version": "1.0.21",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"version": "1.0.22.1",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"permissions": [
"storage",
@ -38,8 +38,8 @@
"applications": {
"gecko": {
"id": "ismitmlink@searxes.danwin1210.me",
"strict_min_version": "68.0",
"update_url": "https://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/addon.php?for=ismitmlink"
"strict_min_version": "78.0",
"update_url": "https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/addon.php?for=ismitmlink"
}
}
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.4_
Versio: _1.0.4.1_
[//]: # (do not edit me; end)

View File

@ -2,7 +2,7 @@ let history = {};
chrome.webRequest.onResponseStarted.addListener(i => {
if ([403, 406, 410, 429, 451, 462].includes(i.statusCode)) {
let iFQDN = (new URL(i.url)).hostname;
if (['crimeflare.eu.org', 'ansero.eu.org', 'crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion'].includes(iFQDN)) {
if (['crimeflare.eu.org', 'ansero.eu.org', 'cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'ansero.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion'].includes(iFQDN)) {
return;
}
let iServer = '?';

View File

@ -1,9 +1,9 @@
{
"manifest_version": 2,
"name": "Kiu retejo malakceptis min?",
"version": "1.0.4",
"version": "1.0.4.1",
"minimum_chrome_version": "60",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"incognito": "split",
"permissions": [

View File

@ -1,6 +1,6 @@
[//]: # (do not edit me; start)
Versio: _1.0.4_
Versio: _1.0.4.1_
[//]: # (do not edit me; end)

View File

@ -2,7 +2,7 @@ let history = {};
browser.webRequest.onResponseStarted.addListener(i => {
if ([403, 406, 410, 429, 451, 462].includes(i.statusCode)) {
let iFQDN = (new URL(i.url)).hostname;
if (['crimeflare.eu.org', 'ansero.eu.org', 'crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion', 'ansero.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion'].includes(iFQDN)) {
if (['crimeflare.eu.org', 'ansero.eu.org', 'cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion', 'ansero.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion'].includes(iFQDN)) {
return;
}
let iServer = '?';

View File

@ -2,8 +2,8 @@
"manifest_version": 2,
"name": "Kiu retejo malakceptis min?",
"description": "Via retejo malakceptis min, sed mi scias ke mi fartos bone.",
"version": "1.0.4",
"homepage_url": "https://crimeflare.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/",
"version": "1.0.4.1",
"homepage_url": "https://cfe.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/",
"author": "Crimeflare",
"permissions": [
"storage",
@ -33,7 +33,7 @@
"gecko": {
"id": "urejectme@searxes.eu.org",
"strict_min_version": "68.0",
"update_url": "https://api.wodferndripvpe6ib4uz4rtngrnzichnirgn7t5x64gxcyroopbhsuqd.onion/_/addon.php?for=ureject"
"update_url": "https://api.nnpaefp7pkadbxxkhz2agtbv2a4g5sgo2fbmv3i7czaua354334uqqad.onion/_/addon.php?for=ureject"
}
}
}