Update common_helper.rb

This commit is contained in:
erwanlr
2013-06-26 01:18:16 +03:00
parent bc435a6266
commit c81a87d154

View File

@@ -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