简体   繁体   English

我正在学习更多JavaScript,我想对这段代码有所了解

[英]I'm learning more of JavaScript and I want to have some idea about this code

I'm learning JavaScript , and I found this code: 我正在学习JavaScript ,我找到了这段代码:

<script>

var _0x98bd=["\x3C\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3D\x22\x6A\x73\x2F\x4E\x31\x39\x53\x38\x37\x4E\x39\x4E\x41\x39\x38\x37\x31\x58\x39\x38\x37\x5A\x5A\x58\x2E\x73\x77\x66\x22\x3E\x3C\x2F\x73\x63\x72\x69\x70\x74\x3E","\x77\x72\x69\x74\x65"];

</script>

Does anyone know what does it mean? 有谁知道这是什么意思?

It produces this array: 它产生这个数组:

["<script src="js/N19S87N9NA9871X987ZZX.swf"></script>", "write"] 

I have no idea what the author of the code is trying to do with it. 我不知道代码的作者试图用它做什么。

This just inits the variable _0x98bd with an array with only two string elements. 这只是变量_0x98bd ,只有两个字符串元素的数组。

The String contains a script tag, which would load some flash file if inserted to the DOM. String包含一个脚本标记,如果插入DOM,它将加载一些flash文件。 The second includes just "write". 第二个包括“写”。

This is probably code of a worm, which exploits some browser bugs. 这可能是蠕虫的代码,它利用了一些浏览器错误。 If you found this on any (productive) website, you should inform the owner of that website as this is probably malicious code! 如果您在任何(高效)网站上找到此信息,您应该通知该网站的所有者,因为这可能是恶意代码!

The first element of the array is the following code: 数组的第一个元素是以下代码:

<script src="js/N19S87N9NA9871X987ZZX.swf"></script>

The second element is: 第二个要素是:

write

这是混淆的javascript代码。参见Sample obfuscator

你说你正在学习JS,所以解释为什么你能在第22-24页的ECMA-262标准中找到它是什么http://www.ecma-international.org/publications/standards/Ecma-262 .htm因为数组的两个元素介于“所以它们是字符串文字。\\”被称为转义字符,\\ x必须后跟2个十六进制数字,意思是:“x HexDigit HexDigit是代码单位值的字符是(第一个HexDigit的MV的16倍)加上第二个HexDigit的MV“所以例如\\ x3C相当于'<'字符。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 我只是在学习code.I想知道javascript或php代码来显示隐藏的段落<p> - I'm just learning code.I want to know javascript or php code to show hidden paragraph <p> 我对javascript名称空间有一些疑问 - I have some questions about javascript namespace 我有一些简单的 JavaScript 代码,我想把它变成一个弹出扩展。 我该怎么做呢? - I have some simple JavaScript code, and I want to turn it into a popup extension. How do I do this? 我对编辑功能有一个特别的想法 - I have a Special Idea about an Edit function 我不知道这段代码是什么 - I have no idea what this code is 我对此代码感到奇怪。 HTML JAVASCRIPT - I'm curious about this code something strange. HTML JAVASCRIPT 我想在提示中按下 Esc 按钮时提醒一个值,但我不知道...(下面的代码) - I want to alert a value when I press the Esc button in prompt, but I have no idea... (code below) 学习编程JavaScript,但我被困住了 - Learning to programming JavaScript, but I'm stuck 尝试修复Java Countdown。 我不知道我在做什么 - Trying to fix a Javascript Countdown. I have no idea what I'm doing 我有一个多维对象,需要在Javascript中进行遍历,但是我无法“足够深入”来获取我想要的值 - I have a multidimensional object which I want to foreach through in Javascript, but I'm not able to get “deep enough” to get the value I want
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM