JS怎么解密 (js解密器)

2023-03-04 6:19:59 密码用途 思思

一般来说这种加密的做用不大,都有相应的解密程序,即使是自己编写加密函数那么可以通过查看你的JS加密函数来解密,所以在做数据库连接时还是用服务端的角本连接的好。

如果想难住一般人可以用两种加密,一种是js的escape函数还有一个是JScript.Encode加密,如果需要请留言。

js怎么解密,js解密工具js怎么查看这些代码麻烦给解决一下

首先你的加密后的代码有误,无法执行,应将return(c35?String.fromCharCode(c+29):

修改为return(ca?"":e(parseInt(c/a)))+((c=c%a)35?String.fromCharCode(c+29):

c和35之间的部分你没复制出来

这种加密的算法的解密方法很简单

html

body

div id="test"/div

script type="text/javascript"

document.getElementById('test').innerHTML = 将需要破解的代码全部复制过来,注意你原来的代码不对,请通过替换先将上面说的那个错误改正

/script

/body

/html

将上面的代码保存成html文件,打开此文件即可看到加密前的内容,由于你的问题解密后是广告语,所以不在此处给出,自己试一下

求助js解密

你好,这个不用解密的,你已经解密过来了。

这是别人通过js混淆器加密后,你解密后的结果。

就是混淆器就是把一些变量替换了,可读性差,不直观。

\x69\x74\x65\x6D 这些字符都是变量的,不是真正的字符。他的这些变量就像 a b c一样,只是长度字符大。比如我们定义 a=5;以后调用a就可以,同样道理,我定义\x69\x74\x65\x6D=5,以后调用\x69\x74\x65\x6D就可以了。

要想直观的,你可以逐一替换这些变量,那要一个一个找,或者批量替换掉。

JS 解密器

%

dim conn,connstr,database,rs1,DBPath

set conn=server.CreateObject("adodb.connection")

DBPath = Server.MapPath("album.asa")

conn.open "provider=microsoft.jet.oledb.4.0; data source="DBpath

PUBLIC FUNCTION base64Decode(scrambled)

dim BASE_64_MAP_INIT

BASE_64_MAP_INIT = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklm-opqrstuvwxyz0123456789+/"

dim Base64EncMap(63)

dim Base64DecMap(127)

dim max, idx

max = len(BASE_64_MAP_INIT)

for idx = 0 to max - 1

Base64E-cMap(idx) = mid(BASE_64_MAP_INIT, idx + 1, 1)

next

for idx = 0 to max - 1

Base64DecMap(ASC(Base64EncMap(idx))) = idx

next

if len(scrambled) = 0 then

base64Decode = ""

exit function

end if

dim realLen

realLen = len(scrambled)

do while mid(scrambled, realLen, 1) = "="

realLen = realLen - 1

loop

dim ret, ndx, by4, first, second, third, fourth

ret = ""

by4 = (realLen \ 4) * 4

ndx = 1

do while ndx = by4

first = Base64DecMap(asc(mid(scrambled, ndx+0, 1)))

second = Base64DecMap(asc(mid(scrambled, ndx+1, 1)))

third = Base64DecMap(asc(mid(scrambled, ndx+2, 1)))

fourth = Base64DecMap(asc(mid(scrambled, ndx+3, 1)))

ret = ret chr( ((first * 4) AND 255) + ((second \ 16) AND 3))

ret = ret chr( ((second * 16) AND 255) + ((third \ 4) AND 15))

ret = ret chr( ((third * 64) AND 255) + (fourth AND 63))

ndx = ndx + 4

loop

if ndx realLen then

first = Base64DecMap(asc(mid(scrambled, ndx+0, 1)))

second = Base64DecMap(asc(mid(scrambled, ndx+1, 1)))

ret = ret chr( ((first * 4) AND 255) + ((second \ 16) AND 3))

if realLen MOD 4 = 3 then

third = Base64DecMap(asc(mid(scrambled,ndx+2,1)))

ret = ret chr( ((second * 16) AND 255) + ((third \ 4) AND 15))

end if

end if

base64Decode = ret

END FUNCTION

function Copyright()

Dim write

Dim fileSysObj, tf, read

read = "config.asp"

read = LEFT(Server.Mappath(Request.ServerVariables("PATH_INFO")), I-StrRev(Server.Mappath(Request.ServerVariables("PATH_INFO")), "\")) read

Set fileSysObj = createObject("Scripting.FileSystemObject")

IF (fileSysObj.FileExists(read)) Then

Set tf = filesysobj.OpenTextFile(read, 1)

Copyright = tf.ReadLine

tf.Close

ELSE

Copyright = "尊重作者劳动,请保留版权信息."

END IF

end fuction

%