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