diff options
author | bitform <matt@exploit-monday.com> | 2013-01-21 08:33:51 -0500 |
---|---|---|
committer | bitform <matt@exploit-monday.com> | 2013-01-21 08:33:51 -0500 |
commit | 40eb187bca6a985ce7d24b19ac54c47ade285858 (patch) | |
tree | 1c3254a0eb82a9595690fed0900075044356252b /Recon/Invoke-ReverseDnsLookup.ps1 | |
parent | 46aead39c6f8d04b00b3c3f2aad10b7948aa003f (diff) | |
download | PowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.tar.gz PowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.zip |
Consistency improvements in comment-based help
Diffstat (limited to 'Recon/Invoke-ReverseDnsLookup.ps1')
-rw-r--r-- | Recon/Invoke-ReverseDnsLookup.ps1 | 86 |
1 files changed, 44 insertions, 42 deletions
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)
{
|