From 82a70fbcd04ade79a0fab17f290c3fdf57a5abb7 Mon Sep 17 00:00:00 2001 From: Christian Frichot Date: Sat, 20 Jul 2013 13:58:20 +0800 Subject: [PATCH] Detect LastPass module (except on IE) - #802 --- modules/browser/detect_lastpass/command.js | 29 +++++++++++++++++++++ modules/browser/detect_lastpass/config.yaml | 16 ++++++++++++ modules/browser/detect_lastpass/module.rb | 14 ++++++++++ 3 files changed, 59 insertions(+) create mode 100644 modules/browser/detect_lastpass/command.js create mode 100644 modules/browser/detect_lastpass/config.yaml create mode 100644 modules/browser/detect_lastpass/module.rb diff --git a/modules/browser/detect_lastpass/command.js b/modules/browser/detect_lastpass/command.js new file mode 100644 index 000000000..9486b9210 --- /dev/null +++ b/modules/browser/detect_lastpass/command.js @@ -0,0 +1,29 @@ +// +// Copyright (c) 2006-2013 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 = "Not in use or not installed"; + + var lpdiv = document.getElementById('hiddenlpsubmitdiv'); + if (typeof(lpdiv) != 'undefined' && lpdiv != null) { + //We've got the first detection of LP + result = "Detected LastPass through presence of the