




如果您无法下载资料,请参考说明:
1、部分资料下载需要金币,请确保您的账户上有足够的金币
2、已购买过的文档,再次下载不重复扣费
3、资料包下载后请先用软件解压,在使用对应软件打开
更多IT技术:HYPERLINK"http://www.027hpedu.com/"http://www.027hpedu.com/ 教你如何防止邻居蹭网,制作“逆世界”整蛊他 拆分网络 我先把网络分成两部分——一部分受信,一部分不受信。受信的部分使用一个网段,不受信的是其它网段。我使用DHCP服务器限制MAC地址,过滤无关地址。 /etc/dhcpd.conf 01ddns-updatesoff; 02ddns-update-styleinterim; 03authoritative; 04 05shared-networklocal{ 06 07subnet*.*.*.*netmask255.255.255.0{ 08range*.*.*.**.*.*.*; 09optionrouters*.*.*.*; 10optionsubnet-mask255.255.255.0; 11optiondomain-name"XXXXX"; 12optiondomain-name-servers*.*.*.*; 13denyunknown-clients; 14 15hosttrusted1{ 16hardwareethernet*:*:*:*:*:*; 17fixed-address*.*.*.*; 18} 19} 20 21subnet192.168.0.0netmask255.255.255.0{ 22range192.168.0.2192.168.0.10; 23optionrouters192.168.0.1; 24optionsubnet-mask255.255.255.0; 25optiondomain-name-servers192.168.0.1; 26allowunknown-clients; 27 28} 29} IPtables很有趣! 一下子,满世界全是小猫!猫的世界。 1/sbin/iptables-APREROUTING-s192.168.0.0/255.255.255.0-ptcp-jDNAT--to-destination64.111.96.38 对于非法访问者,他们会被重定向到kittenwar<http://www.kittenwar.com/>。为了让事情更有兴趣,我修改iptables,把所有请求都秘密的转向到一台计算机上的squid代理服务器的80端口。 1/sbin/iptables-APREROUTING-s192.168.0.0/255.255.255.0-ptcp-mtcp--dport80-jDNAT--to-destination192.168.0.1 这台机器上的squid代理加载了一个小的脚本程序,用来下载图片,并使其上下颠倒,然后发出去。 重定向脚本 01#!/usr/bin/perl 02$|=1; 03$count=0; 04$pid=$$; 05while(<>){ 06chomp$_; 07if($_=~/(.*\.jpg)/i){ 08$url=$1; 09system("/usr/bin/wget","-q","-O","/space/WebPages/images/$pid-$count.jpg","$url"); 10system("/usr/bin/mogrify","-flip","/space/WebPages/images/$pid-$count.jpg"); 11print"<http://127.0.0.1/images/>$pid-$count.jpg\n"; 12} 13elsif($_=~/(.*\.gif)/i){ 14$url=$1; 15system("/usr/bin/wget","-q","-O","/space/WebPages/images/$pid-$count.gif","$url"); 16system("/usr/bin/mogrify","-flip","/space/WebPages/images/$pid-$count.gif"); 17print"<http://127.0.0.1/images/>$pid-$count.gif\n"; 18 19} 20else{ 21print"$_\n";; 22} 23$count++; 24} 于是整个互联网变成了这个样子! 如果你将脚本这的flip命令加上-blur4参数,你就创造了一个模糊的世界。

ys****39
实名认证
内容提供者


最近下载