diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index 0131773f..96c28b87 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -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