解码html页面 [英] Decoding html pages

查看:51
本文介绍了解码html页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何解码编码如下的HTML页面:
http://www.long2consulting.com/seein...able/index.htm

是否有自动执行此操作并完全正常生成的脚本

可读HTML?


Santander

解决方案

桑坦德写道:
< blockquote class =post_quotes>
如何解码这样编码的HTML页面:
http://www.long2consulting.com/seein...able/index.htm

是否有自动执行此操作并生成正常的脚本完全

可读HTML?



可以用相对较少的努力解密。第5行是

百分比编码(添加了行尾和间隔):


< SCRIPT LANGUAGE =" JavaScript">

<! -

hp_ok = true;

函数hp_d01(s){

if(!hp_ok)返回;

var o ="",

ar = new Array(),

os ="",br />
ic = 0;

for(i = 0; i< s.length; i ++){

c = s.charCodeAt(i);

if(c <128)

c = c ^ 2;

os + = String.fromCharCode(c);

if(os.length> 80){

ar [ic ++] = os;

os =""

}

}

o = ar.join("")+ os;

document.write(o)

}

// - >

< / SCRIPT>


信息:
http://en.wikipedia.org/wiki/Percent-encoding


函数''hp_d01''取字符co的平方数de时

它低于128.对于解密,这个操作可以通过

取平方根,例如。 Math.sqrt(64)。


希望这会有所帮助,


-

巴特


好吧,我已经解码了剧本的最上部:


< SCRIPT LANGUAGE =" JavaScript">< ! -

hp_ok = true;函数hp_d01(s){if(!hp_ok)return; var o ="",ar = new

Array() ,os ="",ic = 0; for(i = 0; i< s.length; i){c = s.charCodeAt(i); if(c <128)c = c ^ 2; os

= String.fromCharCode(c); if(os.length> 80){ar [ic] = os; os =""}} o = ar.join("")

os; document.write(o)} // - >< / SCRIPT>

但它告诉我什么。如何解码页面的其余部分?任何

自动化工具/脚本可用吗?

------------------------


" Santander" < sa ******* @ comp.lang.javascript在留言中写道

news:49 ********************* ** @ news.sunsite.dk ...


如何解码编码如下的HTML页面:
http://www.long2consulting.com/seein...able/index.htm
是否有自动执行此操作并生成正常完整

可读HTML的脚本?


Santander meinte:


如何解码编码如下的HTML页面:
http://www.long2consulting.com/seein...able /index.htm


是否有自动执行此操作的脚本并生成正常的完全可读的HTML?



LOL。告诉我一些关于这个页面的作者和你作为即将到来的hakk3r的b $ b ...


只需查看生成的源代码即可。与FF'的网络开发者

扩展,或用Firebug检查页面。

Gregor


how to decode HTML pages encoded like this:
http://www.long2consulting.com/seein...able/index.htm
Is there script that will do this automatically and generate normal fully
readable HTML?

Santander

解决方案

Santander wrote:

how to decode HTML pages encoded like this:
http://www.long2consulting.com/seein...able/index.htm
Is there script that will do this automatically and generate normal fully
readable HTML?

It can be decrypted with relatively little effort. Line 5 is the
percent-encoding of (line-ends and intervals added):

<SCRIPT LANGUAGE="JavaScript">
<!--
hp_ok=true;
function hp_d01(s) {
if (!hp_ok) return;
var o="",
ar=new Array(),
os="",
ic=0;
for (i=0;i<s.length;i++) {
c=s.charCodeAt(i);
if (c<128)
c=c^2;
os+=String.fromCharCode(c);
if (os.length>80) {
ar[ic++]=os;
os=""
}
}
o=ar.join("")+os;
document.write(o)
}
//-->
</SCRIPT>

Info:
http://en.wikipedia.org/wiki/Percent-encoding

Function ''hp_d01'' takes the square number of the character code when
it''s below 128. For a decryption, this operation can be reversed by
taking the square root, eg. Math.sqrt(64).

Hope this helps,

--
Bart


well, I''ve decoded the very top part of script:

<SCRIPT LANGUAGE="JavaScript"><!--
hp_ok=true;function hp_d01(s){if(!hp_ok)return;var o="",ar=new
Array(),os="",ic=0;for(i=0;i<s.length;i ){c=s.charCodeAt(i);if(c<128)c=c^2;os
=String.fromCharCode(c);if(os.length>80){ar[ic ]=os;os=""}}o=ar.join("")
os;document.write(o)}//--></SCRIPT>
but it tells me nothing though. How to decode the rest part of page? any
automated tool/script availble?
------------------------

"Santander" <sa*******@comp.lang.javascriptwrote in message
news:49***********************@news.sunsite.dk...

how to decode HTML pages encoded like this:
http://www.long2consulting.com/seein...able/index.htm
Is there script that will do this automatically and generate normal fully
readable HTML?


Santander meinte:

how to decode HTML pages encoded like this:
http://www.long2consulting.com/seein...able/index.htm

Is there script that will do this automatically and generate normal
fully readable HTML?

LOL. Tells me something about both the authors of this page and you as
the upcoming hakk3r...

Just have a look at "generated source" with FF''s web developer
extension, or inspect the page with Firebug.
Gregor


这篇关于解码html页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆