INNER CODE UNIT · Ruby
self
thesp0nge/dawnscanner · lib/dawn/core.rb:20
def self.help
puts "Usage: dawn [options] target_directory"
printf "\nExamples:\n"
puts "\t$ dawn a_sinatra_webapp_directory"
puts "\t$ dawn -C the_rails_blog_engine"
puts "\t$ dawn -C --json a_sinatra_webapp_directory"
puts "\t$ dawn --ascii-tabular-report my_rails_blog_ecommerce"
puts "\t$ dawn --html -F my_report.html my_rails_blog_ecommerce"
printf "\n -G, --gem-lock\t\t\t\tforce dawn to scan only for vulnerabilities affecting dependencies in Gemfile.lock (DEPRECATED)"
printf "\n -d, --dependencies\t\t\t\tforce dawn to scan only for vulnerabilities affecting dependencies in Gemfile.lock"
printf "\n\nReporting\n"
printf "\n -a, --ascii-tabular-report\t\t\tcause dawn to format findings using tables in ascii art (DEPRECATED)"
printf "\n -j, --json\t\t\t\t\tcause dawn to format findings using json"
printf "\n -K, --console\t\t\t\t\tcause dawn to format findings using plain ascii text"
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 filename\t\t\t\ttells dawn to write output to filename"
printf "\n -c, --config-file filename\t\t\ttells dawn to load configuration from filename"