手机
当前位置:查字典教程网 >脚本专栏 >vbs >vbs imail 密码解密
vbs imail 密码解密
摘要:复制代码代码如下:onerrorresumenextconstHKEY_LOCAL_MACHINE=&H80000002strCompute...

复制代码 代码如下:

on error resume next

const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!" &_

strComputer & "rootdefault:StdRegProv")

strKeyPath = "SOFTWAREIpswitchIMailDomains"

oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys

For Each subkey In arrSubKeys

wscript.echo "Domain: "&subkey

strKeyPath2 = strKeyPath&""&subkey&"Users"

oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath2, arrSubKeys2

For Each subkey2 In arrSubKeys2

strKeyPath3=strKeyPath2&""&subkey2

strValueName = "Password"

oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath3,strValueName,strValue

if len(subkey2) and len(strValue) then

wscript.echo subkey2 &" : " & decrypt(subkey2,strValue)

end if

Next

Next

function decrypt(name,pass)

while len(name)<len(pass)/2

name=name&name

wend

for i=0 to len(pass)/2-1

p=mid(pass,2*i+1,2)

p="&H"&p

n=mid(name,i+1,1)

decrypt=decrypt&chr(clng(p)-asc(n))

next

end function

【vbs imail 密码解密】相关文章:

vbscript Registry 注册表操作实现代码(读写删除)

vbs之使用Internet Explorer 屏蔽密码

vbscript sendkeys实例代码大全

vbs 多线程下载实现代码

用vbscript防止本地用户更改其密码

vbs Size 属性使用介绍(获取文件大小)

用vbs实现cmd功能的代码

vbs 注册表操作类代码

用vbs实现禁用服务

vbs脚本 加密 几个小细节小结下

精品推荐
分类导航