Commit ea6d390c authored by Lorenzo Faletra's avatar Lorenzo Faletra

Import Debian version 2.10+parrot1

anonsurf (2.10+parrot1) testing; urgency=medium

  * Add OpenNIC DNS feature.
Signed-off-by: Lorenzo Faletra's avatarLorenzo Palinuro Faletra <palinuro@parrotsec.org>
parent b4786296
......@@ -14,8 +14,10 @@ install:
cp anonsurf.sh $(DESTDIR)/usr/bin/anonsurf
cp exitnode-selector $(DESTDIR)/usr/bin/exitnode-selector
cp exitnodes.csv $(DESTDIR)/etc/anonsurf/exitnodes.csv
cp resolv.conf.opennic $(DESTDIR)/etc/anonsurf/resolv.conf.opennic
chown root:root $(DESTDIR)/usr/bin/anonsurf
chown root:root $(DESTDIR)/usr/bin/exitnode-selector
chown root:root $(DESTDIR)/etc/anonsurf/resolv.conf.opennic
chmod 775 $(DESTDIR)/usr/bin/anonsurf
ln -s /usr/bin/anonsurf $(DESTDIR)/usr/bin/anon
cp -rf launchers/* $(DESTDIR)/usr/share/applications/
......
......@@ -237,6 +237,42 @@ function status {
cat /tmp/anonsurf-tor.log || cat /var/log/tor/log
}
function dnsstart {
echo "Configuring OpenNIC DNS service"
notify "Configuring OpenNIC DNS service"
rm /etc/resolv.conf
ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
cat /etc/anonsurf/resolv.conf.opennic > /etc/resolvconf/resolv.conf.d/tail
/usr/bin/service resolvconf restart
touch /etc/anonsurf/opennic.lock
echo "done"
notify "done"
}
function dnsstop {
echo "Deconfiguring OpenNIC DNS service"
notify "Deconfiguring OpenNIC DNS service"
rm /etc/resolv.conf
ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf
echo > /etc/resolvconf/resolv.conf.d/tail
/usr/bin/service resolvconf restart
rm /etc/anonsurf/opennic.lock
echo "done"
notify "done"
}
function dns {
if [ -f /etc/anonsurf/opennic.lock ]; then
dnsstop
fi
elif [ ! -f /etc/anonsurf/opennic.lock ]; then
dnsstart
fi
else; then
dnsstart
fi
}
case "$1" in
......@@ -257,6 +293,9 @@ case "$1" in
myip|ip)
ip
;;
dns)
dns
;;
restart)
$0 stop
sleep 1
......@@ -264,7 +303,7 @@ case "$1" in
;;
*)
echo -e "
Parrot AnonSurf Module (v 2.9.1)
Parrot AnonSurf Module (v 2.10)
Developed by Lorenzo \"Palinuro\" Faletra <palinuro@parrotsec.org>
Lisetta \"Sheireen\" Ferrero <sheireen@parrotsec.org>
Francesco \"Mibofra\" Bonanno <mibofra@parrotsec.org>
......@@ -281,6 +320,7 @@ Parrot AnonSurf Module (v 2.9.1)
$RED changeid$BLUE -$GREEN Restart TOR to change identity
$RED status$BLUE -$GREEN Check if AnonSurf is working properly
$RED myip$BLUE -$GREEN Check your ip and verify your tor connection
$RED dns$BLUE -$GREEN Replace your DNS with the OpenNIC DNS servers.
$RESETCOLOR
Dance like no one's watching. Encrypt like everyone is.
" >&2
......
anonsurf (2.10+parrot1) testing; urgency=medium
* Add OpenNIC DNS feature.
-- Lorenzo "Palinuro" Faletra <palinuro@parrotsec.org> Sun, 14 Apr 2019 05:51:18 +0200
anonsurf (2.9.1+parrot1) testing; urgency=medium
* Remove macchanger residual code.
......
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=true
Exec=menuexecg anonsurf dns
Name=Set/Unset OpenNIC DNS service
Comment=Use the uncensored and prvacy-respectful OpenNIC DNS service.
Icon=network-server
Categories=anonsurf;
# ParrotDNS/OpenNIC AnyCast IPs
nameserver 185.121.177.177
nameserver 169.239.202.202
nameserver 198.251.90.108
nameserver 198.251.90.109
nameserver 198.251.90.110
# Round Robin
options rotate
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment