Shellcode加密解密函数
作者:Bin 来源:Bin博客 时间:2009-04-24 11:18:00
不知道写得对不对啊!错了再改吧!
加密函数
Function Encodestr(s,xorstr)
Dim en
For i=1 To Len(s)
en = en & hex (Asc(Mid(s,i,1)) Xor "&h"&xorstr)
Next
If Len(s) Mod 2 >0 Then
en = en & "00"
End If
Set regex=new regExp
regex.pattern="(..)(..)"
regex.IgnoreCase=true
regex.global=true
matches=regex.replace(en,"%u$2$1")
Encodestr=LCase(matches)
End Function
解密函数
Function Decodestr(s,xorstr)
Dim de,destr
de=Replace(s,"%u","")
set regex=new regExp
regex.pattern="(..)(..)"
regex.IgnoreCase=true
regex.global=true
matches=regex.replace(de,"$2$1")
For i = 1 To Len(matches) step 2
hexTmp = Mid(matches,i,2)
If hexTmp <> "00" Then
destr = destr & CHR(CLng("&h" & hexTmp) Xor "&h"&xorstr)
End If
Next
Decodestr=LCase(destr)
End Function
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
JavaScript设置获取和设置属性的方法
vue.js选中动态绑定的radio的指定项
![](https://img.aspxhome.com/file/2023/8/132938_0s.png)
Http与https对比详细介绍
python3从网络摄像机解析mjpeg http流的示例
lnmp下如何关闭Mysql日志保护磁盘空间
Python基础学习之反射机制详解
ASP隐藏真实文件的下载功能实现代码
如何用SQLMail建立一个电子刊物自动处理系统?
使用python svm实现直接可用的手写数字识别
![](https://img.aspxhome.com/file/2023/3/99603_0s.jpg)
详解基于pycharm的requests库使用教程
![](https://img.aspxhome.com/file/2023/0/64740_0s.jpg)
python 协程 gevent原理与用法分析
python中urlparse模块介绍与使用示例
asp去除html的函数代码分析附实例说明
pytorch 实现二分类交叉熵逆样本频率权重
![](https://img.aspxhome.com/file/2023/5/90365_0s.png)
实现有批量删除功能的ASP留言板
Python之ThreadPoolExecutor线程池问题
![](https://img.aspxhome.com/file/2023/0/131260_0s.png)
Python编写条件分支代码方法
python实现简单的tcp 文件下载
python实现门限回归方式
![](https://img.aspxhome.com/file/2023/8/79668_0s.jpg)