@@ -4,10 +4,9 @@
|
||||
// See the file 'doc/COPYING' for copying permission
|
||||
//
|
||||
|
||||
/*!
|
||||
* @literal object: beef.net.local
|
||||
*
|
||||
/**
|
||||
* Provides networking functions for the local/internal network of the zombie.
|
||||
* @namespace beef.net.local
|
||||
*/
|
||||
beef.net.local = {
|
||||
|
||||
@@ -22,7 +21,6 @@ beef.net.local = {
|
||||
* is invalid:
|
||||
* sock: new java.net.Socket();
|
||||
*/
|
||||
|
||||
initializeSocket: function() {
|
||||
if(this.checkJava){
|
||||
if(!beef.browser.hasJava()) {
|
||||
@@ -50,8 +48,8 @@ beef.net.local = {
|
||||
|
||||
/**
|
||||
* Returns the internal IP address of the zombie.
|
||||
* @return: {String} the internal ip of the zombie.
|
||||
* @error: return -1 if the internal ip cannot be retrieved.
|
||||
* @return {String} the internal ip of the zombie.
|
||||
* @error return -1 if the internal ip cannot be retrieved.
|
||||
*/
|
||||
getLocalAddress: function() {
|
||||
if(!this.hasJava) return false;
|
||||
@@ -68,8 +66,8 @@ beef.net.local = {
|
||||
|
||||
/**
|
||||
* Returns the internal hostname of the zombie.
|
||||
* @return: {String} the internal hostname of the zombie.
|
||||
* @error: return -1 if the hostname cannot be retrieved.
|
||||
* @return {String} the internal hostname of the zombie.
|
||||
* @error return -1 if the hostname cannot be retrieved.
|
||||
*/
|
||||
getLocalHostname: function() {
|
||||
if(!this.hasJava) return false;
|
||||
|
||||
Reference in New Issue
Block a user