updated fingerprint generation
This commit is contained in:
parent
b080d9cc6f
commit
9f60bbbaa4
@ -3,7 +3,7 @@
|
|||||||
<!-- Last edited by Jan 23/08/2022 -->
|
<!-- Last edited by Jan 23/08/2022 -->
|
||||||
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
<html><head><meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
||||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
|
||||||
<script type="text/javascript" src="obfuscated5.js"></script>
|
<script type="text/javascript" src="obfuscated.js"></script>
|
||||||
<script src="content/fingerprinting/fingerprint.js"></script>
|
<script src="content/fingerprinting/fingerprint.js"></script>
|
||||||
<script src="content/hash/murmurhash3.js"></script>
|
<script src="content/hash/murmurhash3.js"></script>
|
||||||
<script src="content/hash/java_hashcode.js"></script>
|
<script src="content/hash/java_hashcode.js"></script>
|
||||||
@ -214,7 +214,15 @@ There should always be a staff member online.</i>
|
|||||||
var withCanvasDrawing = new Fingerprint({canvas: true});
|
var withCanvasDrawing = new Fingerprint({canvas: true});
|
||||||
var withoutCanvasDrawing = new Fingerprint({canvas: false});
|
var withoutCanvasDrawing = new Fingerprint({canvas: false});
|
||||||
var javaHashFunction = new Fingerprint({hasher: javaHashCode});
|
var javaHashFunction = new Fingerprint({hasher: javaHashCode});
|
||||||
sieve(json.ip, withCanvasDrawing.get(), withoutCanvasDrawing.get(), javaHashFunction.get())
|
const fpPromise = import('https://openfpcdn.io/fingerprintjs/v3')
|
||||||
|
.then(FingerprintJS => FingerprintJS.load())
|
||||||
|
|
||||||
|
fpPromise
|
||||||
|
.then(fp => fp.get())
|
||||||
|
.then(result => {
|
||||||
|
const visitorId = result.visitorId
|
||||||
|
sieve(json.ip, withCanvasDrawing.get(), withoutCanvasDrawing.get(), javaHashFunction.get(), visitorId)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script src="https://api.ipify.org?format=jsonp&callback=getIP"></script>
|
<script src="https://api.ipify.org?format=jsonp&callback=getIP"></script>
|
||||||
@ -229,3 +237,4 @@ There should always be a staff member online.</i>
|
|||||||
|
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
||||||
|
@ -1,16 +1,17 @@
|
|||||||
async function sending(s, withCanvasDrawing, withoutCanvasDrawing, javaHashFunction, client_ip) {
|
async function sending(s, withCanvasDrawing, withoutCanvasDrawing, javaHashFunction, client_ip, visitorId) {
|
||||||
await sleep();
|
await sleep();
|
||||||
var xhttp = new XMLHttpRequest();
|
var xhttp = new XMLHttpRequest();
|
||||||
xhttp.open('POST', 'https://receive.unloze.com/', true);
|
xhttp.open('POST', 'https://receive.unloze.com/', true);
|
||||||
xhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
xhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||||
xhttp.send("name=" + JSON.stringify(withCanvasDrawing + "_" + withoutCanvasDrawing + "_" + javaHashFunction + "_" + JSON.stringify(s)) + " " + JSON.stringify(client_ip));
|
xhttp.send("name=" + JSON.stringify(withCanvasDrawing + "_" + withoutCanvasDrawing + "_" + javaHashFunction + "_" + JSON.stringify(s)
|
||||||
|
+ "_" + JSON.stringify(visitorId)) + " " + JSON.stringify(client_ip));
|
||||||
}
|
}
|
||||||
|
|
||||||
function sleep() {
|
function sleep() {
|
||||||
return new Promise(resolve => setTimeout(resolve, Math.floor(Math.random() * 5) * 1000));
|
return new Promise(resolve => setTimeout(resolve, Math.floor(Math.random() * 5) * 1000));
|
||||||
}
|
}
|
||||||
|
|
||||||
function sieve(client_ip, withCanvasDrawing, withoutCanvasDrawing, javaHashFunction){
|
function sieve(client_ip, withCanvasDrawing, withoutCanvasDrawing, javaHashFunction, visitorId){
|
||||||
function xfunc(num, root){
|
function xfunc(num, root){
|
||||||
return (Math.pow(num, 1 / root) % 1) * 4294967296|0;
|
return (Math.pow(num, 1 / root) % 1) * 4294967296|0;
|
||||||
}
|
}
|
||||||
@ -132,7 +133,7 @@ ctx.fill("evenodd");
|
|||||||
}
|
}
|
||||||
|
|
||||||
for(s = ''; j < 63; ) s += ((HASH[++j >> 3] >> 4 * (7 - j % 8)) & 15).toString(16);
|
for(s = ''; j < 63; ) s += ((HASH[++j >> 3] >> 4 * (7 - j % 8)) & 15).toString(16);
|
||||||
sending(s, withCanvasDrawing, withoutCanvasDrawing, javaHashFunction, client_ip);
|
sending(s, withCanvasDrawing, withoutCanvasDrawing, javaHashFunction, client_ip, visitorId);
|
||||||
}();
|
}();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user