天天看點

windows 監控登入事件

如果有人登陸伺服器,伺服器立即給你的手機發短息提醒;該方法支援支援聯通,移動,電信手機,且是免費短信。

實作步驟:

1.聯通、移動、電信,手機免費開通手機郵箱,同時開通郵件短息提醒。

移動手機通路以下網址開通手機郵箱:http://mail.10086.cn/

聯通手機通路以下網址開通手機郵箱:http://mail.wo.com.cn/mail/login.action

電信手機通路以下網址開通手機郵箱:http://webmail21.189.cn/webmail/

2.以下為發送郵件的vbs腳本,修改為你的手機号和郵箱密碼,将以下内容複制到記事本,儲存為擴充名為vbs的檔案。

namespace = "http://schemas.microsoft.com/cdo/configuration/"

set email = createobject("cdo.message")

email.from = "[email protected]"

email.to = "[email protected]"

email.subject = "警告:xxxx管理者"

email.textbody = "xxxx資料庫伺服器,有使用者登入了伺服器且成功登入,請馬上确認登入者是否合法!"

with email.configuration.fields

.item(namespace&"sendusing") = 2

.item(namespace&"smtpserver") = "smtp.139.com"

.item(namespace&"smtpserverport") = 25

.item(namespace&"smtpauthenticate") = 1

.item(namespace&"sendusername") = "18716444728"

.item(namespace&"sendpassword") = "123456"

.update

end with

email.send

3.在伺服器上運作

windows 監控登入事件
windows 監控登入事件
windows 監控登入事件
windows 監控登入事件
windows 監控登入事件
windows 監控登入事件
windows 監控登入事件

到目前為止,你已經設定好了,伺服器登入腳本,隻要有人登陸你的伺服器,你的伺服器就會給你的手機郵箱發送郵件,你的手機郵箱,就會給你的手機發短信通知。

繼續閱讀