Update common_helper.rb
This commit is contained in:
@@ -39,6 +39,10 @@ $LOAD_PATH.unshift(LIB_DIR)
|
||||
$LOAD_PATH.unshift(WPSCAN_LIB_DIR)
|
||||
$LOAD_PATH.unshift(MODELS_LIB_DIR)
|
||||
|
||||
def kali_linux?
|
||||
%x{uname -a}.match(/linux kali/i) ? true : false
|
||||
end
|
||||
|
||||
require 'environment'
|
||||
|
||||
# TODO : add an exclude pattern ?
|
||||
@@ -139,7 +143,3 @@ def get_equal_string_end(stringarray = [''])
|
||||
end
|
||||
already_found
|
||||
end
|
||||
|
||||
def kali_linux?
|
||||
%x{uname -a}.match(/linux kali/i) ? true : false
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user