Merge pull request #3 from wpscanteam/master

update master
This commit is contained in:
Peter van der Laan
2013-11-10 03:43:53 -08:00
5 changed files with 8 additions and 7 deletions

2
.gitignore vendored
View File

@@ -1,4 +1,4 @@
cache/*
cache
coverage
.bundle
.DS_Store

4
cache/.gitignore vendored
View File

@@ -1,4 +0,0 @@
# Ignore everything in this directory
*
# Except this file
!.gitignore

View File

@@ -24,7 +24,7 @@ class CacheFileStore
# File.directory? for ruby <= 1.9 otherwise,
# it makes more sense to do Dir.exist? :/
unless File.directory?(@storage_path)
Dir.mkdir(@storage_path)
FileUtils.mkdir_p(@storage_path)
end
end

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} =~ /kali/i
end
require 'environment'
# TODO : add an exclude pattern ?

View File

@@ -13,7 +13,7 @@ Encoding.default_external = Encoding::UTF_8
begin
# Standard libs
require 'bundler/setup'
require 'bundler/setup' unless kali_linux?
require 'getoptlong'
require 'optparse' # Will replace getoptlong
require 'uri'
@@ -27,6 +27,7 @@ begin
require 'rbconfig'
require 'pp'
require 'shellwords'
require 'fileutils'
# Third party libs
require 'typhoeus'
require 'json'