Sha256: 5ab3ca42305d0f82446b0e052bf20a857254f148aff06466883cbd0b6b4a05ec

Contents?: true

Size: 754 Bytes

Versions: 18

Compression:

Stored size: 754 Bytes

Contents

require 'anemone'
require 'httpclient'


# Yes, I was buit just for RubyDay 2012 talk demo
#

h=HTTPClient.new()
Anemone.crawl(ARGV[0]) do |anemone|
  anemone.on_every_page do |page|
      response = h.get(page.url)
      puts "Original: #{page.url}: #{response.code}"
      response = h.get(page.url.to_s.split(";")[0].concat(".bak"))
      puts "BAK: #{page.url.to_s.split(";")[0].concat(".bak")}: #{response.code}"
      response = h.get(page.url.to_s.split(";")[0].concat(".old"))
      puts "OLD: #{page.url.to_s.split(";")[0].concat(".old")}: #{response.code}"
      response = h.get(page.url.to_s.split(";")[0].concat("~"))
      puts "~: #{page.url.to_s.split(";")[0].concat("~")}: #{response.code}"
  end
end

# http://localhost:8080/HacmeBooks

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
dawnscanner-1.4.2 lib/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
dawnscanner-1.4.1 lib/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
dawnscanner-1.4.0 lib/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
dawnscanner-1.3.5 lib/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
dawnscanner-1.3.1 lib/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
dawnscanner-1.3.0 lib/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
dawnscanner-1.2.99 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.2.99 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.2.0 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.1.3 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.1.2 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.1.1 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.1.0 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.1.0.rc2 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.1.0.rc1 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.0.6 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.0.5 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb
codesake-dawn-1.0.4 lib/codesake/dawn/kb/owasp_ror_cheatsheet/check_for_backup_files.rb