Skip to content

Instantly share code, notes, and snippets.

@ethicalhack3r
Last active October 17, 2019 09:21
Show Gist options
  • Save ethicalhack3r/0629b4693118488058c5df47476e7de9 to your computer and use it in GitHub Desktop.
Save ethicalhack3r/0629b4693118488058c5df47476e7de9 to your computer and use it in GitHub Desktop.

Revisions

  1. ethicalhack3r revised this gist Oct 17, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion is_wordpress.rb
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    filename = ARGV[0]

    def check_wordpress( website )
    WPScan::Browser.instance(user_agent: I18n.t('website_checker.user_agent'), disable_tls_checks: true)
    WPScan::Browser.instance( disable_tls_checks: true )

    WPScan::Target.new( website ).wordpress?(:mixed)
    end
  2. ethicalhack3r created this gist Oct 17, 2019.
    19 changes: 19 additions & 0 deletions is_wordpress.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/usr/bin/env ruby

    require 'wpscan'
    require 'uri'

    filename = ARGV[0]

    def check_wordpress( website )
    WPScan::Browser.instance(user_agent: I18n.t('website_checker.user_agent'), 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