diff --git a/modules/host/detect_airdrone/command.js b/modules/host/detect_airdroid/command.js similarity index 85% rename from modules/host/detect_airdrone/command.js rename to modules/host/detect_airdroid/command.js index 2bbbb12cc..ca5f0fe7f 100644 --- a/modules/host/detect_airdrone/command.js +++ b/modules/host/detect_airdroid/command.js @@ -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); diff --git a/modules/host/detect_airdrone/config.yaml b/modules/host/detect_airdroid/config.yaml similarity index 71% rename from modules/host/detect_airdrone/config.yaml rename to modules/host/detect_airdroid/config.yaml index e9ec23644..13920aba3 100644 --- a/modules/host/detect_airdrone/config.yaml +++ b/modules/host/detect_airdroid/config.yaml @@ -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: diff --git a/modules/host/detect_airdrone/module.rb b/modules/host/detect_airdroid/module.rb similarity index 81% rename from modules/host/detect_airdrone/module.rb rename to modules/host/detect_airdroid/module.rb index 11c346bc9..6890d463d 100644 --- a/modules/host/detect_airdrone/module.rb +++ b/modules/host/detect_airdroid/module.rb @@ -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