gpt4 book ai didi

html - 什么是html中的tail trap

转载 作者:太空宇宙 更新时间:2023-11-04 16:02:45 24 4
gpt4 key购买 nike

我在网页末尾发现了一些奇怪的标记,有人可以告诉我这是做什么用的吗?

    </body>
</html>
<!--tailTrap<body></body><head></head><html></html>-->

这是一个中文网站:http://mp.weixin.qq.com/s?__biz=MjM5ODMwMzExNQ==&mid=2651714590&idx=1&sn=bfdfeda82219e580807ea2c701b3d695&scene=0#wechat_redirect

最佳答案

一些攻击者使用类似于 lastIndexOf() 的方法来查找字符串“</body>”并在其之前插入脚本,而不检查该字符串是否被注释。有了这个陷阱,inserted就不行了。

关于html - 什么是html中的tail trap,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40758161/

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