Skip to content

Commit

Permalink
Removed '-f' short option for list-known-framework
Browse files Browse the repository at this point in the history
  • Loading branch information
thesp0nge committed Mar 25, 2014
1 parent 1cb7fca commit 07bb7ea
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
20 changes: 16 additions & 4 deletions bin/dawn
Expand Up @@ -15,20 +15,29 @@ VALID_OUTPUT_FORMAT = %w(console json csv html)

$logger = Codesake::Commons::Logging.instance
opts = GetoptLong.new(
# report formatting options
[ '--ascii-tabular-report', '-a', GetoptLong::NO_ARGUMENT],
[ '--json', '-j', GetoptLong::NO_ARGUMENT],
[ '--html', '-H', GetoptLong::NO_ARGUMENT],

# MVC forcing
[ '--rails', '-r', GetoptLong::NO_ARGUMENT],
[ '--sinatra', '-s', GetoptLong::NO_ARGUMENT],
[ '--padrino', '-p', GetoptLong::NO_ARGUMENT],
[ '--gem-lock', '-G', GetoptLong::REQUIRED_ARGUMENT],
[ '--list-known-framework', '-f', GetoptLong::NO_ARGUMENT],

[ '--gem-lock', '-G', GetoptLong::REQUIRED_ARGUMENT],
[ '--list-knowledgebase', '-k', GetoptLong::OPTIONAL_ARGUMENT],
[ '--verbose', '-V', GetoptLong::NO_ARGUMENT],
[ '--debug', '-D', GetoptLong::NO_ARGUMENT],
[ '--count-only', '-C', GetoptLong::NO_ARGUMENT],
[ '--exit-on-warn', '-z', GetoptLong::NO_ARGUMENT],

[ '--list-known-framework', GetoptLong::NO_ARGUMENT],
[ '--list-known-families', GetoptLong::NO_ARGUMENT],
# please save output to file
[ '--file', '-F', GetoptLong::REQUIRED_ARGUMENT],

# service options
[ '--verbose', '-V', GetoptLong::NO_ARGUMENT],
[ '--debug', '-D', GetoptLong::NO_ARGUMENT],
[ '--version', '-v', GetoptLong::NO_ARGUMENT],
[ '--help', '-h', GetoptLong::NO_ARGUMENT]
)
Expand All @@ -44,6 +53,9 @@ opts.each do |opt, val|
when '--version'
puts "#{Codesake::Dawn::VERSION} [#{Codesake::Dawn::CODENAME}]"
Kernel.exit(0)
when '--list-known-families'
puts 'here'
Kernel.exit(0)
when '--json'
options[:output] = "json"
when '--ascii-tabular-report'
Expand Down
2 changes: 1 addition & 1 deletion lib/codesake/dawn/core.rb
Expand Up @@ -15,14 +15,14 @@ def self.help
printf "\n -p, --padrino\t\t\t\tforce dawn to consider the target a padrino application"
printf "\n -G, --gem-lock\t\t\t\tforce dawn to scan only for vulnerabilities affecting dependencies in Gemfile.lock"
printf "\n -D, --debug\t\t\t\t\tenters dawn debug mode"
printf "\n -f, --list-known-framework\t\t\tlist ruby MVC frameworks supported by dawn"
printf "\n -k, --list-knowledgebase [check_name]\tlist dawn known security checks. If check_name is specified dawn says if check is present or not"
printf "\n -a, --ascii-tabular-report\t\t\tcause dawn to format findings using table in ascii art"
printf "\n -j, --json\t\t\t\t\tcause dawn to format findings using json"
printf "\n -V, --verbose\t\t\t\tthe output will be more verbose"
printf "\n -C, --count-only\t\t\t\tdawn will only count vulnerabilities (useful for scripts)"
printf "\n -z, --exit-on-warn\t\t\t\tdawn will return number of found vulnerabilities as exit code"
printf "\n -F, --file\t\t\t\t\ttells dawn to write output to filename"
printf "\n --list-known-framework\t\t\tlist ruby MVC frameworks supported by dawn"
printf "\n -v, --version\t\t\t\tshow version information"
printf "\n -h, --help\t\t\t\t\tshow this help\n"

Expand Down

0 comments on commit 07bb7ea

Please sign in to comment.