Better fix for Kali
This commit is contained in:
@@ -39,6 +39,10 @@ $LOAD_PATH.unshift(LIB_DIR)
|
|||||||
$LOAD_PATH.unshift(WPSCAN_LIB_DIR)
|
$LOAD_PATH.unshift(WPSCAN_LIB_DIR)
|
||||||
$LOAD_PATH.unshift(MODELS_LIB_DIR)
|
$LOAD_PATH.unshift(MODELS_LIB_DIR)
|
||||||
|
|
||||||
|
def kali_linux?
|
||||||
|
%x{uname -a} =~ /kali/i
|
||||||
|
end
|
||||||
|
|
||||||
require 'environment'
|
require 'environment'
|
||||||
|
|
||||||
# TODO : add an exclude pattern ?
|
# TODO : add an exclude pattern ?
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ Encoding.default_external = Encoding::UTF_8
|
|||||||
|
|
||||||
begin
|
begin
|
||||||
# Standard libs
|
# Standard libs
|
||||||
require 'bundler/setup'
|
require 'bundler/setup' unless kali_linux?
|
||||||
require 'getoptlong'
|
require 'getoptlong'
|
||||||
require 'optparse' # Will replace getoptlong
|
require 'optparse' # Will replace getoptlong
|
||||||
require 'uri'
|
require 'uri'
|
||||||
|
|||||||
Reference in New Issue
Block a user