class Object

Constants

CACHE
FUZZ_WEB_DIR_DICT
FUZZ_WEB_DIR_EXT
FUZZ_WEB_DIR_HEADER
FUZZ_WEB_DIR_HIDE_CODE
FUZZ_WEB_DIR_MAX_THREAD
FUZZ_WEB_DIR_PROXY_FILE
FUZZ_WEB_DIR_TIMEOUT
FUZZ_WEB_DIR_WAIT
MAX_THREAD
NAME_SERVERS
PROXY_CACHE
TIME_OUT
USER_AGENTS
VERSION
WORDLIST

Public Instance Methods

cache_subdomain() click to toggle source
# File lib/m4dh4v45b1n/enum-subdomain.rb, line 30
def cache_subdomain
  if !ENV["HOME"].nil?
    if !File.exist? ENV["HOME"]+"/.cache"
      Dir::mkdir ENV["HOME"]+"/.cache"
    end
    if !File.exist? ENV["HOME"]+"/.cache/enum-subdomain"
      Dir::mkdir ENV["HOME"]+"/.cache/enum-subdomain"
    end
    if File.exist? ENV["HOME"]+"/.cache/enum-subdomain"
      return ENV["HOME"]+"/.cache/enum-subdomain"
    end
  end
  return nil
end
rand_user_agent() click to toggle source
# File lib/m4dh4v45b1n/rand-util.rb, line 30
def rand_user_agent
  return USER_AGENTS[rand(USER_AGENTS.length)]
end
wordlist() click to toggle source
# File lib/m4dh4v45b1n/enum-subdomain.rb, line 21
def wordlist
  Gem::path.map do |p|
    if File.exist? p+"/gems/m4dh4v45b1n-#{VERSION}/dict/subdomain.txt"
      return p+"/gems/m4dh4v45b1n-#{VERSION}/dict/subdomain.txt"
    end
  end
  puts "enum-subdomain.rb: Unable to detuct default wordlist use -w"
  exit
end