濮阳杆衣贸易有限公司

主頁 > 知識庫 > VBS加密解密源碼(UserAccounts.CommonDialog) 腳本之家修正版

VBS加密解密源碼(UserAccounts.CommonDialog) 腳本之家修正版

熱門標簽:前鋒辦理400電話申請 外呼營銷下單系統(tǒng) 新密防封卡外呼系統(tǒng)違法嗎 打電話的外呼系統(tǒng)貴不貴 陜西高頻外呼回撥系統(tǒng)哪家好 百度地圖標注怎么卸載 辦理膠州400電話財稅 海外美發(fā)店地圖標注 加盟電銷機器人好的品牌
用法:

1.copy下面代碼至文本文檔
2.將文件后綴名改為.vbs
3.雙擊運行
復制代碼 代碼如下:

Ans = InPutBox("請輸入要執(zhí)行的操作:1.加密,2.解密,3.退出。")
Ans = Int(Ans)
If Ans =1 Then
set fso=createobject("scripting.filesystemobject")
Set objDialog = CreateObject("UserAccounts.CommonDialog")
objDialog.Filter = "vbs File|*.vbs|All Files|*.*"
objDialog.InitialDir = ""
objDialog.ShowOpen
strLoadFile = objDialog.FileName
if not strLoadFile = "" then
set op=fso.opentextfile(strLoadFile)
dow=13
do while op.atendofstream=false
line=op.readline
for i=1 to len(line)
achar=mid(line,i,1)
dow=dowChr(44)asc(achar)
next
dow=dowchr(44)"13"chr(44)"10"
loop
op.close
set op=fso.opentextfile(strLoadFile,2)
op.write "strs=array("dow")"chr(13)chr(10)_
"for i=1 to UBound(strs)"chr(13)chr(10)_
" runner=runnerchr(strs(i))"chr(13)chr(10)_
"next"chr(13)chr(10)_
"Execute runner"
msgbox "加密成功",,"提示"
end if
end if
If Ans = 2 Then
Set objfs=CreateObject("scripting.filesystemobject")
Set objDialog=CreateObject("UserAccounts.CommonDialog")
objDialog.Filter="vbs File|*.vbs|All Files|*.*"
objDialog.InitialDir = ""
objDialog.ShowOpen
strLoadFile = objDialog.FileName
if not strLoadFile = "" then
set objf=objfs.opentextfile(strLoadFile)
str=objf.ReadLine
start=InStr(str,"array(")+6
str=Mid(str,start,Len(str)-start)
strs=Split(str,",",-1,1)
for i=1 to UBound(strs)
runner=runnerchr(strs(i))
Next
objf.Close
Set objf=objfs.OpenTextFile(strLoadFile,2)
objf.Write runner
MsgBox "解密成功",,"提示"
end if
end if
if Ans = 3 Then
Wscript.Quit
End If

注意上面的代碼只有在winxp下使用,原因可以參考https://www.jb51.net/article/26390.htm因為那個選擇文件功能不能使用而已,下面我們修改下,讓他支持win2000,win2003系統(tǒng),我們可以通過拖動文件到這個vbs上即可。
腳本之家修改的加強版本
復制代碼 代碼如下:

If WScript.Arguments.Count=0 Then WScript.Quit
strLoadFile=WScript.Arguments(0)
Ans = InPutBox("請輸入要執(zhí)行的操作:1.加密,2.解密,3.退出。")
Ans = Int(Ans)
If Ans =1 Then
set fso=createobject("scripting.filesystemobject")
if not strLoadFile = "" then
set op=fso.opentextfile(strLoadFile)
dow=13
do while op.atendofstream=false
line=op.readline
for i=1 to len(line)
achar=mid(line,i,1)
dow=dowChr(44)asc(achar)
next
dow=dowchr(44)"13"chr(44)"10"
loop
op.close
set op=fso.opentextfile(strLoadFile,2)
op.write "strs=array("dow")"chr(13)chr(10)_
"for i=1 to UBound(strs)"chr(13)chr(10)_
" runner=runnerchr(strs(i))"chr(13)chr(10)_
"next"chr(13)chr(10)_
"Execute runner"
msgbox "加密成功",,"提示"
end if
end if
If Ans = 2 Then
Set objfs=CreateObject("scripting.filesystemobject")
if not strLoadFile = "" then
set objf=objfs.opentextfile(strLoadFile)
str=objf.ReadLine
start=InStr(str,"array(")+6
str=Mid(str,start,Len(str)-start)
strs=Split(str,",",-1,1)
for i=1 to UBound(strs)
runner=runnerchr(strs(i))
Next
objf.Close
Set objf=objfs.OpenTextFile(strLoadFile,2)
objf.Write runner
MsgBox "解密成功",,"提示"
end if
end if
if Ans = 3 Then
Wscript.Quit
End If
您可能感興趣的文章:
  • VBS加密與VBE解密實現(xiàn)方法
  • 簡單的VBS加密實現(xiàn)代碼
  • VBS加密免殺器 下載
  • VBS加密14法你會幾種 VBS加密免殺淺談

標簽:伊春 咸陽 四平 牡丹江 阜陽 河南 梅州 武威

巨人網(wǎng)絡通訊聲明:本文標題《VBS加密解密源碼(UserAccounts.CommonDialog) 腳本之家修正版》,本文關鍵詞  VBS,加密解密,源碼,UserAccounts.CommonDialog,;如發(fā)現(xiàn)本文內(nèi)容存在版權問題,煩請?zhí)峁┫嚓P信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《VBS加密解密源碼(UserAccounts.CommonDialog) 腳本之家修正版》相關的同類信息!
  • 本頁收集關于VBS加密解密源碼(UserAccounts.CommonDialog) 腳本之家修正版的相關信息資訊供網(wǎng)民參考!
  • 推薦文章
    绥化市| 施秉县| 清新县| 德惠市| 徐汇区| 吉林省| 北辰区| 晋城| 潼南县| 曲周县| 通城县| 武宁县| 腾冲县| 杭州市| 乌鲁木齐县| 离岛区| 新蔡县| 仁布县| 五寨县| 新密市| 恩平市| 北京市| 舒城县| 定陶县| 资阳市| 江安县| 天门市| 明光市| 舒城县| 土默特右旗| 福清市| 瑞昌市| 辽源市| 柯坪县| 兴山县| 洞头县| 广州市| 汉阴县| 阿瓦提县| 双鸭山市| 台山市|