diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index 417a8b0..6ab6eda 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -39,5 +39,6 @@ module.exports = { 'react/react-in-jsx-scope': 'off', 'no-bitwise': 'off', 'react/no-array-index-key': 'off', + 'dot-notation': 'off', }, }; diff --git a/frontend/public/worker.js b/frontend/public/worker.js index 93b3fce..51662e5 100644 --- a/frontend/public/worker.js +++ b/frontend/public/worker.js @@ -3,6 +3,11 @@ const data = { timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone, timezoneOffset: new Date().getTimezoneOffset(), date: new Date().toString(), + deviceMemory: navigator.deviceMemory, + hardwareConcurrency: navigator.hardwareConcurrency, + platform: navigator.platform, + userAgent: navigator.userAgent, + appVersion: navigator.appVersion, language: navigator.language, languages: navigator.languages, }; diff --git a/frontend/src/components/ScanBlock.js b/frontend/src/components/Block.js similarity index 100% rename from frontend/src/components/ScanBlock.js rename to frontend/src/components/Block.js diff --git a/frontend/src/components/ScanBlocks.js b/frontend/src/components/Blocks.js similarity index 89% rename from frontend/src/components/ScanBlocks.js rename to frontend/src/components/Blocks.js index f218d83..1856a0b 100644 --- a/frontend/src/components/ScanBlocks.js +++ b/frontend/src/components/Blocks.js @@ -29,9 +29,9 @@ const ScanBlocks = () => { {connectionData ? ( <>
Explanation: JavaScript can be used to find information about your
hardware. This information can be used to create a fingerprint.
diff --git a/frontend/src/components/OtherBlock.js b/frontend/src/components/OtherBlock.js
index c73302c..69737bb 100644
--- a/frontend/src/components/OtherBlock.js
+++ b/frontend/src/components/OtherBlock.js
@@ -1,7 +1,7 @@
/* eslint-disable arrow-body-style */
/* eslint-disable no-unused-vars */
import { useState, useEffect } from 'react';
-import ScanBlock from './ScanBlock';
+import ScanBlock from './Block';
import { detectTor } from './main';
const OtherBlock = () => {
diff --git a/frontend/src/components/ScreenBlock.js b/frontend/src/components/ScreenBlock.js
index 007ba86..8504921 100644
--- a/frontend/src/components/ScreenBlock.js
+++ b/frontend/src/components/ScreenBlock.js
@@ -1,4 +1,4 @@
-import ScanBlock from './ScanBlock';
+import ScanBlock from './Block';
import Table from './Table';
import getScreen from '../utils/screen';
diff --git a/frontend/src/components/SoftwareBlock.js b/frontend/src/components/SoftwareBlock.js
index cc2a713..7ecae12 100644
--- a/frontend/src/components/SoftwareBlock.js
+++ b/frontend/src/components/SoftwareBlock.js
@@ -1,4 +1,4 @@
-import ScanBlock from './ScanBlock';
+import ScanBlock from './Block';
import Table from './Table';
import { getSoftware } from './mainOld';
diff --git a/frontend/src/components/UserAgentBlock.js b/frontend/src/components/UserAgentBlock.js
index cb954c7..271f437 100644
--- a/frontend/src/components/UserAgentBlock.js
+++ b/frontend/src/components/UserAgentBlock.js
@@ -1,105 +1,105 @@
-/* eslint-disable no-unused-vars */
-import { useState, useEffect } from 'react';
-import Bowser from 'bowser';
-import ScanBlock from './ScanBlock';
-import Table from './Table';
-import {
- checkNavigatorProperties,
- checkWebWorker,
- checkScreenProperties,
-} from './main';
-import { ReactComponent as CheckCircle } from '../images/checkCircle.svg';
+// /* eslint-disable no-unused-vars */
+// import { useState, useEffect } from 'react';
+// import Bowser from 'bowser';
+// import ScanBlock from './Block';
+// import Table from './Table';
+// import {
+// checkNavigatorProperties,
+// checkWebWorker,
+// checkScreenProperties,
+// } from './main';
+// import { ReactComponent as CheckCircle } from '../images/checkCircle.svg';
-const UserAgentBlock = () => {
- const [firstRender, setfirstRender] = useState(true);
- const [workerData, setWorkerData] = useState('');
- const [userAgent, setUserAgent] = useState();
+// const UserAgentBlock = () => {
+// const [firstRender, setfirstRender] = useState(true);
+// const [workerData, setWorkerData] = useState('');
+// const [userAgent, setUserAgent] = useState();
- useEffect(() => {
- checkWebWorker('userAgent', setWorkerData);
- }, []);
+// useEffect(() => {
+// checkWebWorker('userAgent', setWorkerData);
+// }, []);
- useEffect(() => {
- if (!workerData) {
- setUserAgent(Bowser.parse(navigator.userAgent));
- } else {
- setUserAgent(Bowser.parse(workerData));
- }
- }, [workerData]);
+// useEffect(() => {
+// if (!workerData) {
+// setUserAgent(Bowser.parse(navigator.userAgent));
+// } else {
+// setUserAgent(Bowser.parse(workerData));
+// }
+// }, [workerData]);
- return (
-
- Explanation: JavaScript can be used to find information about
- your hardware. This information can be used to create a fingerprint.
-
+// Explanation: JavaScript can be used to find information about
+// your hardware. This information can be used to create a fingerprint.
+// User Agent
- {userAgent && (
-
-
-
-
-
-
-
- Browser
- {userAgent.browser.name}
-
-
-
-
-
-
- Browser version
- {userAgent.browser.version}
-
-
-
-
-
-
- OS
-
- {userAgent.os.name} {userAgent.os.versionName}
-
-
-
-
-
-
-
- OS version
- {userAgent.os.version}
-
-
-
-
-
-
- Engine
-
- {userAgent.engine.name} {userAgent.engine.version}
-
-
-
-
-
-
- Platform type
- {userAgent.platform.type}
-
-
- User Agent
+// {userAgent && (
+//
+//
+//
+//
+//
+//
+//
+// Browser
+// {userAgent.browser.name}
+//
+//
+//
+//
+//
+//
+// Browser version
+// {userAgent.browser.version}
+//
+//
+//
+//
+//
+//
+// OS
+//
+// {userAgent.os.name} {userAgent.os.versionName}
+//
+//
+//
+//
+//
+//
+//
+// OS version
+// {userAgent.os.version}
+//
+//
+//
+//
+//
+//
+// Engine
+//
+// {userAgent.engine.name} {userAgent.engine.version}
+//
+//
+//
+//
+//
+//
+// Platform type
+// {userAgent.platform.type}
+//
+//
+//