parent
e979f72229
commit
5fd821c17d
@ -3,6 +3,7 @@
|
|||||||
- New
|
- New
|
||||||
- Changed
|
- Changed
|
||||||
- Explicitly allow TLS1.0
|
- Explicitly allow TLS1.0
|
||||||
|
- Fix markdown output file format
|
||||||
|
|
||||||
- v2.0.0
|
- v2.0.0
|
||||||
- New
|
- New
|
||||||
|
|||||||
@ -14,9 +14,9 @@ const (
|
|||||||
Command line : ` + "`{{.CommandLine}}`" + `
|
Command line : ` + "`{{.CommandLine}}`" + `
|
||||||
Time: ` + "{{ .Time }}" + `
|
Time: ` + "{{ .Time }}" + `
|
||||||
|
|
||||||
{{ range .Keys }}| {{ . }} {{ end }}| URL | Redirectlocation | Position | Status Code | Content Length | Content Words | Content Lines | Content Type | Duration | ResultFile | ScraperData
|
{{ range .Keys }}| {{ . }} {{ end }}| URL | Redirectlocation | Position | Status Code | Content Length | Content Words | Content Lines | Content Type | Duration | ResultFile | ScraperData | Ffufhash
|
||||||
{{ range .Keys }}| :- {{ end }}| :-- | :--------------- | :---- | :------- | :---------- | :------------- | :------------ | :--------- | :----------- | :------------ |
|
{{ range .Keys }}| :- {{ end }}| :-- | :--------------- | :---- | :------- | :---------- | :------------- | :------------ | :--------- | :----------- | :------------ | :-------- |
|
||||||
{{range .Results}}{{ range $keyword, $value := .Input }}| {{ $value | printf "%s" }} {{ end }}| {{ .Url }} | {{ .RedirectLocation }} | {{ .Position }} | {{ .StatusCode }} | {{ .ContentLength }} | {{ .ContentWords }} | {{ .ContentLines }} | {{ .ContentType }} | {{ .Duration}} | {{ .ResultFile }} | {{ .ScraperData }} |
|
{{range .Results}}{{ range $keyword, $value := .Input }}| {{ $value | printf "%s" }} {{ end }}| {{ .Url }} | {{ .RedirectLocation }} | {{ .Position }} | {{ .StatusCode }} | {{ .ContentLength }} | {{ .ContentWords }} | {{ .ContentLines }} | {{ .ContentType }} | {{ .Duration}} | {{ .ResultFile }} | {{ .ScraperData }} | {{ .FfufHash }}
|
||||||
{{end}}` // The template format is not pretty but follows the markdown guide
|
{{end}}` // The template format is not pretty but follows the markdown guide
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -30,10 +30,15 @@ func writeMarkdown(filename string, config *ffuf.Config, results []ffuf.Result)
|
|||||||
|
|
||||||
htmlResults := make([]htmlResult, 0)
|
htmlResults := make([]htmlResult, 0)
|
||||||
|
|
||||||
|
ffufhash := ""
|
||||||
for _, r := range results {
|
for _, r := range results {
|
||||||
strinput := make(map[string]string)
|
strinput := make(map[string]string)
|
||||||
for k, v := range r.Input {
|
for k, v := range r.Input {
|
||||||
strinput[k] = string(v)
|
if k == "FFUFHASH" {
|
||||||
|
ffufhash = string(v)
|
||||||
|
} else {
|
||||||
|
strinput[k] = string(v)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
strscraper := ""
|
strscraper := ""
|
||||||
for k, v := range r.ScraperData {
|
for k, v := range r.ScraperData {
|
||||||
@ -64,6 +69,7 @@ func writeMarkdown(filename string, config *ffuf.Config, results []ffuf.Result)
|
|||||||
ResultFile: r.ResultFile,
|
ResultFile: r.ResultFile,
|
||||||
Url: r.Url,
|
Url: r.Url,
|
||||||
Host: r.Host,
|
Host: r.Host,
|
||||||
|
FfufHash: ffufhash,
|
||||||
}
|
}
|
||||||
htmlResults = append(htmlResults, hres)
|
htmlResults = append(htmlResults, hres)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user