Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunStrings ¶
func RunStrings(w io.Writer, args []string, opts StringsOptions) error
RunStrings prints printable strings in files
Types ¶
type StringEntry ¶
StringEntry represents a single string found
type StringsOptions ¶
type StringsOptions struct {
MinLength int // -n: print sequences of at least N characters
Offset string // -t: print offset (d=decimal, o=octal, x=hex)
AllSections bool // -a: scan whole file (default)
Encoding string // -e: encoding (s=7-bit, S=8-bit, etc)
JSON bool // --json: output as JSON
}
StringsOptions configures the strings command behavior
type StringsResult ¶
type StringsResult struct {
Strings []StringEntry `json:"strings"`
Count int `json:"count"`
}
StringsResult represents strings output for JSON
Click to show internal directories.
Click to hide internal directories.