/
githubmirror
/
metasploit-framework
Обзор
Документация
Войти
/
githubmirror
/
metasploit-framework
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
lib/anemone/cli/count.rb
22 строки
389 B
HD Moore
Initial import of an Anemone snapshot
06 ноя 2010, 07:34
06 ноя 2010, 07:34
b3cc6e1
Код
Авторство
О чём код?
require 'anemone' begin # make sure that the first option is a URL we can crawl url = URI(ARGV[0]) rescue puts <<-INFO Usage: anemone count <url> Synopsis: Crawls a site starting at the given URL and outputs the total number of unique pages on the site. INFO exit(0) end Anemone.crawl(url) do |anemone| anemone.after_crawl do |pages| puts pages.uniq!.size end end