Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env ruby
require 'wpscan'
require 'uri'
filename = ARGV[0]
def check_wordpress( website )
WPScan::Browser.instance( disable_tls_checks: true )
WPScan::Target.new( website ).wordpress?(:mixed)
end
File.foreach( filename ).with_index do |website, line_num|
website = website.chomp!
is_wordpress = check_wordpress( website )
puts "#{line_num} #{website} #{is_wordpress}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment