Files
i2p.plugins.tor-updater/supervise/nontor.go

105 lines
4.4 KiB
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package tbsupervise
var secbrowserjs = []byte(`
// Copyright (C) 2019 - 2021 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
// See the file COPYING for copying conditions.
// Warning! These settings disable Tor. You will not be anonymous!
// Configure Tor Browser without Tor settings for an everyday use
// security hardened browser. Take advantage of its excellent
// enhancements for reducing linkability, that is, "the ability
// for a user's activity on one site to be linked with their
// activity on another site without their knowledge or explicit
// consent."
// - See https://www.whonix.org/wiki/Tor_Browser_without_Tor
// - See https://www.whonix.org/wiki/SecBrowser
// This file gets copied at first start to:
// ~/.secbrowser/secbrowser/Browser/TorBrowser/Data/Browser/profile.default/user.js
// Disable Torbutton and Torlauncher extensions
user_pref("extensions.torbutton.startup", false);
user_pref("extensions.torlauncher.start_tor", false);
user_pref("network.proxy.socks_remote_dns", false);
// https://forums.whonix.org/t/tor-browser-10-without-tor/10313
user_pref("network.dns.disabled", false);
// Disable function torbutton source file:
// src/chrome/content/torbutton.js
// function: torbutton_do_tor_check
// and thereby also function: torbutton_initiate_remote_tor_check
// disables Control Port verification and remote Tor connection check.
user_pref("extensions.torbutton.test_enabled", false);
// Set security slider "Safest".
// Broken, therefore disabled by default.
// https://forums.whonix.org/t/broken-security-slider/8675
// user_pref("extensions.torbutton.inserted_security_level", true);
// user_pref("extensions.torbutton.security_slider", 1);
// Normalize Tor Browser behavior
user_pref("extensions.torbutton.noscript_persist", true);
user_pref("browser.privatebrowsing.autostart", false);
// Save passwords.
user_pref("signon.rememberSignons", true);
// Required for saving passwords.
// https://trac.torproject.org/projects/tor/ticket/30565#comment:7
user_pref("security.nocertdb", false);
// Disable Letterboxing.
// https://forums.whonix.org/t/is-anyone-having-white-bars-in-the-tbb-tor-browser-letterboxing/8345
// https://forums.whonix.org/t/secbrowser-a-security-hardened-non-anonymous-browser/3822/156
user_pref("privacy.resistFingerprinting.letterboxing", false);
// Enable punycode to fix
// very hard to notice Phishing Scam - Firefox / Tor Browser URL not showing real Domain Name - Homograph attack (Punycode).
// https://forums.whonix.org/t/very-hard-to-notice-phishing-scam-firefox-tor-browser-url-not-showing-real-domain-name-homograph-attack-punycode/8373
// https://forums.whonix.org/t/secbrowser-a-security-hardened-non-anonymous-browser/3822/162
user_pref("network.IDN_show_punycode", true);
// Disable popup asking to prefer onions since onions will not work in clearnet browser.
user_pref("privacy.prioritizeonions.showNotification", false);
`)
var secbrowserhtml = []byte(`
<!DOCTYPE html>
<html>
<head>
<title>i2p.plugins.tor-manager - Tor Binary Manager</title>
<link rel="stylesheet" type="text/css" href ="/style.css" />
</head>
<body>
<h1 id="running-in-clearnet-mode">Running in Clearnet Mode</h1>
<p>Tor Browser is configured to run without Tor, and will now use the non-anonymous web. It is also configured to use uBlock Origin. This allows you to use a hardened web browser for your non-anonymous tasks.</p>
<ul>
<li>To get started, perhaps try <a href="https://duckduckgo.com">DuckDuckGo</a></li>
<li>or <a href="https://privacyguides.org/">PrivacyGuides</a></li>
</ul>
<p>This wrapper has been developed for use with the I2P project. To learn more about I2P, visit [Get I2P](https://geti2p.net)</p>
</body>
</html>
`)
var offlinehtml = []byte(`
<!DOCTYPE html>
<html>
<head>
<title>i2p.plugins.tor-manager - Tor Binary Manager</title>
<link rel="stylesheet" type="text/css" href ="/style.css" />
</head>
<body>
<h1 id="running-in-offline-mode">Running in Offline Mode</h1>
<p>Tor Browser is configured to run without <em>any</em> access to the clearnet, and will now only use local services running on this device. This uses a different mechanism than Firefoxs normal work offline mode and cannot be canceled.</p>
<ul>
<li>Visit the <a href="http://127.0.0.1:7657">I2P Router Console</a></li>
<li>Visit the <a href="http://127.0.0.1:8888">Freenet FProxy</a></li>
</ul>
<p>This wrapper has been developed for use with the I2P project. To learn more about I2P, visit [Get I2P](https://geti2p.net)</p>
</body>
</html>
`)