From afb432075d1f99828a7dedb3f306cf9fcad90368 Mon Sep 17 00:00:00 2001 From: Gautam krishna R Date: Fri, 21 Jul 2023 01:07:32 +0000 Subject: [PATCH] =?UTF-8?q?migrating=20to=20new=20domain,=20bye=20bye=20no?= =?UTF-8?q?thingprivate.ml=20=F0=9F=91=8B,=20ref:=20#140?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CNAME | 2 +- README.md | 2 +- cypress/integration/nothing-private.spec.js | 8 +- db_server/index.php | 2 +- docker/make_docker.sh | 2 +- index.html | 22 +- main.js | 6 +- package-lock.json | 5168 ++++++++++++++++++- 8 files changed, 5180 insertions(+), 32 deletions(-) diff --git a/CNAME b/CNAME index 4459dd8..f32b6d0 100644 --- a/CNAME +++ b/CNAME @@ -1 +1 @@ -www.nothingprivate.ml \ No newline at end of file +nothingprivate.gkr.pw \ No newline at end of file diff --git a/README.md b/README.md index 4000303..6934be0 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ This project is a proof of concept that any website can identify and track you, ## How to use the website -* Visit and enter your name +* Visit and enter your name * Click the **"See the magic"** button * Visit the same website in Private browsing / Incognito mode * See the magic :star: diff --git a/cypress/integration/nothing-private.spec.js b/cypress/integration/nothing-private.spec.js index eceb4f5..207585c 100644 --- a/cypress/integration/nothing-private.spec.js +++ b/cypress/integration/nothing-private.spec.js @@ -3,7 +3,7 @@ describe('Nothing Private e2e tests', function() { // Test initial API Calls on page load it('Initial page loading and API Calls', function() { cy.server(); - cy.route('GET', 'https://api.nothingprivate.ml/safedb.php*').as('safeDbAPI'); + cy.route('GET', 'https://npvt-api.gkr.pw/safedb.php*').as('safeDbAPI'); cy.visit('http://localhost:8080'); cy.wait('@safeDbAPI'); cy.get('@safeDbAPI').should((xhr) => { @@ -19,7 +19,7 @@ describe('Nothing Private e2e tests', function() { cy.get('input#name').should('have.value', ''); cy.get('input.btn').should('have.value', 'See the magic!'); cy.server(); - cy.route('https://api.nothingprivate.ml/safedb.php*').as('safeDbAPI'); + cy.route('https://npvt-api.gkr.pw/safedb.php*').as('safeDbAPI'); cy.get('#name').type('cypress user').should('have.value', 'cypress user'); cy.get('input.btn').click(); cy.wait('@safeDbAPI'); @@ -33,7 +33,7 @@ describe('Nothing Private e2e tests', function() { // Tests get fingerprint functionality it('Functionality test: Refreshing the page, checks whether the fingerprint is detected', function() { cy.server(); - cy.route('GET', 'https://api.nothingprivate.ml/safedb.php*').as('safeDbAPI'); + cy.route('GET', 'https://npvt-api.gkr.pw/safedb.php*').as('safeDbAPI'); cy.visit('http://localhost:8080'); cy.wait('@safeDbAPI'); cy.get('@safeDbAPI').should((xhr) => { @@ -48,7 +48,7 @@ describe('Nothing Private e2e tests', function() { // Tests forget fingerprint functionality it('Functionality test: Clicking on "Forget me" button', function() { cy.server(); - cy.route('GET', 'https://api.nothingprivate.ml/forgetme.php*').as('forgetMeAPI'); + cy.route('GET', 'https://npvt-api.gkr.pw/forgetme.php*').as('forgetMeAPI'); cy.get('input.btn').should('have.value', 'Forget Me!'); cy.get('input.btn').click(); cy.wait('@forgetMeAPI').should((xhr) => { diff --git a/db_server/index.php b/db_server/index.php index 9ec7fb8..2a3a735 100644 --- a/db_server/index.php +++ b/db_server/index.php @@ -1 +1 @@ - + diff --git a/docker/make_docker.sh b/docker/make_docker.sh index c5c9618..137aee3 100644 --- a/docker/make_docker.sh +++ b/docker/make_docker.sh @@ -1,4 +1,4 @@ #!/usr/bin/env bash -sed -i 's/\"https:\/\/api.nothingprivate.ml\"/document.location.href + \"\db_server\"/g' /var/www/html/main.js +sed -i 's/\"https:\/\/npvt-api.gkr.pw\"/document.location.href + \"\db_server\"/g' /var/www/html/main.js cd /var/www/html/db_server php composer.phar install diff --git a/index.html b/index.html index 9ead393..fc931a0 100644 --- a/index.html +++ b/index.html @@ -22,7 +22,7 @@ @@ -87,7 +87,7 @@

Loading... please wait...