Documentation ¶
Index ¶
Constants ¶
const IMPACKET_TARGET_RE = "(?:(?:([^/@:]*)/)?([^@:]*)(?::([^@]*))?@)?(.*)"
Currently not implemented DOMAIN USER PASSWORD TARGET
const IMPACKET_USER_RE = "(?:(?:([^/:]*)/)?([^:]*)(?::(.*))?)?"
IMPACKET Regex for Creds DOMAIN USER PASSWORD
Variables ¶
This section is empty.
Functions ¶
func ParseParameterStringTarget ¶
TODO make unit test for this. Similar to crackmapexecs target parameter. Will detect if the target is a file, IP string, FQDN string and returns a slice of targets.
func ParseTagetsFromFile ¶
Parse targets divieded by new line from the specificed file and returns a slice of network targets (IP/FQDN).
func ParseTargetString ¶
ParseTargetString will parse the target string and extract a slice of FQDN/IPs that can be used in a network attacks. Currently support CIDRv4, IP address, URL, FQDN.
Types ¶
type ImpacketAuth ¶
func ParseParameterCredentialImpacket ¶
func ParseParameterCredentialImpacket(userstring string) (ImpacketAuth, error)
ParseParameterCredentialImpacket will parse the string to extract a domain,user,password in a fashion similar to impacket. Returns a ImpacketAuth struc