Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'open-uri'
- =begin
- Coded by ./ZepeK
- Skype: live:zepek_al
- =end
- def scan(site)
- begin
- source = open(site).read
- rescue
- end
- if (source =~ /generator" content="Joomla/)
- puts site + " => \e[32mJoomla !\e[0m"
- File.open("joomla.html","a+") do |j|
- j.puts"#{site}<br>"
- end
- elsif(source =~ /generator" content="WordPress/)
- puts site + " => \e[31mWoordPress !\e[0m"
- File.open("wp.html","a+") do |w|
- w.puts"#{site}<br>"
- end
- elsif(source =~ /enerator" content="Drupal/)
- puts site + " => \e[33mdrupal !\e[0m"
- File.open("drupal.html","a+") do |d|
- d.puts"#{site}<br>"
- end
- elsif(source =~ /generator" content="vBulletin/)
- puts site + " => \e[35mvBulletin !\e[0m"
- File.open("vb.html","a+") do |v|
- v.puts"#{site}<br>"
- end
- else
- puts site + " => \e[30mUnknown!\e[0m"
- end
- end
- puts "\n"
- puts "\t ▒▒▒▒▒▒▒▓ "
- puts "\t ▒▒▒▒▒▒▒▓▓▓ "
- puts "\t ▒▓▓▓▓▓▓░░░▓ "
- puts "\t ▒▓░░░░▓░░░░▓ "
- puts "\t ▓░░░░░░▓░▓░▓ "
- puts "\t ▓░░░░░░▓░░░▓ "
- puts "\t ▓░░▓░░░▓▓▓▓ "
- puts "\t ▒▓░░░░▓▒▒▒▒▓ "
- puts "\t ▒▒▓▓▓▓▒▒▒▒▒▓ "
- puts "\t ▒▒▒▒▒▒▒▒▓▓▓▓ "
- puts "\t ▒▒▒▒▒▓▓▓▒▒▒▒▓ "
- puts "\t ▒▒▒▒▓▒▒▒▒▒▒▒▒▓ "
- puts "\t ▒▒▒▓▒▒▒▒▒▒▒▒▒▓ "
- puts "\t ▒▒▓▒▒▒▒▒▒▒▒▒▒▒▓ "
- puts "\t ▒▓▒▓▒▒▒▒▒▒▒▒▒▓ "
- puts "\t ▒▓▒▓▓▓▓▓▓▓▓▓▓ "
- puts "\t ▒▓▒▒▒▒▒▒▒▓ "
- puts "\t ▒▒▓▒▒▒▒▒▓ "
- puts "\n"
- print "DIGITE SUA LISTA DE SITES : "
- print ""
- list = gets.chomp
- puts "\n"
- arr = File.read(list).split()
- arr.each do |x|
- scan(x)
- end
Advertisement
Add Comment
Please, Sign In to add comment