(

        echo "ehlo momo"
        sleep 1
        echo "AUTH LOGIN"
        sleep 1
        echo "username" //base64
        sleep 1
        echo "passwork" // base64
        sleep 1
        echo "mail from:xxx@mail.com"
        sleep 1
        echo "rcpt to:xxx@gmail.com"
        sleep 1
        echo "data"
        sleep 1
        echo "from:<xxx@mail.com>"
        sleep 1
        echo "to:<xxx@gmail.com>"
        sleep 1
        echo "subject:from linux script"
        echo "Mime-Version: 1.0 "
        echo "Content-Type: multipart/mixed; boundary="a""
        echo "--a"
        echo "This is the preamble.  It is to be ignored, though it is a handy place for composition agents to include an explanatory note to non-MIME conformant readers."
        echo "--a"
        echo "Content-Type: application/octet-stream;name="reed.txt""
        echo "Content-Transfer-Encoding: base64 "
        echo "SGkgeW91IGdldCBpdA=="
        sleep 3
        echo "--a--"
        echo "."
        sleep 1
        echo "QUIT"

        ) | telnet mail.com 25

文章標籤
全站熱搜
創作者介紹