Remove Google search module

This commit is contained in:
Brendan Coles
2016-06-12 14:35:41 +00:00
parent ef6d5ae431
commit 1d5a82745e
3 changed files with 0 additions and 67 deletions

View File

@@ -1,30 +0,0 @@
//
// Copyright (c) 2006-2016 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
var query = beef.encode.base64.decode('<%= Base64.encode64(@query).delete("\n") %>');
var searchGoogle = function(query) {
var script = document.createElement('script');
script.defer = true;
script.type = "text/javascript";
script.src = "https://ajax.googleapis.com/ajax/services/search/web?callback=callback&lstkp=0&rsz=large&hl=en&q=" + query + "&v=1.0";
callback = function (results) {
document.body.removeChild(script);
delete callback;
beef.net.send('<%= @command_url %>', <%= @command_id %>, "query="+query+"&results="+JSON.stringify(results));
};
document.body.appendChild(script);
}
searchGoogle(query);
});

View File

@@ -1,15 +0,0 @@
#
# Copyright (c) 2006-2016 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
beef:
module:
google_search:
enable: true
category: "Misc"
name: "Google Search"
description: "This module uses the hooked browser to search Google."
authors: ["bcoles"]
target:
working: ["ALL"]

View File

@@ -1,22 +0,0 @@
#
# Copyright (c) 2006-2016 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Google_search < BeEF::Core::Command
def self.options
return [
{'name' => 'query', 'ui_label' => 'Query', 'type' => 'textarea', 'value' =>'beef', 'width' => '400px', 'height' => '50px'}
]
end
def post_execute
content = {}
content['results'] = @datastore['results']
content['query'] = @datastore['query']
save content
end
end