Sha256: 32fa54baa8f02a755f973245ba19f32ace4287f0ca5e16a7572c3448fcfbd3d9
Contents?: true
Size: 1.6 KB
Versions: 5
Compression:
Stored size: 1.6 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 # # Private IP address recon module. # # Scans every page for prvate IP addresses. # # @author: morpheuslaw <msidagni@nopsec.com> # @version: 0.1 # class PrivateIP < Arachni::Module::Base def initialize( page ) @page = page end def run( ) regexp = /(?<!\.)(?<!\d)(?:(?:10|127)\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)|192\.168|169\.254|172\.0?(?:1[6-9]|2[0-9]|3[01]))(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){2}(?!\d)(?!\.)/ match_and_log( regexp ) end def self.info { :name => 'Private IP address finder', :description => %q{Scans pages for private IP addresses.}, :author => 'morpheuslaw <msidagni@nopsec.com>', :version => '0.1', :targets => { 'Generic' => 'all' }, :issue => { :name => %q{Private IP address disclosure.}, :description => %q{A private IP address is disclosured in the body of the HTML page}, :cwe => '200', :severity => Issue::Severity::LOW, :cvssv2 => '0', :remedy_guidance => %q{Remove private IP addresses from the body of the HTML pages.}, :remedy_code => '', } } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems