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/Get-HttpStatus.ps1 | |
parent | 46aead39c6f8d04b00b3c3f2aad10b7948aa003f (diff) | |
download | PowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.tar.gz PowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.zip |
Consistency improvements in comment-based help
Diffstat (limited to 'Recon/Get-HttpStatus.ps1')
-rw-r--r-- | Recon/Get-HttpStatus.ps1 | 41 |
1 files changed, 31 insertions, 10 deletions
diff --git a/Recon/Get-HttpStatus.ps1 b/Recon/Get-HttpStatus.ps1 index 2f4b343..fde3d26 100644 --- a/Recon/Get-HttpStatus.ps1 +++ b/Recon/Get-HttpStatus.ps1 @@ -1,47 +1,68 @@ -function Get-HttpStatus {
+function Get-HttpStatus
+{
<#
.SYNOPSIS
-PowerSploit Module - Get-HttpStatus
Returns the HTTP Status Codes and full URL for specified paths.
+PowerSploit Function: Get-HttpStatus
Author: Chris Campbell (@obscuresec)
License: BSD 3-Clause
+Required Dependencies: None
+Optional Dependencies: None
.DESCRIPTION
+
A script to check for the existence of a path or file on a webserver.
.PARAMETER Target
+
Specifies the remote web host either by IP or hostname.
.PARAMETER Path
+
Specifies the remost host.
.PARAMETER Port
+
Specifies the port to connect to.
.PARAMETER UseSSL
+
Use an SSL connection.
.EXAMPLE
-PS > Get-HttpStatus -Target www.example.com -Path c:\dictionary.txt | Select-Object {where StatusCode -eq 20*}
+
+C:\PS> Get-HttpStatus -Target www.example.com -Path c:\dictionary.txt | Select-Object {where StatusCode -eq 20*}
.EXAMPLE
-PS > Get-HttpStatus -Target www.example.com -Path c:\dictionary.txt -UseSSL
+
+C:\PS> Get-HttpStatus -Target www.example.com -Path c:\dictionary.txt -UseSSL
.NOTES
-HTTP Codes: 100 - Informational * 200 - Success * 300 - Redirection * 400 - Client Error * 500 - Server Error
-Status Codes: http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
+
+HTTP Status Codes: 100 - Informational * 200 - Success * 300 - Redirection * 400 - Client Error * 500 - Server Error
.LINK
+
http://obscuresecurity.blogspot.com
+http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
#>
[CmdletBinding()] Param(
- [Parameter(Mandatory = $True)] [String] $Target,
- [Parameter()] [String] [ValidateNotNullOrEmpty()] $Path = '.\Dictionaries\admin.txt',
- [Parameter()] [Int] $Port,
- [Parameter()] [Switch] $UseSSL
+ [Parameter(Mandatory = $True)]
+ [String]
+ $Target,
+
+ [String]
+ [ValidateNotNullOrEmpty()]
+ $Path = '.\Dictionaries\admin.txt',
+
+ [Int]
+ $Port,
+
+ [Switch]
+ $UseSSL
)
if (Test-Path $Path) {
|