-
Notifications
You must be signed in to change notification settings - Fork 2
/
anonymize.sh
99 lines (51 loc) · 1.62 KB
/
anonymize.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
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
#!/bin/bash
# bash shell script that anonymize you and deanonymize you , it work behind whonix
downall(){
service network-manager stop &&
ifdown eth0 &&
ifconfig eth0 down &&
ip link set eth0 down
}
macchanger(){
echo 'CHANGING MAC ADRESS'
echo '----------------'
macchanger -r eth0 &&
echo '----------------'
echo 'MAC CHANGER RESULT AFTER SETTING UP'
echo '----------------'
macchanger -s eth0
echo '----------------'
}
timeshield(){
#DEFFEND AGAINST DEANOMINIZATION ATTACK
echo 'CHANGING DATE TO DEFFEND AGAINST DEANON TIME ATACK'
timedatectl set-timezone UTC &&
echo 'DATE'
echo '----------------'
date
echo '----------------'
}
whonixing(){
#when using whonix
cp /etc/resolv.conf /etc/resolv.conf.behindwhonixbackup &&
#if there is something else with the line
echo nameserver 10.152.152.10 > /etc/resolv.conf &&
#ADRESS NETMASK GATEWAY
cp /etc/network/interfaces /etc/network/interfaces.behindwhonixbackup &&
#ifnot there
echo -e '# This file describes the network interfaces available on your system\n# and how to activate them. For more information, see interfaces(5).\nsource /etc/network/interfaces.d/*\n##########NORMAL STUFF\nauto lo\niface lo inet loopback \n\n\n##########WHONIX STUFF\n#auto eth0\n\niface eth0 inet static\n\taddress 10.152.152.3\n\tnetmask 255.255.192.0\n\tgateway 10.152.152.10' > /etc/network/interfaces
}
upall(){
ifup eth0 &&
ifconfig eth0 up &&
ip link set eth0 up &&
service network-manager start
}
downall &&
#MAC CHANGER SHOULD BE MANUAL IF YOU ARE IN A VM
#macchanger &&
timeshield &&
whonixing &&
upall &&
#route &&
reboot