From 40eb187bca6a985ce7d24b19ac54c47ade285858 Mon Sep 17 00:00:00 2001 From: bitform Date: Mon, 21 Jan 2013 08:33:51 -0500 Subject: Consistency improvements in comment-based help --- Recon/Invoke-ReverseDnsLookup.ps1 | 86 ++++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 42 deletions(-) (limited to 'Recon/Invoke-ReverseDnsLookup.ps1') diff --git a/Recon/Invoke-ReverseDnsLookup.ps1 b/Recon/Invoke-ReverseDnsLookup.ps1 index af45f2e..1346ae6 100644 --- a/Recon/Invoke-ReverseDnsLookup.ps1 +++ b/Recon/Invoke-ReverseDnsLookup.ps1 @@ -1,64 +1,66 @@ function Invoke-ReverseDnsLookup { - <# -.Synopsis +.SYNOPSIS + +Perform a reverse DNS lookup scan on a range of IP addresses. - PowerSploit Module - Invoke-ReverseDnsLookup - Author: Matthew Graeber (@mattifestation) - License: BSD 3-Clause +PowerSploit Function: Invoke-ReverseDnsLookup +Author: Matthew Graeber (@mattifestation) +License: BSD 3-Clause +Required Dependencies: None +Optional Dependencies: None -.Description +.DESCRIPTION - Invoke-ReverseDnsLookup scans an IP address range for DNS PTR records. This script - is useful for performing DNS reconnaisance prior to conducting an authorized - penetration test. +Invoke-ReverseDnsLookup scans an IP address range for DNS PTR records. This script is useful for performing DNS reconnaisance prior to conducting an authorized penetration test. -.Parameter IPRange +.PARAMETER IPRange - Specifies the IP address range. The range provided can be in the form of a single - IP address, a low-high range, or a CIDR range. Comma-delimited ranges may can be - provided. +Specifies the IP address range. The range provided can be in the form of a single IP address, a low-high range, or a CIDR range. Comma-delimited ranges may can be provided. -.Example +.EXAMPLE - PS> Invoke-ReverseDnsLookup 74.125.228.0/29 +C:\PS> Invoke-ReverseDnsLookup 74.125.228.0/29 - IP HostName - -- -------- - 74.125.228.1 iad23s05-in-f1.1e100.net - 74.125.228.2 iad23s05-in-f2.1e100.net - 74.125.228.3 iad23s05-in-f3.1e100.net - 74.125.228.4 iad23s05-in-f4.1e100.net - 74.125.228.5 iad23s05-in-f5.1e100.net - 74.125.228.6 iad23s05-in-f6.1e100.net +IP HostName +-- -------- +74.125.228.1 iad23s05-in-f1.1e100.net +74.125.228.2 iad23s05-in-f2.1e100.net +74.125.228.3 iad23s05-in-f3.1e100.net +74.125.228.4 iad23s05-in-f4.1e100.net +74.125.228.5 iad23s05-in-f5.1e100.net +74.125.228.6 iad23s05-in-f6.1e100.net - Description - ----------- - Returns the hostnames of the IP addresses specified by the CIDR range. +Description +----------- +Returns the hostnames of the IP addresses specified by the CIDR range. -.Example +.EXAMPLE - PS> Invoke-ReverseDnsLookup '74.125.228.1,74.125.228.4-74.125.228.6' - - IP HostName - -- -------- - 74.125.228.1 iad23s05-in-f1.1e100.net - 74.125.228.4 iad23s05-in-f4.1e100.net - 74.125.228.5 iad23s05-in-f5.1e100.net - 74.125.228.6 iad23s05-in-f6.1e100.net - - Description - ----------- - Returns the hostnames of the IP addresses specified by the IP range specified. +C:\PS> Invoke-ReverseDnsLookup '74.125.228.1,74.125.228.4-74.125.228.6' +IP HostName +-- -------- +74.125.228.1 iad23s05-in-f1.1e100.net +74.125.228.4 iad23s05-in-f4.1e100.net +74.125.228.5 iad23s05-in-f5.1e100.net +74.125.228.6 iad23s05-in-f6.1e100.net -.Link +Description +----------- +Returns the hostnames of the IP addresses specified by the IP range specified. + +.LINK - My blog: http://www.exploit-monday.com +http://www.exploit-monday.com #> -Param( [Parameter(Position = 0, Mandatory = $True)] [String] $IpRange ) + Param ( + [Parameter(Position = 0, Mandatory = $True)] + [String] + $IpRange + ) function Parse-IPList ([String] $IpRange) { -- cgit v1.2.3