Module: Ronin::Wordlists
- Defined in:
- lib/ronin/wordlists.rb,
lib/ronin/wordlists/cli.rb,
lib/ronin/wordlists/root.rb,
lib/ronin/wordlists/mixin.rb,
lib/ronin/wordlists/version.rb,
lib/ronin/wordlists/cache_dir.rb,
lib/ronin/wordlists/exceptions.rb,
lib/ronin/wordlists/cli/command.rb,
lib/ronin/wordlists/search_paths.rb,
lib/ronin/wordlists/wordlist_dir.rb,
lib/ronin/wordlists/wordlist_file.rb,
lib/ronin/wordlists/wordlist_repo.rb,
lib/ronin/wordlists/cli/commands/list.rb,
lib/ronin/wordlists/wordlist_metadata.rb,
lib/ronin/wordlists/cli/commands/purge.rb,
lib/ronin/wordlists/cli/wordlist_index.rb,
lib/ronin/wordlists/cli/commands/remove.rb,
lib/ronin/wordlists/cli/commands/search.rb,
lib/ronin/wordlists/cli/commands/update.rb,
lib/ronin/wordlists/cli/wordlist_option.rb,
lib/ronin/wordlists/cli/commands/download.rb,
lib/ronin/wordlists/cli/commands/completion.rb,
lib/ronin/wordlists/cli/wordlist_dir_option.rb
Overview
Top-level methods for ronin-wordlists
.
Defined Under Namespace
Modules: Mixin, WordlistMetadata Classes: CLI, CacheDir, DownloadFailed, Exception, InvalidManifestFile, SearchPaths, WordlistDir, WordlistFile, WordlistNotFound, WordlistRepo
Constant Summary collapse
- ROOT =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
Path to
ronin-wordlists
root directory. File.(File.join(__dir__,'..','..','..'))
- VERSION =
ronin-wordlists version
'0.1.0'
Class Method Summary collapse
-
.download(url) ⇒ Object
Downloads a new wordlist.
-
.find(name) ⇒ String?
Finds a wordlist.
-
.list(pattern = '*') ⇒ Set<String>
Lists all wordlists on the system.
-
.open(name) ⇒ Wordlist::File
Opens a wordlist.
Class Method Details
.download(url) ⇒ Object
Downloads a new wordlist.
44 45 46 |
# File 'lib/ronin/wordlists.rb', line 44 def self.download(url) @cache_dir.download(url) end |
.find(name) ⇒ String?
Finds a wordlist.
59 60 61 |
# File 'lib/ronin/wordlists.rb', line 59 def self.find(name) @search_paths.find(name) end |
.list(pattern = '*') ⇒ Set<String>
Lists all wordlists on the system.
74 75 76 |
# File 'lib/ronin/wordlists.rb', line 74 def self.list(pattern='*') @search_paths.list(pattern) end |
.open(name) ⇒ Wordlist::File
Opens a wordlist.
92 93 94 |
# File 'lib/ronin/wordlists.rb', line 92 def self.open(name) @search_paths.open(name) end |