PageSourceSearch

https://kyupiru.com/CheckPassword801.js

js kyupiru.com collected 2026-10-05 04:54:55 UTC 8,678 bytes, 223 lines download raw bytes

1/*
2  JavaScript
3
4  (C) 2012 Дޮ‰ïŽÐƒWƒƒƒXƒgƒVƒXƒeƒ€
5*/
6
7<!--
8var	PW;
9function _HpbPwdWnd(thisLink,keyString)
10{
11	if (typeof(PW)  != "undefined")
12	{
13		if (typeof(PW.closed) != "unknown")
14		{
15			if (PW.closed == false)
16				return false;
17		}
18	}
19
20	var	target = thisLink.target;
21	var	defaultUrl = thisLink.href;
22	var	escKeyString = escape(keyString);
23	var	strCheckFunction = '_HpbChkPwd(keyinform.keyin.value,' + "'" + escKeyString + "','" + defaultUrl + "','" + target + "');";
24	var	strOkButton = '<INPUT type="button" name="CheckPassword" value="OK" onclick="' + strCheckFunction + '">';
25	var	strEscapedTarget, strEscapedDefault;
26	var	strNeedPassword, strBadPassword, strSubString;
27	var	strIsOpen, strIsClose;
28	var 	strTmp = unescape("%u3042");
29	if (strTmp.length == 1)
30	{
31		strNeedPassword = "%u30D1%u30B9%u30EF%u30FC%u30C9%u3092%u5165%u529B%u3057%u3066%u304F%u3060%u3055%u3044%u3002";
32		strBadPassword  = "%u30D1%u30B9%u30EF%u30FC%u30C9%u304C%u6B63%u3057%u304F%u3042%u308A%u307E%u305B%u3093%u3002";
33		strSubString    = "chr2 = decryptedPath.substring(i, i+6);";
34	}
35	else
36	{
37		strNeedPassword = "%83p%83X%83%8F%81%5B%83h%82%F0%93%FC%97%CD%82%B5%82%C4%82%AD%82%BE%82%B3%82%A2%81B";
38		strBadPassword  = "%83p%83X%83%8F%81%5B%83h%82%AA%90%B3%82%B5%82%AD%82%A0%82%E8%82%DC%82%B9%82%F1%81B";
39		strSubString    = "chr2 = decryptedPath.substring(i+6, i+6+6);";
40	}
41
42	if (navigator.appName.charAt(0) == "N")
43	{
44		strEscapedTarget  = "targetUrl";
45		strEscapedDefault = "defaultUrl";
46	}
47	else
48	{
49		strEscapedTarget  = "unescape(targetUrl)";
50		strEscapedDefault = "unescape(defaultUrl)";
51	}
52
53	if ((navigator.userAgent.indexOf("Mac") > -1))
54	{
55		strIsOpen  = "if (opener)";
56		strIsClose = "if ( ! opener)";
57	}
58	else
59	{
60		strIsOpen  = "if ((typeof(opener.closed) != \"unknown\") && ! opener.closed)";
61		strIsClose = "if ((typeof(opener.closed) == \"unknown\") || opener.closed)";
62	}
63
64	var	targetWin = "", defaultWin = "";
65	if (target == null || target == "")
66	{
67		targetWin  = "opener.location.href = " + strEscapedTarget  + ";";
68		defaultWin = "opener.location.href = " + strEscapedDefault + ";";
69	}
70	else if (target == "_blank")
71	{
72		targetWin  = 'opener.open(' + strEscapedTarget  + ',"_blank");';
73		defaultWin = 'opener.open(' + strEscapedDefault + ',"_blank");';
74	}
75	else if (target == "_parent")
76	{
77		targetWin  = "opener.parent.location.href = " + strEscapedTarget  + ";";
78		defaultWin = "opener.parent.location.href = " + strEscapedDefault + ";";
79	}
80	else if (target == "_self")
81	{
82		targetWin  = "opener.self.location.href = " + strEscapedTarget  + ";";
83		defaultWin = "opener.self.location.href = " + strEscapedDefault + ";";
84	}
85	else if (target == "_top")
86	{
87		targetWin  = "opener.top.location.href = " + strEscapedTarget  + ";";
88		defaultWin = "opener.top.location.href = " + strEscapedDefault + ";";
89	}
90	else
91	{
92		var	currentWin = self;
93		var	parentWin;
94		var	strParent = "parent";
95		var	bFind = false;
96		while (currentWin != self.top)
97		{
98			parentWin = currentWin.parent;
99			var strTarget = "parentWin." + target;
100			if (typeof(eval(strTarget)) == "object")
101			{
102				targetWin  = "opener." + strParent + "." + target + ".location.href = " + strEscapedTarget  + ";";
103				defaultWin = "opener." + strParent + "." + target + ".location.href = " + strEscapedDefault + ";";
104				break;
105			}
106			currentWin = currentWin.parent;
107			strParent += ".parent";
108		}
109	}
110	if (targetWin == "")
111		targetWin  = 'opener.open(' + strEscapedTarget  + ',"_blank");';
112	if (defaultWin == "")
113		defaultWin = 'opener.open(' + strEscapedDefault + ',"_blank");';
114	PW = window.open("", "", "width=300,height=100,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");
115	PW.focus();
116	PW.document.open();
117	PW.document.writeln('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">');
118	PW.document.writeln('<HTML><HEAD>');
119	PW.document.writeln('<META http-equiv="Content-Type" content="text/html; charset=Shift_JIS">');
120	PW.document.writeln('<META http-equiv="Content-Style-Type" content="text/css">');
121	PW.document.writeln('<TITLE>ƒpƒXƒ[ƒh•t‚«ƒŠƒ“ƒN</TITLE>');
122
123	PW.document.writeln('<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">');
124	PW.document.writeln('<!--');
125	PW.document.writeln('function _HpbChkPwd(keyin,escEncrypted,defaultUrl,target)');
126	PW.document.writeln('{');
127	PW.document.writeln('	var	encrypted = unescape(escEncrypted);');
128	PW.document.writeln('	var indexbase = " !\\\"#$%&\\\'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\\\]^_`abcdefghijklmnopqrstuvwxyz{|}~";');
129	PW.document.writeln('	var passlen = keyin.length;');
130	PW.document.writeln('	var enqlen  = encrypted.length;');
131	PW.document.writeln('	var decrypted = "";');
132	PW.document.writeln('	var decryptedPassword = "";');
133	PW.document.writeln('	var decryptedPath     = "";');
134	PW.document.writeln('	var targetUrl         = "";');
135	PW.document.writeln('	var i, j, k, chr1, chr2, nbase;');
136	PW.document.writeln('	var needPassword = "' + strNeedPassword + '";');
137	PW.document.writeln('	var badPassword  = "' + strBadPassword  + '";');
138	PW.document.writeln('	if (passlen <= 0)');
139	PW.document.writeln('	{');
140	PW.document.writeln('		alert(unescape(needPassword));');
141	PW.document.writeln('		return ;');
142	PW.document.writeln('	}');
143	PW.document.writeln('	for (i = 0, j = passlen - 1, k = 0 ; i < enqlen ; i++, j--, k=0)');
144	PW.document.writeln('	{');
145	PW.document.writeln('		if (j < 0)');
146	PW.document.writeln('		{');
147	PW.document.writeln('			j = passlen - 1;');
148	PW.document.writeln('		}');
149	PW.document.writeln('		chr1 = indexbase.indexOf(keyin.charAt(j));');
150	PW.document.writeln('		chr2 = indexbase.indexOf(encrypted.charAt(i));');
151	PW.document.writeln('		if (chr2 < (chr1 + j))');
152	PW.document.writeln('		{');
153	PW.document.writeln('			nbase = (chr1 + j - chr2) / 0x5f;');
154	PW.document.writeln('			k += (0x5f * Math.ceil(nbase));');
155	PW.document.writeln('		}');
156	PW.document.writeln('		k += (chr2 - chr1 - j);');
157	PW.document.writeln('		decrypted += indexbase.charAt(k);');
158	PW.document.writeln('	}');
159	PW.document.writeln('	if (typeof(opener) == "undefined")');
160	PW.document.writeln('	{');
161	PW.document.writeln('		window.close();');
162	PW.document.writeln('		return ;');
163	PW.document.writeln('	}');
164	PW.document.writeln('	' + strIsClose);
165	PW.document.writeln('	{');
166	PW.document.writeln('		window.close();');
167	PW.document.writeln('		return ;');
168	PW.document.writeln('	}');
169	PW.document.writeln('	opener.document.isOpened = false;');
170	PW.document.writeln('	decryptedPassword = decrypted.substring(decrypted.length - passlen, decrypted.length);');
171	PW.document.writeln('	if (keyin == decryptedPassword)');
172	PW.document.writeln('	{');
173	PW.document.writeln('		decryptedPath = decrypted.substring(0, decrypted.length - passlen);');
174	PW.document.writeln('		passlen       = decryptedPath.length;');
175	PW.document.writeln('		for (i = 0 ; i < passlen ; i++)');
176	PW.document.writeln('		{');
177	PW.document.writeln('			chr1 = decryptedPath.charAt(i);');
178	PW.document.writeln('			if (chr1 == "%")');
179	PW.document.writeln('			{');
180	PW.document.writeln('				' + strSubString);
181	PW.document.writeln('				targetUrl += chr2;');
182	PW.document.writeln('				i += 11;');
183	PW.document.writeln('			}');
184	PW.document.writeln('			else');
185	PW.document.writeln('				targetUrl += chr1;');
186	PW.document.writeln('		}');
187	PW.document.writeln('		' + strIsOpen);
188	PW.document.writeln('			' + targetWin);
189	PW.document.writeln('		window.close();');
190	PW.document.writeln('	}');
191	PW.document.writeln('	else');
192	PW.document.writeln('	{');
193	PW.document.writeln('		if (defaultUrl.length)');
194	PW.document.writeln('		{');
195	PW.document.writeln('			' + strIsOpen);
196	PW.document.writeln('				' + defaultWin);
197	PW.document.writeln('		}');
198	PW.document.writeln('		else');
199	PW.document.writeln('		{');
200	PW.document.writeln('			alert(unescape(badPassword));');
201	PW.document.writeln('		}');
202	PW.document.writeln('		window.close();');
203	PW.document.writeln('	}');
204	PW.document.writeln('}');
205	PW.document.writeln('//-->');
206	PW.document.writeln('</SCRIPT>');
207
208	PW.document.writeln('</HEAD>');
209	PW.document.writeln('<BODY onload="document.keyinform.keyin.focus()" onblur="document.keyinform.keyin.focus()" onerror="window.close();">');
210	PW.document.writeln('<DIV align="center">');
211	PW.document.writeln('<P>ƒpƒXƒ[ƒh‚ð“ü—Í‚µ‚Ä‚­‚¾‚³‚¢B</P>');
212	PW.document.writeln('<FORM name="keyinform" method="POST" onsubmit="' + strCheckFunction + 'return false;">');
213	PW.document.writeln('<INPUT size="20" type="password" name="keyin">');
214	PW.document.writeln(strOkButton);
215	PW.document.writeln('</FORM>');
216	PW.document.writeln('</DIV>');
217	PW.document.writeln('</BODY>');
218	PW.document.writeln('</HTML>
218');
219	PW.document.close();
220
221	return false;
222}
223//-->

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.