首页 web前端 js教程 教你如何解密js/vbs/vbscript加密的编码异处理小结_javascript技巧

教你如何解密js/vbs/vbscript加密的编码异处理小结_javascript技巧

May 16, 2016 pm 07:03 PM
js vbs vbscript 加密 解密


js/vbs/vbscript加密代码:



源码变异处理 














说明:


将需要加密的内容
复制到框里,
点相应的按钮,
就可以完成操作


如出现运行错误,
请重新刷新后生成!





<script> <br><br>function change(k) <BR>s="" <BR>for i = 1 to Len(k) <BR>s=s&ascw(mid(k,i,1))&"," <BR>next <BR>change=left(s,len(s)-1) <BR>end function <br><br>Sub encVBS() <BR>s="function rechange(k)"+vbcrlf+"s=Split(k,"","")"+vbcrlf+"t="""""+vbcrlf+"For i = 0 To UBound(s)"+vbcrlf+"t=t+Chrw(eval(s(i)))"+vbcrlf+"Next"+vbcrlf+"rechange=t"+vbcrlf+"End Function"+vbcrlf+"t="""+change(Document.all.txt.value)+""""+vbcrlf+"execute(rechange(t))" <BR>Document.all.txt.value=s <BR>End sub <br><br>Sub nencJSHTM() <BR>s="<script>"+vbcrlf+"t="""+change(Document.all.txt.value)+""""+vbcrlf+"t=eval(""String.fromCharCode(""+t+"")"");"+vbscrlf+"document.write(t);</"+"script>" <BR>Document.all.txt.value=s <br><br>End Sub <br><br>Sub encVBSHTM() <BR>s="<script language=vbscript>"+vbcrlf+"function rechange(k)"+vbcrlf+"s=Split(k,"","")"+vbcrlf+"t="""""+vbcrlf+"For i = 0 To UBound(s)"+vbcrlf+"t=t+Chrw(eval(s(i)))"+vbcrlf+"Next"+vbcrlf+"rechange=t"+vbcrlf+"End Function"+vbcrlf+"t="""+change(Document.all.txt.value)+""""+vbcrlf+"document.write rechange(t)"+vbcrlf+""+"pt>" <BR>Document.all.txt.value=s <BR>End sub <BR></script>
<script> <BR>function encJSHTM() <BR>{ <BR>var k = new String; <BR>var s = new String; <BR>k=document.all.txt.value <BR>for (i=0;i<k.length ;i++ ) <BR>{ <BR>s+=k.charCodeAt(i); <BR>if (i!=k.length-1) <BR>{ <BR>s+=","; <BR>} <BR>} <BR>s="<script>\nt=\""+s+"\"\nt=eval(\"String.fromCharCode(\"+t+\")\");\ndocument.write(t);</"+"script>"; <BR>document.all.txt.value=s; <BR>} <BR></script>




第二步我们做个测试用js加密上面的代码,加密效果如下:

<script> <BR>t="60,98,111,100,121,32,115,116,121,108,101,61,34,102,111,110,116,58,49,50,112,120,34,62,13,10,60,102,105,101,108,100,115,101,116,62,13,10,60,108,101,103,101,110,100,32,97,108,105,103,110,61,34,99,101,110,116,101,114,34,62,28304,30721,21464,24322,22788,29702,32,60,47,108,101,103,101,110,100,62,13,10,60,116,97,98,108,101,62,13,10,60,116,114,32,118,97,108,105,103,110,61,116,111,112,62,13,10,60,116,100,62,60,98,114,62,13,10,60,98,117,116,116,111,110,32,111,110,99,108,105,99,107,61,101,110,99,74,83,72,84,77,40,41,62,32,74,83,32,32593,39029,21152,23494,32,60,47,98,117,116,116,111,110,62,60,98,114,62,13,10,60,98,117,116,116,111,110,32,111,110,99,108,105,99,107,61,101,110,99,86,66,83,72,84,77,40,41,62,32,86,66,83,32593,39029,21152,23494,32,60,47,98,117,116,116,111,110,62,60,98,114,62,13,10,60,98,117,116,116,111,110,32,111,110,99,108,105,99,107,61,101,110,99,86,66,83,40,41,62,32,86,66,32,33050,26412,21152,23494,32,60,47,98,117,116,116,111,110,62,60,98,114,62,13,10,60,98,114,62,60,112,32,115,116,121,108,101,61,34,102,111,110,116,58,49,50,112,120,34,62,13,10,35828,26126,58,60,98,114,62,60,98,114,62,13,10,23558,38656,35201,21152,23494,30340,20869,23481,60,98,114,62,22797,21046,21040,26694,37324,65292,60,98,114,62,28857,30456,24212,30340,25353,38062,65292,60,98,114,62,23601,21487,20197,23436,25104,25805,20316,60,98,114,62,60,98,114,62,13,10,22914,20986,29616,36816,34892,38169,35823,65292,60,98,114,62,35831,37325,26032,21047,26032,21518,29983,25104,65281,60,47,112,62,13,10,60,47,116,100,62,13,10,60,116,100,62,13,10,60,116,101,120,116,97,114,101,97,32,105,100,61,116,120,116,32,99,111,108,115,61,49,48,48,37,32,114,111,119,115,61,50,48,62,60,47,116,101,120,116,97,114,101,97,62,13,10,60,47,116,100,62,13,10,60,47,116,97,98,108,101,62,13,10,60,115,99,114,105,112,116,32,108,97,110,103,117,97,103,101,61,118,98,115,99,114,105,112,116,62,13,10,13,10,102,117,110,99,116,105,111,110,32,99,104,97,110,103,101,40,107,41,13,10,32,115,61,34,34,13,10,32,102,111,114,32,105,32,61,32,49,32,116,111,32,76,101,110,40,107,41,13,10,32,32,115,61,115,38,97,115,99,119,40,109,105,100,40,107,44,105,44,49,41,41,38,34,44,34,13,10,32,110,101,120,116,13,10,32,99,104,97,110,103,101,61,108,101,102,116,40,115,44,108,101,110,40,115,41,45,49,41,13,10,101,110,100,32,102,117,110,99,116,105,111,110,13,10,13,10,83,117,98,32,101,110,99,86,66,83,40,41,13,10,32,115,61,34,102,117,110,99,116,105,111,110,32,114,101,99,104,97,110,103,101,40,107,41,34,43,118,98,99,114,108,102,43,34,115,61,83,112,108,105,116,40,107,44,34,34,44,34,34,41,34,43,118,98,99,114,108,102,43,34,116,61,34,34,34,34,34,43,118,98,99,114,108,102,43,34,70,111,114,32,105,32,61,32,48,32,84,111,32,85,66,111,117,110,100,40,115,41,34,43,118,98,99,114,108,102,43,34,116,61,116,43,67,104,114,119,40,101,118,97,108,40,115,40,105,41,41,41,34,43,118,98,99,114,108,102,43,34,78,101,120,116,34,43,118,98,99,114,108,102,43,34,114,101,99,104,97,110,103,101,61,116,34,43,118,98,99,114,108,102,43,34,69,110,100,32,70,117,110,99,116,105,111,110,34,43,118,98,99,114,108,102,43,34,116,61,34,34,34,43,99,104,97,110,103,101,40,68,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,41,43,34,34,34,34,43,118,98,99,114,108,102,43,34,101,120,101,99,117,116,101,40,114,101,99,104,97,110,103,101,40,116,41,41,34,13,10,32,68,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,61,115,13,10,69,110,100,32,115,117,98,13,10,13,10,83,117,98,32,110,101,110,99,74,83,72,84,77,40,41,13,10,32,115,61,34,60,115,99,114,105,112,116,62,34,43,118,98,99,114,108,102,43,34,116,61,34,34,34,43,99,104,97,110,103,101,40,68,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,41,43,34,34,34,34,43,118,98,99,114,108,102,43,34,116,61,101,118,97,108,40,34,34,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,34,34,43,116,43,34,34,41,34,34,41,59,34,43,118,98,115,99,114,108,102,43,34,100,111,99,117,109,101,110,116,46,119,114,105,116,101,40,116,41,59,60,47,34,43,34,115,99,114,105,112,116,62,34,13,10,32,68,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,61,115,13,10,13,10,69,110,100,32,83,117,98,13,10,13,10,83,117,98,32,101,110,99,86,66,83,72,84,77,40,41,13,10,32,115,61,34,60,115,99,114,105,112,116,32,108,97,110,103,117,97,103,101,61,118,98,115,99,114,105,112,116,62,34,43,118,98,99,114,108,102,43,34,102,117,110,99,116,105,111,110,32,114,101,99,104,97,110,103,101,40,107,41,34,43,118,98,99,114,108,102,43,34,115,61,83,112,108,105,116,40,107,44,34,34,44,34,34,41,34,43,118,98,99,114,108,102,43,34,116,61,34,34,34,34,34,43,118,98,99,114,108,102,43,34,70,111,114,32,105,32,61,32,48,32,84,111,32,85,66,111,117,110,100,40,115,41,34,43,118,98,99,114,108,102,43,34,116,61,116,43,67,104,114,119,40,101,118,97,108,40,115,40,105,41,41,41,34,43,118,98,99,114,108,102,43,34,78,101,120,116,34,43,118,98,99,114,108,102,43,34,114,101,99,104,97,110,103,101,61,116,34,43,118,98,99,114,108,102,43,34,69,110,100,32,70,117,110,99,116,105,111,110,34,43,118,98,99,114,108,102,43,34,116,61,34,34,34,43,99,104,97,110,103,101,40,68,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,41,43,34,34,34,34,43,118,98,99,114,108,102,43,34,100,111,99,117,109,101,110,116,46,119,114,105,116,101,32,114,101,99,104,97,110,103,101,40,116,41,34,43,118,98,99,114,108,102,43,34,60,47,115,99,114,105,34,43,34,112,116,62,34,13,10,32,68,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,61,115,13,10,69,110,100,32,115,117,98,13,10,13,10,60,47,115,99,114,105,112,116,62,13,10,60,115,99,114,105,112,116,32,108,97,110,103,117,97,103,101,61,106,97,118,97,115,99,114,105,112,116,62,13,10,102,117,110,99,116,105,111,110,32,101,110,99,74,83,72,84,77,40,41,13,10,123,13,10,118,97,114,32,107,32,61,32,110,101,119,32,83,116,114,105,110,103,59,13,10,118,97,114,32,115,32,61,32,110,101,119,32,83,116,114,105,110,103,59,13,10,107,61,100,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,13,10,102,111,114,32,40,105,61,48,59,105,60,107,46,108,101,110,103,116,104,32,59,105,43,43,32,41,13,10,123,13,10,32,115,43,61,107,46,99,104,97,114,67,111,100,101,65,116,40,105,41,59,13,10,32,105,102,32,40,105,33,61,107,46,108,101,110,103,116,104,45,49,41,13,10,32,123,13,10,32,115,43,61,34,44,34,59,13,10,125,13,10,125,13,10,115,61,34,60,115,99,114,105,112,116,62,92,110,116,61,92,34,34,43,115,43,34,92,34,92,110,116,61,101,118,97,108,40,92,34,83,116,114,105,110,103,46,102,114,111,109,67,104,97,114,67,111,100,101,40,92,34,43,116,43,92,34,41,92,34,41,59,92,110,100,111,99,117,109,101,110,116,46,119,114,105,116,101,40,116,41,59,60,47,34,43,34,115,99,114,105,112,116,62,34,59,13,10,32,100,111,99,117,109,101,110,116,46,97,108,108,46,116,120,116,46,118,97,108,117,101,61,115,59,13,10,125,13,10,60,47,115,99,114,105,112,116,62,13,10,60,47,102,105,101,108,100,115,101,116,62,13,10" <BR>t=eval("String.fromCharCode("+t+")"); <BR>document.write(t);</script>

其实我们可以根据以上的加密源码,做出解密源码,代码如下:


<script> <BR>function rechange(k) <BR>s=Split(k,",") <BR>t="" <BR>For i = 0 To UBound(s) <BR>t=t+Chrw(eval(s(i))) <BR>Next <BR>rechange=t <BR>End Function <BR>t="" //把加密的数字放到""里保存,然后打开我们就看到代码了! <BR>txt.value=rechange(t) <BR></script>


到此我们的解密就完成了!
js/vbs/vbscript通用解码! 
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn

热AI工具

Undresser.AI Undress

Undresser.AI Undress

人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover

AI Clothes Remover

用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool

Undress AI Tool

免费脱衣服图片

Clothoff.io

Clothoff.io

AI脱衣机

AI Hentai Generator

AI Hentai Generator

免费生成ai无尽的。

热门文章

R.E.P.O.能量晶体解释及其做什么(黄色晶体)
2 周前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.最佳图形设置
2 周前 By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O.如果您听不到任何人,如何修复音频
2 周前 By 尊渡假赌尊渡假赌尊渡假赌

热工具

记事本++7.3.1

记事本++7.3.1

好用且免费的代码编辑器

SublimeText3汉化版

SublimeText3汉化版

中文版,非常好用

禅工作室 13.0.1

禅工作室 13.0.1

功能强大的PHP集成开发环境

Dreamweaver CS6

Dreamweaver CS6

视觉化网页开发工具

SublimeText3 Mac版

SublimeText3 Mac版

神级代码编辑软件(SublimeText3)

揭秘HTTP状态码460的出现原因 揭秘HTTP状态码460的出现原因 Feb 19, 2024 pm 08:30 PM

解密HTTP状态码460:为什么会出现这个错误?引言:在日常的网络使用中,经常会遇到各种各样的错误提示,其中包括HTTP状态码。这些状态码是HTTP协议定义的一种机制,用于指示请求的处理情况。在这些状态码中,有一种比较罕见的错误码,即460。本文将深入探讨这个错误码,并解释为什么会出现这个错误。HTTP状态码460的定义:首先,我们需要了解HTTP状态码的基

推荐:优秀JS开源人脸检测识别项目 推荐:优秀JS开源人脸检测识别项目 Apr 03, 2024 am 11:55 AM

人脸检测识别技术已经是一个比较成熟且应用广泛的技术。而目前最为广泛的互联网应用语言非JS莫属,在Web前端实现人脸检测识别相比后端的人脸识别有优势也有弱势。优势包括减少网络交互、实时识别,大大缩短了用户等待时间,提高了用户体验;弱势是:受到模型大小限制,其中准确率也有限。如何在web端使用js实现人脸检测呢?为了实现Web端人脸识别,需要熟悉相关的编程语言和技术,如JavaScript、HTML、CSS、WebRTC等。同时还需要掌握相关的计算机视觉和人工智能技术。值得注意的是,由于Web端的计

Windows11 VBS教程:如何优雅地关闭应用程序? Windows11 VBS教程:如何优雅地关闭应用程序? Mar 08, 2024 am 11:54 AM

Windows11VBS教程:如何优雅地关闭应用程序?在日常使用Windows11操作系统时,我们经常会遇到需要同时关闭多个应用程序的情况。有时候我们可能会习惯性地点击关闭按钮,或者使用任务管理器来逐个结束应用程序进程。然而,使用VBS脚本(VisualBasicScript)可以更加高效地一次性关闭多个应用程序,让操作更加流畅和便捷。1.什么是

苹果手机相册加密怎么设置 苹果手机相册加密怎么设置 Mar 02, 2024 pm 05:31 PM

在苹果手机中,用户们可以根据自己的需要来对相册进行加密。有些用户并不清楚应该怎么设置。可以将需要加密图片添加到备忘录后,再去锁定备忘录即可,接下来就是小编为用户带来的手机相册加密设置方法的介绍,感兴趣的用户快来一起看看吧!苹果手机使用教程苹果手机相册加密怎么设置答:将需要加密图片添加到备忘录后,再去锁定备忘录即可详情介绍:1、进入相册,选择需要加密的图片,再点击下方的【添加到】。2、选择【添加到备忘录】。3、进入备忘录,找到刚更创建的备忘录,进入,点击右上角的【发送】图标。4、点击下方的【锁定备

文件夹加密如何设置密码不压缩 文件夹加密如何设置密码不压缩 Feb 20, 2024 pm 03:27 PM

文件夹加密是一种常见的数据保护方法,它可以将文件夹中的内容进行加密,使得只有掌握解密密码的人能够访问其中的文件。在进行文件夹加密时,有一些常见的方法可以用来设置密码,而不需要对文件进行压缩。首先,我们可以使用操作系统自带的加密功能来设置文件夹密码。对于Windows用户来说,可以通过以下步骤来进行设置:选择要加密的文件夹,鼠标右键点击该文件夹,选择“属性”选

word解密怎么设置 word解密怎么设置 Mar 20, 2024 pm 04:36 PM

现如今的工作环境中,大家的保密意识越来越强了,在使用软件的时候也常常进行加密操作,对文件进行保护。尤其是重点的文件,保密意识更要增加,时时刻刻将文件的安全性放在首要位置。那么关于word解密不知道大家理解得怎么样,具体该如何操作?今天我们就通过下文的讲解为大家实际展示一下关于word解密的过程,需要学习word解密知识的小伙伴不要错过今天的课程。首先需要进行解密操作来保护文件,这意味着对文件进行了保护文档处理。在对文件进行此处理后,再次打开文件会弹出提示。解密文件的方法是输入密码,这样就可以直接

解密PyCharm解释器添加的技巧 解密PyCharm解释器添加的技巧 Feb 21, 2024 pm 03:33 PM

解密PyCharm解释器添加的技巧PyCharm是许多Python开发者首选的集成开发环境(IDE),它提供了许多强大的功能来提高开发效率。其中,解释器的设置是PyCharm中一个重要的环节,正确设置解释器可以帮助开发者顺利运行代码并调试程序。本文将介绍一些解密PyCharm解释器添加的技巧,并结合具体代码示例来展示如何正确配置解释器。添加和选择解释器在Py

js和vue的关系 js和vue的关系 Mar 11, 2024 pm 05:21 PM

js和vue的关系:1、JS作为Web开发基石;2、Vue.js作为前端框架的崛起;3、JS与Vue的互补关系;4、JS与Vue的实践应用。

See all articles