Select-HtmlToken
August 3, 2026 ยท View on GitHub
SYNOPSIS
Selects likely CSRF, anti-forgery, nonce, and auth tokens from HTML.
SYNTAX
Content (Default)
Select-HtmlToken -Content <string> [-Name <string[]>] [<CommonParameters>]
File
Select-HtmlToken -Path <string> [-Name <string[]>] [<CommonParameters>]
Url
Select-HtmlToken -Url <uri> [-Name <string[]>] [-Proxy <string>] [-ProxyCredential <pscredential>] [<CommonParameters>]
DESCRIPTION
Selects likely CSRF, anti-forgery, nonce, and auth tokens from HTML.
EXAMPLES
EXAMPLE 1
Select-HtmlToken -Content 'Value'
EXAMPLE 2
Select-HtmlToken -Path 'C:\Path'
EXAMPLE 3
Select-HtmlToken -Url 'Value'
PARAMETERS
-Content
HTML content to inspect.
Type: String
Parameter Sets: Content
Aliases: None
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: True (ByValue, ByPropertyName)
Accept wildcard characters: False
-Name
Specific token field names to include. Defaults to common CSRF, XSRF, nonce, and auth token names.
Type: String[]
Parameter Sets: Content, File, Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Path
Path to an HTML file.
Type: String
Parameter Sets: File
Aliases: File
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Proxy
Proxy server address used when downloading by URL.
Type: String
Parameter Sets: Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-ProxyCredential
Credentials used with the proxy server.
Type: PSCredential
Parameter Sets: Url
Aliases: None
Possible values:
Required: False
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
-Url
URL of an HTML page to download and inspect.
Type: Uri
Parameter Sets: Url
Aliases: Uri
Possible values:
Required: True
Position: named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
HtmlTinkerX.HtmlToken
RELATED LINKS
- None