-
Notifications
You must be signed in to change notification settings - Fork 0
/
FirefoxHardened-UserJsSetup-v1.5.sh
55 lines (31 loc) · 1.94 KB
/
FirefoxHardened-UserJsSetup-v1.5.sh
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
#!/bin/sh
##
## FirefoxHardened-UserJsSetup-v1.5.sh
##
git clone https://github.com/pyllyukko/user.js
## Set as default value on Firefox profile creation.
##_____________________________________________________________________________________________________________________________________________________
[+] systemwide_user.js | systemwide_user.js profile allows values in about:config to be modified. ## Profile is persistent through browser sessions.
[+] locked_user.js | locked_user.js profile will locked the about:config and the firefox-esr.js file
[+] 000-tor-browser.js | 000-tor-browser.js profile is imported from the torproject website.
make 000-tor-browser.js
make systemwide_user.js
make locked_user.js
make tbb-diff tbb-diff-2
make tbb-missing-from-user.js
| OS | Path |
| -------------- | ----------------------------------------------------------------------------- |
| Linux (Debian) | `/etc/firefox-esr/firefox-esr.js` |
| Linux | `~/.mozilla/firefox/XXXXXXXX.your_profile_name/user.js` |
| Android | `/data/data/org.mozilla.firefox/files/mozilla/XXXXXXXX.your_profile_name` | ## see [issue #14](https://github.com/pyllyukko/user.js/issues/14) |
| -------------- | ----------------------------------------------------------------------------- |
cp -v user.js /home/$user/.mozilla/firefox/xk1uxyq9.Parrot/user.js
chmod -v 0644 /home/$user/.mozilla/firefox/xk1uxyq9.Parrot/user.js
chown -v $user /home/$user/.mozilla/firefox/xk1uxyq9.Parrot/user.js
chmod -v u+rwx,go+rx user.js
cp -v systemwide_user.js /etc/firefox-esr/firefox-esr.js
cp -v locked_user.js /etc/firefox-esr/firefox-esr.js
cp -v 000-tor-browser.js /etc/firefox-esr/firefox-esr.js
cp -v Hardened.js /etc/firefox-esr/firefox-esr.js
chown -v $user:$user /etc/firefox-esr/firefox-esr.js
chmod -v 0644 /etc/firefox-esr/firefox-esr.js