一个加密了的弹窗代码,有什么办法解密?

Pigmai 2009-04-22 07:57:39
oV5.write(fV6('PGlucHV0IHN0eWxlPSJ3aWR0aDowcHg7IHRvcDowcHg7IHBvc2l0aW9uOmFic29sdXRlOyB2aXNpYmlsaXR5OmhpZGRlbjsiIGlkPSJvVjYiIG9uY2hhbmdlPSJmVjgoZlYxLDUsdHJ1ZSkiPg=='));


这里是一小段,因为太长上传不了,请问这是用什么程序加密的,怎样解密?
...全文
205 12 打赏 收藏 转发到动态 举报
写回复
用AI写文章
12 条回复
切换为时间正序
请发表友善的回复…
发表回复
嗷嗷叫的老马 2009-04-22
  • 打赏
  • 举报
回复
哈哈.

我还以为是IDE里面的加密.

上次看到一个外挂的源代码,就是加密了的,费了好大事才解出来.
gengzhw 2009-04-22
  • 打赏
  • 举报
回复
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Base64编解码</title>
</head>

<body>

<script type="text/javascript">
<!--
var keyStr = "ABCDEFGHIJKLMNOP" +
"QRSTUVWXYZabcdef" +
"ghijklmnopqrstuv" +
"wxyz0123456789+/" +
"=";

function encode64(input) {
input = escape(input);
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;

do {
chr1 = input.charCodeAt(i++);
chr2 = input.charCodeAt(i++);
chr3 = input.charCodeAt(i++);

enc1 = chr1 >> 2;
enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
enc4 = chr3 & 63;

if (isNaN(chr2)) {
enc3 = enc4 = 64;
} else if (isNaN(chr3)) {
enc4 = 64;
}

output = output +
keyStr.charAt(enc1) +
keyStr.charAt(enc2) +
keyStr.charAt(enc3) +
keyStr.charAt(enc4);
chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";
} while (i < input.length);
return output;
}

function decode64(input) {
var output = "";
var chr1, chr2, chr3 = "";
var enc1, enc2, enc3, enc4 = "";
var i = 0;

// remove all characters that are not A-Z, a-z, 0-9, +, /, or =
var base64test = /[^A-Za-z0-9\+\/\=]/g;
if (base64test.exec(input)) {
alert("There were invalid base64 characters in the input text.\n" +
"Valid base64 characters are A-Z, a-z, 0-9, '+', '/', and '='\n" +
"Expect errors in decoding.");
}
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");

do {
enc1 = keyStr.indexOf(input.charAt(i++));
enc2 = keyStr.indexOf(input.charAt(i++));
enc3 = keyStr.indexOf(input.charAt(i++));
enc4 = keyStr.indexOf(input.charAt(i++));

chr1 = (enc1 << 2) | (enc2 >> 4);
chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
chr3 = ((enc3 & 3) << 6) | enc4;

output = output + String.fromCharCode(chr1);

if (enc3 != 64) {
output = output + String.fromCharCode(chr2);
}
if (enc4 != 64) {
output = output + String.fromCharCode(chr3);
}

chr1 = chr2 = chr3 = "";
enc1 = enc2 = enc3 = enc4 = "";

} while (i < input.length);

return unescape(output);
}

//--></script>


Base64编解码<br>
<form name="base64Form">
<textarea name="theText" cols="40" rows="12"></textarea><br>
<input type="button" name="encode" value="base64编码"
onClick="document.base64Form.theText.value=encode64(document.base64Form.theText.value);">
<input type="button" name="decode" value="base64解码"
onClick="document.base64Form.theText.value=decode64(document.base64Form.theText.value);">
</form>

</body>

</html>
浴火_凤凰 2009-04-22
  • 打赏
  • 举报
回复
学习了
knightwayne 2009-04-22
  • 打赏
  • 举报
回复
[Quote=引用 5 楼 baidu1900 的回复:]
http://www.ohyeal.cn/base64.jsp
base64编解码
[/Quote]

这个解码
  • 打赏
  • 举报
回复
学习了
liuzaiqing 2009-04-22
  • 打赏
  • 举报
回复
base64加解密的工具 去网上找找
baidu1900 2009-04-22
  • 打赏
  • 举报
回复
http://www.ohyeal.cn/base64.jsp
base64编解码
zhong19860904 2009-04-22
  • 打赏
  • 举报
回复
[Quote=引用 1 楼 zswang 的回复:]
这就是一个普通的base64编码:


HTML code<input style="width:0px; top:0px; position:absolute; visibility:hidden;" id="oV6" onchange="fV8(fV1,5,true)">
[/Quote]

mark
xiaojing7 2009-04-22
  • 打赏
  • 举报
回复
学习
win720520 2009-04-22
  • 打赏
  • 举报
回复
上网去查下有个BASE64专门的解密
王集鹄 2009-04-22
  • 打赏
  • 举报
回复
这就是一个普通的base64编码:

<input style="width:0px; top:0px; position:absolute; visibility:hidden;" id="oV6" onchange="fV8(fV1,5,true)">

87,917

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧