Skip to content

Instantly share code, notes, and snippets.

@ethicalhack3r
Last active October 17, 2019 09:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethicalhack3r/0629b4693118488058c5df47476e7de9 to your computer and use it in GitHub Desktop.
Save ethicalhack3r/0629b4693118488058c5df47476e7de9 to your computer and use it in GitHub Desktop.
#!/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