From a103ca3f3023783acee870d1721a8c700aed037d Mon Sep 17 00:00:00 2001 From: Brendan Coles Date: Sun, 24 Mar 2019 22:55:49 +0000 Subject: [PATCH] Rename get_internal_ip to get_internal_ip_java --- modules/host/get_internal_ip/config.yaml | 15 --------------- .../command.js | 0 modules/host/get_internal_ip_java/config.yaml | 15 +++++++++++++++ .../get_internal_ip.class | Bin .../get_internal_ip.java | 0 .../module.rb | 4 ++-- 6 files changed, 17 insertions(+), 17 deletions(-) delete mode 100755 modules/host/get_internal_ip/config.yaml rename modules/host/{get_internal_ip => get_internal_ip_java}/command.js (100%) create mode 100755 modules/host/get_internal_ip_java/config.yaml rename modules/host/{get_internal_ip => get_internal_ip_java}/get_internal_ip.class (100%) rename modules/host/{get_internal_ip => get_internal_ip_java}/get_internal_ip.java (100%) rename modules/host/{get_internal_ip => get_internal_ip_java}/module.rb (89%) diff --git a/modules/host/get_internal_ip/config.yaml b/modules/host/get_internal_ip/config.yaml deleted file mode 100755 index 2b0e76d59..000000000 --- a/modules/host/get_internal_ip/config.yaml +++ /dev/null @@ -1,15 +0,0 @@ -# -# Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net -# Browser Exploitation Framework (BeEF) - http://beefproject.com -# See the file 'doc/COPYING' for copying permission -# -beef: - module: - get_internal_ip: - enable: true - category: "Host" - name: "Get Internal IP (Java)" - description: "Retrieve the internal (behind NAT) IP address of the victim machine using an unsigned Java applet.

The browser must have Java enabled and configured to allow execution of unsigned Java applets." - authors: ["antisnatchor"] - target: - user_notify: ["ALL"] diff --git a/modules/host/get_internal_ip/command.js b/modules/host/get_internal_ip_java/command.js similarity index 100% rename from modules/host/get_internal_ip/command.js rename to modules/host/get_internal_ip_java/command.js diff --git a/modules/host/get_internal_ip_java/config.yaml b/modules/host/get_internal_ip_java/config.yaml new file mode 100755 index 000000000..6ec92d793 --- /dev/null +++ b/modules/host/get_internal_ip_java/config.yaml @@ -0,0 +1,15 @@ +# +# Copyright (c) 2006-2019 Wade Alcorn - wade@bindshell.net +# Browser Exploitation Framework (BeEF) - http://beefproject.com +# See the file 'doc/COPYING' for copying permission +# +beef: + module: + get_internal_ip_java: + enable: true + category: "Host" + name: "Get Internal IP (Java)" + description: "Retrieve the local network interface IP address of the victim machine using an unsigned Java applet.

The browser must have Java enabled and configured to allow execution of unsigned Java applets.

Note that modern Java (as of Java 7u51) will outright refuse to execute unsigned Java applets, and will also reject self-signed Java applets unless they're added to the exception list." + authors: ["antisnatchor"] + target: + user_notify: ["ALL"] diff --git a/modules/host/get_internal_ip/get_internal_ip.class b/modules/host/get_internal_ip_java/get_internal_ip.class similarity index 100% rename from modules/host/get_internal_ip/get_internal_ip.class rename to modules/host/get_internal_ip_java/get_internal_ip.class diff --git a/modules/host/get_internal_ip/get_internal_ip.java b/modules/host/get_internal_ip_java/get_internal_ip.java similarity index 100% rename from modules/host/get_internal_ip/get_internal_ip.java rename to modules/host/get_internal_ip_java/get_internal_ip.java diff --git a/modules/host/get_internal_ip/module.rb b/modules/host/get_internal_ip_java/module.rb similarity index 89% rename from modules/host/get_internal_ip/module.rb rename to modules/host/get_internal_ip_java/module.rb index d5e57a73f..36469a228 100755 --- a/modules/host/get_internal_ip/module.rb +++ b/modules/host/get_internal_ip_java/module.rb @@ -3,10 +3,10 @@ # Browser Exploitation Framework (BeEF) - http://beefproject.com # See the file 'doc/COPYING' for copying permission # -class Get_internal_ip < BeEF::Core::Command +class Get_internal_ip_java < BeEF::Core::Command def pre_send - BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/host/get_internal_ip/get_internal_ip.class', '/get_internal_ip', 'class') + BeEF::Core::NetworkStack::Handlers::AssetHandler.instance.bind('/modules/host/get_internal_ip_java/get_internal_ip.class', '/get_internal_ip', 'class') end #def self.options