Skip to content

Commit

Permalink
final fixes and modifications to prep for release
Browse files Browse the repository at this point in the history
  • Loading branch information
root authored and Und3rf10w committed Sep 30, 2015
1 parent c8a2e62 commit 07a099d
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 38 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# kali-anonstealth

ParrotSec's anonsurf and stealth, ported to work with Kali Linux.

How to use this repo
=======

This repo contains the sources of both the anonsurf and pandora packages from ParrotSec combined into one.

Modifications have been made to prevent data leakage and use the DNS servers of Private Internet Access (this is simple to change).

This repo can be compiled into a deb package to correctly install it on a Kali system.


NOTE: This may work with any debian/ubuntu system, but this has only been tested to work on a Kali 2.0 amd64 system
4 changes: 2 additions & 2 deletions kali-anonsurf-1.0/DEBIAN/control
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ Architecture: all
Maintainer: null <[email protected]>
Installed-Size: 64
Depends: secure-delete, tor, i2p
Recommends: gtkdialog, libnotify-bin, socat, gufw, libnotify-bin
Recommends: gtkdialog, libnotify-bin, socat, gufw, libnotify-bin, polipo, proxychains, openvpn
Suggests: vidalia
Section: net
Priority: optional
Description: Parrot stealth and anon scripts, ported to Kali Linux
Description: Parrot stealth and anon scripts, ported to work with Kali Linux
72 changes: 36 additions & 36 deletions kali-anonsurf-1.0/etc/init.d/anonsurf
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function starti2p {
service tor stop
cp /etc/resolv.conf /etc/resolv.conf.bak
touch /etc/resolv.conf
echo -e 'nameserver 127.0.0.1\nnameserver 199.175.54.136\nnameserver 23.94.123.134' > /etc/resolv.conf
echo -e " $GREEN*$BLUE Modified resolv.conf to use localhost and FrozenDNS"
echo -e 'nameserver 127.0.0.1\nnameserver 209.222.18.222\nnameserver 209.222.18.218' > /etc/resolv.conf
echo -e " $GREEN*$BLUE Modified resolv.conf to use localhost and Private Internet Access DNS"
sudo -u i2psvc i2prouter start
iceweasel http://127.0.0.1:7657/home &
notify "I2P daemon started"
Expand All @@ -99,7 +99,7 @@ function stopi2p {
}



# Disabled because I don't like calling out to third parties
# function ip {
#
# echo -e "\nMy ip is:\n"
Expand All @@ -108,38 +108,38 @@ function stopi2p {
# echo -e "\n\n----------------------------------------------------------------------"
# }

# function iceweasel_tor {
# directory="/dev/shm/.mozilla/firefox/profile/a6mpn2rf.default"
# profile="profile_for_tor.tar.gz"
#
# if [ -d "$directory" ] ; then
# echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN Please wait ...$RESETCOLOR\n"
# notify "Please wait ..."
# sleep 0.7
# echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN The profile was loaded in the ram.$RESETCOLOR\n"
# notify "The profile was loaded in the ram."
# sleep 0.4
# killall -q iceweasel firefox
# iceweasel -profile /dev/shm/.mozilla/firefox/profile/a6mpn2rf.default &
# exit
# else
# echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN Please wait ...$RESETCOLOR\n"
# notify "Please wait ..."
# sleep 0.3
# cd /opt/anonsurf/
# cp $profile /dev/shm/ #> /dev/null
# sleep 0.3
# cd /dev/shm/
# tar xzvf $profile #> /dev/null
# sleep 0.3
# echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN The profile was loaded in the ram.$RESETCOLOR\n"
# notify "Starting browser in RAM-only mode"
# sleep 0.4
# killall -q iceweasel firefox
# iceweasel -profile /dev/shm/.mozilla/firefox/profile/a6mpn2rf.default &
# exit
# fi
# }
function iceweasel_tor {
directory="/dev/shm/.mozilla/firefox/profile/a6mpn2rf.default"
profile="profile_for_tor.tar.gz"

if [ -d "$directory" ] ; then
echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN Please wait ...$RESETCOLOR\n"
notify "Please wait ..."
sleep 0.7
echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN The profile was loaded in the ram.$RESETCOLOR\n"
notify "The profile was loaded in the ram."
sleep 0.4
killall -q iceweasel firefox
iceweasel -profile /dev/shm/.mozilla/firefox/profile/a6mpn2rf.default &
exit
else
echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN Please wait ...$RESETCOLOR\n"
notify "Please wait ..."
sleep 0.3
cd /opt/anonsurf/
cp $profile /dev/shm/ #> /dev/null
sleep 0.3
cd /dev/shm/
tar xzvf $profile #> /dev/null
sleep 0.3
echo -e "\n[$CYAN nfo$RESETCOLOR ]$GREEN The profile was loaded in the ram.$RESETCOLOR\n"
notify "Starting browser in RAM-only mode"
sleep 0.4
killall -q iceweasel firefox
iceweasel -profile /dev/shm/.mozilla/firefox/profile/a6mpn2rf.default &
exit
fi
}



Expand Down Expand Up @@ -266,7 +266,7 @@ function start {
cp /etc/resolv.conf /etc/resolv.conf.bak
touch /etc/resolv.conf
echo -e 'nameserver 127.0.0.1' > /etc/resolv.conf
echo -e " $GREEN*$BLUE Modified resolv.conf to use Tor and FrozenDNS"
echo -e " $GREEN*$BLUE Modified resolv.conf to use Tor and Private Internet Access DNS"

# set iptables nat
iptables -t nat -A OUTPUT -m owner --uid-owner $TOR_UID -j RETURN
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Disabled because third party DNS, feel free to edit. I opted to use Private internet access' DNS
# OpenDNS
# nameserver 208.67.222.222
# nameserver 208.67.220.220
Expand Down

0 comments on commit 07a099d

Please sign in to comment.