Sha256: 3b498b04c153697b5cb74aa02c8f1143b7da8a467c4f46c1bdb74a51f9de9d02

Contents?: true

Size: 1.56 KB

Versions: 5

Compression:

Stored size: 1.56 KB

Contents

=begin
                  Arachni
  Copyright (c) 2010-2011 Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>

  This is free software; you can copy and distribute and modify
  this program under the term of the GPL v2.0 License
  (See LICENSE file for details)

=end

module Arachni
module Modules

#
#
# @author: Tasos "Zapotek" Laskos
#                                      <tasos.laskos@gmail.com>
#                                      <zapotek@segfault.gr>
# @version: 0.1
#
class EMails < Arachni::Module::Base

    def initialize( page )
        @page = page
    end

    def run( )
        @@_logged ||= Set.new

        regexp = /[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,4}/i
        match_and_log( regexp ){
            |email|
            return false if @@_logged.include?( email )
            @@_logged << email
        }
    end

    def self.info
        {
            :name           => 'E-mail address',
            :description    => %q{Greps pages for disclosed e-mail addresses.},
            :author         => 'Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>',
            :version        => '0.1',
            :targets        => { 'Generic' => 'all' },
            :issue   => {
                :name        => %q{Disclosed e-mail address.},
                :description => %q{An e-mail address is being disclosed.},
                :cwe         => '200',
                :severity    => Issue::Severity::INFORMATIONAL,
                :cvssv2      => '0',
                :remedy_guidance    => %q{},
                :remedy_code => '',
            }
        }
    end

end
end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
arachni-0.3 modules/recon/grep/emails.rb
arachni-0.2.4 modules/recon/grep/emails.rb
arachni-0.2.3 modules/recon/grep/emails.rb
arachni-0.2.2.2 modules/recon/grep/emails.rb
arachni-0.2.2.1 modules/recon/grep/emails.rb