Sha256: 97b7463887d890ffac49d14c9307fbf5dd2c0810e2eda22d45b3d9ae168bf754
Contents?: true
Size: 1.49 KB
Versions: 5
Compression:
Stored size: 1.49 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 SSN < Arachni::Module::Base def initialize( page ) @page = page end def run( ) regexp = /^(?!000)([0-6]\d{2}|7([0-6]\d|7[012]))([ -]?)(?!00)\d\d\3(?!0000)\d{4}$/ match_and_log( regexp ) end def self.info { :name => 'SSN', :description => %q{Greps pages for disclosed US Social Security Numbers.}, :author => 'Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>', :version => '0.1', :targets => { 'Generic' => 'all' }, :issue => { :name => %q{Disclosed US Social Security Number.}, :description => %q{A US Social Security Number is being disclosed.}, :cwe => '200', :severity => Issue::Severity::HIGH, :cvssv2 => '0', :remedy_guidance => %q{Remove all SSN occurences from the page.}, :remedy_code => '', } } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems