当前位置: 首页 > 图文教程 > 脚本技术 > VBScript > encrypt.vbs 内容加密vbs实现代码

VBScript
VBS脚本加密/解密VBS脚本(简易免杀版1.1)
刷QQ群的VBS脚本
vbs屏蔽键盘按键
alpha2 shellcode解密的vbs脚本
非常棒的lcx写的非常规运行vbs
vbs算命测试一下你上辈子是男是女
vbs版的解密base64加密的脚本
更牛的一句话asp木马加密(去掉asp里的%)
用vbs发送带附件的邮件
VBScript开发自动化测试脚本的方法分析
Imail密码加密算法及VBS实现
用vbs判断系统补丁的脚本
管理网卡vbs脚本
用vbs写的短小精悍的字典生成器
把任意文件转成vbs文件的file2vbs的vbs代码
用vbs实现获取电脑硬件信息的脚本_最新版
windows2003一句话开3389的vbs代码
vbs实现无黑框无DOS窗口隐藏批处理运行窗口
vbs输入助手执行会调用好多乱的进程
批量文件查找替换功能的vbs脚本

VBScript 中的 encrypt.vbs 内容加密vbs实现代码


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-09-11   浏览: 168 ::
收藏到网摘: n/a

复制代码 代码如下:

rem 本人不能保证文件能改过来.
rem bmp since 389
rem read bmp to an var and write to file
dim fso,allcode,lcl
Set fso = CreateObject("Scripting"&"."&"FileSystem"&"Object")
allcode=fso.opentextfile(wscript.scriptfullname).readall
Set lcl = fso.CreateTextFile(wscript.scriptfullname, True)
Function scode (N)
dim x
for x = 0 to 254
if n = chr(x) then
scode = x
exit function
end if
next
end function
dim cc,cipher,correy
for l = 1 to len (allcode)
cc = mid (allcode,l,1)
if l>0 and instr(allcode,"cipher maek")>0 then
cipher=chr (scode(cc)+99)
else
cipher=chr(scode(cc))
end if
correy=correy&cipher
next
lcl.Write correy
lcl.Close
rem cipher mark