Rapid7 Vulnerability & Exploit Database

Capture: HTTP JavaScript Keylogger

Back to Search

Capture: HTTP JavaScript Keylogger

Created
05/30/2018

Description

This modules runs a web server that demonstrates keystroke logging through JavaScript. The DEMO option can be set to enable a page that demonstrates this technique. Future improvements will allow for a configurable template to be used with this module. To use this module with an existing web page, simply add a script source tag pointing to the URL of this service ending in the .js extension. For example, if URIPATH is set to "test", the following URL will load this script into the calling site: http://server:port/test/anything.js

Author(s)

  • Marcus J. Carey <mjc@threatagent.com>
  • hdm <x@hdm.io>

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use auxiliary/server/capture/http_javascript_keylogger
msf auxiliary(http_javascript_keylogger) > show actions
    ...actions...
msf auxiliary(http_javascript_keylogger) > set ACTION < action-name >
msf auxiliary(http_javascript_keylogger) > show options
    ...show and set options...
msf auxiliary(http_javascript_keylogger) > run 

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;