telnet通過smtp傳送郵件
阿新 • • 發佈:2018-11-02
////////////////////////////////////CMD指令//////////////////////////////////////////////
cmd
telnet smtp.163.com 25 or telnet smtp.exmail.163.com 25
220 163.com Anti-spam GT for Coremail System (163com[20141201])
helo 163.com
250 OK
auth login
334 dXNlcm5hbWU6
MTg3MDI2MjMzNzVAMTYzLmNvbQ==
334 UGFzc3dvcmQ6
eWtqQDUyMDE0MTMq
235 Authentication successful
mail from:< [email protected]>
250 Mail OK
rcpt to:<[email protected]>
250 Mail OK
data
354 End data with <CR><LF>.<CR><LF>
from:18702623375
to:18702623375
subject:pldg
pldg
pldg
.
250 Mail OK queued as smtp5,D9GowAC331V6+KxZ1bf_AA--.252S2 1504508205
///////////////////////////////////網上資料///////////////////////////////////////////////////// 今天無意在一個論壇看到別人發帖用TELNET連線發信伺服器可以偽造發信人地址,就仔細看了一下如何使用TELNET來發送郵件
我測試了一下163和QQ都成功傳送了,但是偽造地址不行,這文章也不是重點說那個啊。。。。
首先要把登陸郵箱的使用者名稱和密碼用BASE64加密
可以用這個網站線上加密http://tool.chinaz.com/Tools/base64.aspx
然後
telnet smtp.qq.com 25
開始輸入
helo xiaoyu
auth login
eGlhb3l1(加密後的使用者名稱xiaoyu)
eGlhb3l1(加密後的密碼xiaoyu)
mail from:< [email protected]>
rcpt to:<[email protected]>
data
From:[email protected]
To:[email protected]
Subject:test
【空行】
test
【空行】
.(最後這個小數點一定要加上,以下是效果圖)
//////////////////////////////////////////WIF傳送AT指令//////////////////////////////////////
AT
AT+CWMODE=1
//AT+RST
AT+CWJAP="chuanxi_2.4G_104","jxau2017"
AT+CIPMUX=0
AT+CIPSTART="TCP","220.181.12.16",25
AT+CIPMODE=1
AT+CIPSEND
helo 163.com
auth login
MTg3MDI2MjMzNzVAMTYzLmNvbQ==【base64 郵箱賬號編碼】
eWtqQDUyMDE0MTMq【base64 郵箱密碼編碼】
mail from:< [email protected]>
rcpt to:<[email protected]>
data
from:18702623375
to:18702623375
subject:pldgdgdg safafsff.
【空行】
pugai
【空行】
.
//////////////////////////////////////////////試驗驗證//////////////////////////////////////////////////////
AT
OK
WIFI CONNECTED
AT+CWMODE=1
OK
AT+CWJAP="chuanxi_2.4G_104","jxau2017" WIFI DISCONNECT
AT+CWJAP="chuanxi_2.4G_104","jxau2017" busy p...
WIFI CONNECTED
AT+CIPMUX=0 busy p...
WIFI GOT IP OK
AT+CIPSTART="TCP","220.181.12.16",25
ERROR
CLOSED
AT+CIPSTART="TCP","220.181.12.16",25
ERROR
CLOSED
AT+RST
OK
WIFI DISCONNECT ets Jan 8 2013,rst cause:2, boot mode:(3,0) load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79 2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : DIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000 勩?僩溘s凃'|? d l鋰l屻{搇膌? d`勩;沝靌? $`屻s踠 彏? dl sd幟sl尀銓bl宐r|廲x`靗鋌$s刲#瀲'鐎no? 宒鷖$ ? l膰?? ?弆?d?o?臒銓# $鞄p 臒銓# d 刢p{l{$
Ai-Thinker Technology Co. Ltd. ready
AT+CIPSTART="TCP","220.181.12.16",25 no ip ERROR
WIFI CONNECTED
WIFI GOT IP
helo 163.com ERROR
AT+CIPMODE=1
OK
AT+CIPSEND
ERROR
AT+CIPSEND
ERROR
AT+CIPSEND
ERROR
AT+CIPMODE=1
OK
AT+CIPSEND
ERROR
AT
OK
AT+CWMODE=1
OK
AT+CWJAP="chuanxi_2.4G_104","jxau2017"
OK
AT+CIPMUX=0
OK
AT+CIPSTART="TCP","220.181.12.16",25
ERROR
CLOSED
AT+CIPSTART="TCP","220.181.12.16",25 CONNECT OK
220 163.com Anti-spam GT for Coremail System (163com[20141201])
AT+CIPMODE=1
OK
AT+CIPSEND
OK >250 OK
334 dXNlcm5hbWU6
334 UGFzc3dvcmQ6
235 Authentication successful
250 Mail OK
250 Mail OK
354 End data with <CR><LF>.<CR><LF>
250 Mail OK queued as smtp12,EMCowACXz2+NGq1ZX8yMFw--.29116S2 1504516787
cmd
telnet smtp.163.com 25 or telnet smtp.exmail.163.com 25
220 163.com Anti-spam GT for Coremail System (163com[20141201])
helo 163.com
250 OK
auth login
334 dXNlcm5hbWU6
MTg3MDI2MjMzNzVAMTYzLmNvbQ==
334 UGFzc3dvcmQ6
eWtqQDUyMDE0MTMq
235 Authentication successful
mail from:<
250 Mail OK
rcpt to:<[email protected]>
250 Mail OK
data
354 End data with <CR><LF>.<CR><LF>
from:18702623375
to:18702623375
subject:pldg
pldg
pldg
.
250 Mail OK queued as smtp5,D9GowAC331V6+KxZ1bf_AA--.252S2 1504508205
///////////////////////////////////網上資料///////////////////////////////////////////////////// 今天無意在一個論壇看到別人發帖用TELNET連線發信伺服器可以偽造發信人地址,就仔細看了一下如何使用TELNET來發送郵件
我測試了一下163和QQ都成功傳送了,但是偽造地址不行,這文章也不是重點說那個啊。。。。
首先要把登陸郵箱的使用者名稱和密碼用BASE64加密
可以用這個網站線上加密http://tool.chinaz.com/Tools/base64.aspx
然後
telnet smtp.qq.com 25
開始輸入
helo xiaoyu
auth login
eGlhb3l1(加密後的使用者名稱xiaoyu)
eGlhb3l1(加密後的密碼xiaoyu)
mail from:<
rcpt to:<[email protected]>
data
From:[email protected]
To:[email protected]
Subject:test
【空行】
test
【空行】
.(最後這個小數點一定要加上,以下是效果圖)
//////////////////////////////////////////WIF傳送AT指令//////////////////////////////////////
AT
AT+CWMODE=1
//AT+RST
AT+CWJAP="chuanxi_2.4G_104","jxau2017"
AT+CIPMUX=0
AT+CIPSTART="TCP","220.181.12.16",25
AT+CIPMODE=1
AT+CIPSEND
helo 163.com
auth login
MTg3MDI2MjMzNzVAMTYzLmNvbQ==【base64 郵箱賬號編碼】
eWtqQDUyMDE0MTMq【base64 郵箱密碼編碼】
mail from:<
rcpt to:<[email protected]>
data
from:18702623375
to:18702623375
subject:pldgdgdg safafsff.
【空行】
pugai
【空行】
.
//////////////////////////////////////////////試驗驗證//////////////////////////////////////////////////////
AT
OK
WIFI CONNECTED
AT+CWMODE=1
OK
AT+CWJAP="chuanxi_2.4G_104","jxau2017" WIFI DISCONNECT
AT+CWJAP="chuanxi_2.4G_104","jxau2017" busy p...
WIFI CONNECTED
AT+CIPMUX=0 busy p...
WIFI GOT IP OK
AT+CIPSTART="TCP","220.181.12.16",25
ERROR
CLOSED
AT+CIPSTART="TCP","220.181.12.16",25
ERROR
CLOSED
AT+RST
OK
WIFI DISCONNECT ets Jan 8 2013,rst cause:2, boot mode:(3,0) load 0x40100000, len 1856, room 16
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8
tail 0
chksum 0x79
csum 0x79 2nd boot version : 1.5
SPI Speed : 40MHz
SPI Mode : DIO
SPI Flash Size & Map: 32Mbit(512KB+512KB)
jump to run user1 @ 1000 勩?僩溘s凃'|? d l鋰l屻{搇膌? d`勩;沝靌? $`屻s踠 彏? dl sd幟sl尀銓bl宐r|廲x`靗鋌$s刲#瀲'鐎no? 宒鷖$ ? l膰?? ?弆?d?o?臒銓# $鞄p 臒銓# d 刢p{l{$
Ai-Thinker Technology Co. Ltd. ready
AT+CIPSTART="TCP","220.181.12.16",25 no ip ERROR
WIFI CONNECTED
WIFI GOT IP
helo 163.com ERROR
AT+CIPMODE=1
OK
AT+CIPSEND
ERROR
AT+CIPSEND
ERROR
AT+CIPSEND
ERROR
AT+CIPMODE=1
OK
AT+CIPSEND
ERROR
AT
OK
AT+CWMODE=1
OK
AT+CWJAP="chuanxi_2.4G_104","jxau2017"
OK
AT+CIPMUX=0
OK
AT+CIPSTART="TCP","220.181.12.16",25
ERROR
CLOSED
AT+CIPSTART="TCP","220.181.12.16",25 CONNECT OK
220 163.com Anti-spam GT for Coremail System (163com[20141201])
AT+CIPMODE=1
OK
AT+CIPSEND
OK >250 OK
334 dXNlcm5hbWU6
334 UGFzc3dvcmQ6
235 Authentication successful
250 Mail OK
250 Mail OK
354 End data with <CR><LF>.<CR><LF>
250 Mail OK queued as smtp12,EMCowACXz2+NGq1ZX8yMFw--.29116S2 1504516787