-
-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e268c1
commit a4ab87c
Showing
7 changed files
with
292 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<?php | ||
header("Access-Control-Allow-Origin: *"); | ||
$location ="sqlite:".__DIR__."/safebrowsing.sqllite3"; | ||
|
||
if (isset($_GET['finger'])) | ||
{ | ||
$dbh = new PDO($location) or die("cannot open the database"); | ||
|
||
$query = "SELECT * FROM browsertab WHERE fingerprint='".$_GET['finger']."'"; | ||
$count = 0; | ||
$res = $dbh->query($query); | ||
if($res) { | ||
foreach ($res as $row) { | ||
$name['name'] = $row[1]; | ||
$name["status"]=0; | ||
$count = $count + 1; | ||
echo json_encode($name); | ||
$dbh = null; | ||
die(); | ||
} | ||
} | ||
if ($count==0) | ||
{ | ||
$query = "INSERT INTO browsertab VALUES('".$_GET['finger']."','".$_GET['name']."')"; | ||
$dbh->query($query); | ||
$res = $dbh->query($query); | ||
$ar["status"]=1; | ||
echo json_encode($ar); | ||
|
||
} | ||
} | ||
|
||
else | ||
{ | ||
echo "Not a website!"; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
<html> | ||
<head> | ||
<title>Are you Anonymouss?</title> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<meta name="description" content="Do you think turning on the pivate browsing or icognito will make you anonymous. Not really!."> | ||
<link rel="shortcut icon" href="private.jpg"> | ||
<meta name="keywords" content="safe browsing myths,icognito myths"> | ||
<meta name="author" content="Gautam krishna R"> | ||
<script async defer src="https://buttons.github.io/buttons.js"></script> | ||
<script src="client.min.js" type="text/ecmascript"></script> | ||
<script src="main.js" type="text/javascript"></script> | ||
<link rel="stylesheet" type="text/css" href="style.css"> | ||
<!-- | ||
Created with <3 By Gautam Krishna R | ||
www.github.com/gautamkrishnar | ||
--> | ||
|
||
</head> | ||
<body onload="savefingerprint(0)"> | ||
<center> | ||
<div id="header"> | ||
<h1 id="user">Are you <em>Anonymous?</em></h1> | ||
<div id="maindiv"> | ||
Loading... Plase wait... | ||
</div> | ||
<div class="copyrt"> | ||
<a class="github-button" href="https://github.com/gautamkrishnar/nothing-private" data-icon="octicon-star" data-style="mega" aria-label="Star gautamkrishnar/nothing-private on GitHub">Star on GiHub</a><br/><br/> | ||
Created with <img src="http://www.clker.com/cliparts/V/a/r/B/D/o/love-md.png" width="15px" height="inherit"/> | ||
By <a href="http://github.com/gautamkrishnar/" target="_blank">Gautam krishna R.</a><br/> | ||
Fnd the Source code <a href="https://github.com/gautamkrishnar/Be-Like-Bill" target="_blank"> here. </a> | ||
</div> | ||
</div> | ||
</center> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
|
||
function savefingerprint(check) | ||
{ | ||
var param = ""; | ||
var client = new ClientJS(); // Create A New Client Object | ||
var fingerprint = client.getFingerprint(); // Calculate Device/Browser Fingerprint | ||
|
||
if (check==0) | ||
{ | ||
param = encodeURI("?finger="+fingerprint+"&check=1"); | ||
} | ||
else{ | ||
var name = document.getElementById("name").value; | ||
|
||
if (name == undefined||name =="") | ||
{ | ||
name="NoNameEntered :D"; | ||
} | ||
param = encodeURI("?finger="+fingerprint+"&name="+name); | ||
|
||
} | ||
|
||
var xhr = new XMLHttpRequest(); | ||
var url="http://belikebill.azurewebsites.net/areyousafe/safedb.php"; | ||
|
||
|
||
|
||
xhr.onreadystatechange = function() { | ||
if (this.readyState == 4 && this.status == 200) { | ||
var arr = JSON.parse(this.responseText); | ||
if(arr['status']==0) | ||
{ | ||
rendernewtabpage(arr['name']); | ||
} | ||
else if(arr['status']==1) | ||
{ | ||
rendersubmit(name); | ||
} | ||
else if(arr['status']==3) | ||
{ | ||
rendermain(); | ||
} | ||
} | ||
}; | ||
xhr.open("GET", url+param); | ||
xhr.send(); | ||
} | ||
|
||
function rendernewtabpage(name){ | ||
document.getElementById("maindiv").innerHTML='<h3>Welcome back to the website <b>'+name+'</b>. If i can remember your name even though you are using the <b>Private browsing</b> / <b>Icongnito mode</b>, I can surely track you.<br/><br/>. This is what big companies are doing. They are spying on you more when you are using the <b>Private browsing</b> or <b>Icognito mode</b>.<br/><br/><a href="https://github.com/gautamkrishnar/nothing-private" target="_blank">Read more</a><br/><br/>If you liked this project, dont forget to give it a Star:<br/></h3>'; | ||
document.getElementById("user").innerHTML="You are <em>"+name+"!</em>" | ||
} | ||
function rendersubmit(name) | ||
{ | ||
document.getElementById("maindiv").innerHTML='<h3><b>Thank you! '+name+'</b> Lets see the magic... <br/><br/>Now open a <b>Private browsing</b> or <b>Icongnito window</b> on your browser and visit <b>www.nothingprivate.ml</b> to see the magic...</h3>'; | ||
|
||
} | ||
function rendermain() | ||
{ | ||
document.getElementById("maindiv").innerHTML='<div id="maindiv"><h3>Do you think that switching to your browser\'s <b>Private browsing mode</b> or <b>Icognito mode</b> will make you anonymous?<br/><br/> Sorry to disappoint you, <b>You are wrong!.</b> Everyone can track you. Lets check it out yourself. Just type your name below.</h3><input type="text" name="name" id="name" class="txt" placeholder="Your Name" /><br/><br/><input type="button" class="btn" onclick="savefingerprint(1)" value="See the magic !" /><br/></div>'; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
.btn { | ||
background: #3498db; | ||
background-image: -webkit-linear-gradient(top, #3498db, #2980b9); | ||
background-image: -moz-linear-gradient(top, #3498db, #2980b9); | ||
background-image: -ms-linear-gradient(top, #3498db, #2980b9); | ||
background-image: -o-linear-gradient(top, #3498db, #2980b9); | ||
background-image: linear-gradient(to bottom, #3498db, #2980b9); | ||
-webkit-border-radius: 28; | ||
-moz-border-radius: 28; | ||
border-radius: 28px; | ||
-webkit-box-shadow: 0 1px 3px #666666; | ||
-moz-box-shadow: 0 1px 3px #666666; | ||
box-shadow: 0 1px 3px #666666; | ||
font-family: Arial; | ||
color: #ffffff; | ||
font-size: 20px; | ||
padding: 10px 20px 10px 20px; | ||
text-decoration: none; | ||
} | ||
.hyp { | ||
color: #FFFFFF; | ||
text-decoration: none; | ||
} | ||
.btn:hover { | ||
background: #3cb0fd; | ||
background-image: -webkit-linear-gradient(top, #3cb0fd, #3498db); | ||
background-image: -moz-linear-gradient(top, #3cb0fd, #3498db); | ||
background-image: -ms-linear-gradient(top, #3cb0fd, #3498db); | ||
background-image: -o-linear-gradient(top, #3cb0fd, #3498db); | ||
background-image: linear-gradient(to bottom, #3cb0fd, #3498db); | ||
text-decoration: none; | ||
} | ||
|
||
.txt { | ||
margin-top: 20px; | ||
background: #ffffff; | ||
-webkit-border-radius: 28; | ||
-moz-border-radius: 28; | ||
border-radius: 0; | ||
-webkit-box-shadow: 0 1px 3px #666666; | ||
-moz-box-shadow: 0 1px 3px #666666; | ||
box-shadow: 0 1px 3px #666666; | ||
font-family: Arial; | ||
color: #000000; | ||
font-size: 20px; | ||
padding: 10px 20px 10px 20px; | ||
text-decoration: none; | ||
} | ||
|
||
body{ | ||
background-image: url(private.jpg); | ||
background-repeat: no-repeat; | ||
background-attachment: fixed; | ||
background-position: right bottom; | ||
} | ||
.copyrt{ | ||
margin-top: 20px; | ||
} | ||
#header h1, #header h3 { line-height: 1; } | ||
#header h1 em, #header h3 em { color: #d23112; font-style: normal; } | ||
#header h1 { font-size: 58px; margin: 0 auto; font-weight: bold; } | ||
#header h3 { line-height:125%; font-family: arial; color: #757880; margin-top: 2%; margin-left: 25%; margin-right: 25%; margin-bottom: 3% font-weight: normal; font-size: 20px; } | ||
|
||
|
||
@media (max-width:600px) { | ||
body{ | ||
background-size: 40%; | ||
} | ||
#header h1{ | ||
font-size: 50px; | ||
} | ||
#header h3{ | ||
margin-left: 10%; | ||
margin-right: 10%; | ||
} | ||
|
||
} |