From d3362bac75e58027a9c38315ec8ffe0c1efdf2f2 Mon Sep 17 00:00:00 2001 From: erwanlr Date: Wed, 26 Jun 2013 01:15:51 +0300 Subject: [PATCH] Kali Linux detection --- lib/common/common_helper.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/common/common_helper.rb b/lib/common/common_helper.rb index 45c87e1f..0131773f 100644 --- a/lib/common/common_helper.rb +++ b/lib/common/common_helper.rb @@ -138,4 +138,8 @@ def get_equal_string_end(stringarray = ['']) end end already_found -end \ No newline at end of file +end + +def kali_linux? + %x{uname -a}.match(/linux kali/i) ? true : false +end