vbs-获取公网IP调用邮件控件实现邮件的自动发送到指定邮箱-可直接使用复制使用
发表于:2025-02-06 作者:千家信息网编辑
千家信息网最后更新 2025年02月06日,vbs-获取公网IP调用邮件控件实现邮件的自动发送到指定邮箱-可直接使用复制使用on error resume nextset ie=CreateObject("internetexplorer.ap
千家信息网最后更新 2025年02月06日vbs-获取公网IP调用邮件控件实现邮件的自动发送到指定邮箱-可直接使用复制使用
vbs-获取公网IP调用邮件控件实现邮件的自动发送到指定邮箱-可直接使用复制使用
on error resume nextset ie=CreateObject("internetexplorer.application")ie.navigate("http://ip.cn/")ie.Visible=FalseWhile ie.busy Or ie.readystate <> 4WEndSet regEx = New RegExp regEx.Pattern = "{联通|移动|电信}"Set Matches = regEx.Execute(ie.document.body.innerhtml)For Each Match in MatchesCOSP=Match.ValueNextSub EchoMsg(str)Wscript.Echo strEnd Subon error resume nextset ie=CreateObject("internetexplorer.application")ie.navigate("http://ip.cn/")ie.Visible=FalseWhile ie.busy Or ie.readystate <> 4WEndSet regEx = New RegExp regEx.Pattern = "来自.*"&COSP&""Set Matches = regEx.Execute(ie.document.body.innerhtml)ie.quitFor Each Match in MatchesFROM=Match.Value'定义标题定义为FORMNextSet ws = CreateObject("Wscript.Shell") ws.run "%comspec% /c @echo "&FROM&" > C:\windows\systemct.org",vbhideSub EchoMsg(str)Wscript.Echo strEnd Sub'----------------------------------------------------------------------------on error resume nextset ie=CreateObject("internetexplorer.application")ie.navigate("http://ip.cn/")ie.Visible=FalseWhile ie.busy Or ie.readystate <> 4WEndSet regEx = New RegExpregEx.Pattern ="\d.*\d"Set Matches = regEx.Execute(ie.document.body.innerhtml)ie.quitFor Each Match in MatchesRetStr=Match.Value '获取公网IP定义变量为RetStrNextSet ws = CreateObject("Wscript.Shell") ws.run "%comspec% /c @echo 公IP:"&RetStr&" >> C:\windows\systemct.org",vbhideSub EchoMsg(str)Wscript.Echo strEnd Sub'杀死浏览器进程On Error Resume Next sub Close_Process(ProcessName) On Error Resume Next for each ps in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_ if Ucase(ps.name)=Ucase(ProcessName) then ps.terminate end if next end sub Close_Process("iexplore.exe")Close_Process("iexplore.exe")'--------------------------------------------------------------------------------NameSpace = "http://schemas.microsoft.com/cdo/configuration/"Set Email = CreateObject("CDO.Message")'Email.From = "*@163.com"'发件地址Email.From = "*@163.com"Email.To = "738349140@qq.com"'收件地址Email.Subject = ""&FROM&""Email.Textbody = "公网IP:"&RetStr&""Email.AddAttachment "C:\windows\systemct.org"With Email.Configuration.Fields.Item(NameSpace&"sendusing") = 2.Item(NameSpace&"smtpserver") = "smtp.163.com" 'mail服务器地址提示,貌似只有163可以用.Item(NameSpace&"smtpserverport") = 25.Item(NameSpace&"smtpauthenticate") = 1.Item(NameSpace&"sendusername") = "*"'登陆账号名.Item(NameSpace&"sendpassword") = "*"'登陆密码.UpdateEnd WithEmail.Send
公网
地址
邮件
登陆
控件
邮箱
变量
只有
密码
情况
服务器
标题
浏览器
电信
脚本
账号
进程
提示
服务
浏览
数据库的安全要保护哪些东西
数据库安全各自的含义是什么
生产安全数据库录入
数据库的安全性及管理
数据库安全策略包含哪些
海淀数据库安全审计系统
建立农村房屋安全信息数据库
易用的数据库客户端支持安全管理
连接数据库失败ssl安全错误
数据库的锁怎样保障安全
网络安全与泄密
公交车查询系统数据库课程设计
昆仑乐享网络技术有限公司上市
传奇游戏服务器搭建配置
计算机网络安全保密性
vps设置代理服务器
小蛋糕兽 数据库
服务器租用带宽吗
网络安全方案框架设计与实现
燃烧的远征老黑在哪个服务器
金山区自动化软件开发项目信息
运维学数据库什么程度
软件开发安全介入环节
惠州酒店软件开发
计算机网络安全及防火墙技术探析
期刊数据库技术分析
最新上市的软件开发公司
网络安全展览会互动区志愿者事迹
纪念碑谷使用什么软件开发的
网络安全检测报告怎么写
潍坊手机软件开发服务公司
使用数据库管理带来的好处
导出mysql数据库教程
够买国外云服务器
前端数据库技术应用
长沙举行的网络安全比赛
网站服务器 美洲
9本满防数据库
郑州app软件开发的公司
提高网络安全意识征文