14 lines
667 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Sniff Leak
{{#include ../../banners/hacktricks-training.md}}
## 通过将脚本内容转换为UTF16进行泄露
[**此写作**](https://blog.huli.tw/2022/08/01/en/uiuctf-2022-writeup/#modernism21-solves) 泄露了一个 text/plain因为没有 `X-Content-Type-Options: nosniff`通过添加一些初始字符使得javascript认为内容是UTF-16从而脚本不会中断。
## 通过将脚本内容视为ICO进行泄露
[**下一个写作**](https://blog.huli.tw/2022/08/01/en/uiuctf-2022-writeup/#precisionism3-solves) 通过将其加载为ICO图像来泄露脚本内容访问 `width` 参数。
{{#include ../../banners/hacktricks-training.md}}