-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathproxy.html
54 lines (49 loc) · 1.28 KB
/
proxy.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<SCRIPT>
function passWord() {
var testV = 1;
var pass1 = prompt('Please Enter Your Password',' ');
while (testV < 3) {
if (!pass1)
history.go(-1);
if (pass1.toLowerCase() == "glizz") {
alert('You Got it Right!');
openInNewTab(window.location.origin + "/Proxy.html")
break;
}
testV+=1;
var pass1 =
prompt('Access Denied - Password Incorrect, Please Try Again.','Password');
}
if (pass1.toLowerCase()!="password" & testV ==3)
history.go(-1);
return " ";
}
</SCRIPT>
<CENTER>
<FORM>
<input type="button" value="Enter Protected Area" onClick="passWord()">
</FORM>
</CENTER>
<SCRIPT>
function openInNewTab(url) {
win = window.open();
win.document.body.style.margin = '0';
win.document.body.style.height = '100vh';
var icon = win.document.createElement('link')
icon.rel = "shortcut icon"
icon.href = window.location.origin+"/icon.png"
icon.type = "image/png"
win.document.head.appendChild(icon)
var title = win.document.createElement('title')
title.innerText = "IceBerg"
win.document.head.appendChild(title)
var iframe = win.document.createElement('iframe');
iframe.style.border = 'none';
iframe.style.width = '100%';
iframe.style.height = '100%';
iframe.style.margin = '0';
iframe.id = 'content';
iframe.src = url;
win.document.body.appendChild(iframe);
}
</SCRIPT>