Skip to content

Commit 74da797

Browse files
committed
displayed hash
1 parent e605527 commit 74da797

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

client/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ <h1>EPIC_Tracker</h1>
4141
<strong class="rotation-rate"></strong><br>
4242
<strong class="acceleration"></strong>
4343
<br>
44-
<p class="cookie"></p>
44+
<p class="hash"></p>
4545
<code>
4646
Now I can save all this information to my database and this would be perfectly legal, and this information
4747
is enough to identify you accross the web. This is what other websites do. They track you, save all of your

client/index.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,14 +121,15 @@ nowFetch().then(response => {
121121
deviceHeight: deviceHeight
122122
}
123123
const dynamicData = {
124-
headers: data.headers, city: data.city, country: data.country, timezone: data.timezone,
124+
headers: data.headers, city: data.city, timezone: data.timezone,
125125
memory: data.memory, platform: data.platform, hardwareConcurrency: data.hardwareConcurrency,
126126
graphics: graphicsRenderer, graphicsVendor: graphicsVendor, deviceWidth: deviceWidth,
127-
deviceHeight: deviceHeight, language: language, colorDepth: colorDepth
127+
deviceHeight: deviceHeight, language: language, colorDepth: colorDepth, isp: data.isp
128128
}
129129
const encodedDinamic = btoa(JSON.stringify(dynamicData))
130-
console.log(encodedDinamic)
131-
console.log("HASH:" + sha1(encodedDinamic))
130+
const HASH = sha1(encodedDinamic)
131+
console.log("HASH:" + HASH)
132+
const hashPhrase = `Your identity HASH: ${HASH}`
132133
const ipPhrase = `Your IP address is ${data.ip}.`;
133134
const ispPhrase = `Your network provider is ${data.isp}.`;
134135
const headersPhrase = `${data.headers}.`;
@@ -143,6 +144,7 @@ nowFetch().then(response => {
143144
document.querySelector('.city').textContent = cityPhrase;
144145
document.querySelector('.timezone').textContent = timezonePhrase;
145146
document.querySelector('.pin').textContent = pinPhrase;
147+
document.querySelector('.hash').textContent = hashPhrase;
146148
// weather
147149
weather(data.city).then(weatherData => {
148150
const weatherPhrase = `The weather of your area: ${weatherData.description}.`;

0 commit comments

Comments
 (0)