-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
90 lines (70 loc) · 2.51 KB
/
index.js
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
//make script into comment for testing
//IM TESTING SORRY IF I FORGOT TO PUT THIS BACK -Bigfoot9999
let inFrame
try {
inFrame = window !== top
} catch (e) {
inFrame = true
}
if (!inFrame && !navigator.userAgent.includes("Firefox")) {
const popup = open("about:blank", "_blank")
if (!popup || popup.closed) {
alert("This will be in your history! Allow popups and redirects to hide this from showing up in your history.")
} else {
const doc = popup.document
const iframe = doc.createElement("iframe")
const style = iframe.style
const link = doc.createElement("link")
doc.title = "Google Drive"
link.rel = "icon";
link.href = "https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png";
iframe.src = location.href
style.position = "fixed"
style.top = style.bottom = style.left = style.right = 0
style.border = style.outline = "none"
style.width = style.height = "100%"
doc.body.appendChild(iframe)
location.replace("https://google.com")
}
}
function clockTime(){
var date = new Date();
var h = date.getHours(); // 0 - 23
var m = date.getMinutes(); // 0 - 59
var s = date.getSeconds(); // 0 - 59
var session = "AM";
if(h == 0){
h = 12;
}
if(h > 12){
h = h - 12;
session = "PM";
}
h = (h < 10) ? "0" + h : h;
m = (m < 10) ? "0" + m : m;
s = (s < 10) ? "0" + s : s;
var time = h + ":" + m + ":" + s + " " + session;
document.getElementById("MyClock").innerText = time;
document.getElementById("MyClock").textContent = time;
setTimeout(clockTime, 1000);
};
clockTime();
document.addEventListener('keypress', function (e) {
if (e.key === 'Enter') {
const exploit = document.getElementById('exploit').value;
const siteload = window.open('about:blank', '_blank');
const doc1 = siteload.document;
const iframe1 = doc1.createElement('iframe');
const style1 = iframe1.style;
const link1 = doc1.createElement('link');
doc1.title = 'Google Drive';
iframe1.src = exploit;
style1.position = 'fixed';
style1.border = style1.outline = 'none';
style1.top = style1.bottom = style1.left = style1.right = 0;
style1.width = style1.height = '100%';
link1.rel = 'icon';
link1.href = 'https://ssl.gstatic.com/images/branding/product/1x/drive_2020q4_32dp.png';
doc1.body.appendChild(iframe1);
}
});