https://dropall.github.io/2016-12-20-anonsurf-ip-spoofing/
github: https://github.com/Und3rf10w/kali-anonsurf
从GIT克隆anonsurf
root@kali:~# git clone https://github.com/Und3rf10w/kali-anonsurf.git
Cloning into 'kali-anonsurf'...
remote: Counting objects: 275, done.
remote: Total 275 (delta 0), reused 0 (delta 0), pack-reused 275
Receiving objects: 100% (275/275), 163.44 KiB | 75.00 KiB/s, done.
Resolving deltas: 100% (79/79), done.
Checking connectivity... done.
root@kali:~# cd kali-anonsurf/
root@kali:~# sudo ./installer.sh #使用sudo 不然会有权限问题,要不就改权限
它还会将您的解析程序配置更改为以下内容:
root@kali:~# cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 209.222.18.222
nameserver 209.222.18.218
如果您不喜欢使用专用Internet访问DNS,只需在/etc/init.d/anonsurf
脚本中更改以下行中的DNS :
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 Tor and Private Internet Access DNS"
root@kali:~# anonsurf start
* killing dangerous applications
* cleaning some dangerous cache elements
[ i ] Stopping IPv6 services:
[ i ] Starting anonymous mode:
* Tor is not running! starting it for you
* Saved iptables rules
* Modified resolv.conf to use Tor and Private Internet Access DNS
* All traffic was redirected throught Tor
[ i ] You are under AnonSurf tunnel
root@kali:~#
root@kali:~# anonsurf myip
My ip is:
1xx.1xx.2xx.1xx
root@kali:~# anonsurf restart
* killing dangerous applications
* cleaning some dangerous cache elements
[ i ] Stopping anonymous mode:
* Deleted all iptables rules
* Iptables rules restored
[ i ] Reenabling IPv6 services:
* Anonymous mode stopped
* killing dangerous applications
* cleaning some dangerous cache elements
[ i ] Stopping IPv6 services:
[ i ] Starting anonymous mode:
* Tor is not running! starting it for you
* Saved iptables rules
* Modified resolv.conf to use Tor and Private Internet Access DNS
* All traffic was redirected throught Tor
[ i ] You are under AnonSurf tunnel
root@kali:~# anonsurf stop
* killing dangerous applications
* cleaning some dangerous cache elements
[ i ] Stopping anonymous mode:
* Deleted all iptables rules
* Iptables rules restored
[ i ] Reenabling IPv6 services:
* Anonymous mode stopped
检查是否泄漏了DNS。http://dnsleak.com/,https://www.perfect-privacy.com/和https://torguard.net/,
还可以在此处检查是否泄漏了IPv6:http://ipv6leak.com/。
使用OpenVPN,前提是你自己在VPS上搭建的服务,使用443端口可加快的你网络速度。
如果你配置成功,打开浏览器即可访问到deep web站点,这样以来你的所有流量都是通过tor访问互联网。你会发现,你使用kali linux中的工具是可以对.onion站点进行攻击。