mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-18 17:05:29 +00:00
Fixed list scan endpoint
This commit is contained in:
parent
51a26ca2c1
commit
8eda1a2458
@ -18,7 +18,7 @@ import (
|
|||||||
|
|
||||||
// Get all the scan lists for a user/apikey.
|
// Get all the scan lists for a user/apikey.
|
||||||
func (r *Runner) getScanList(limit int) error {
|
func (r *Runner) getScanList(limit int) error {
|
||||||
lastTime := "2099-01-02 1 5:04:05 +0000 UTC"
|
lastTime := "2099-01-02 15:04:05 +0000 UTC"
|
||||||
|
|
||||||
header := []string{"ID", "Timestamp", "Status", "Matched", "Targets", "Templates", "Duration"}
|
header := []string{"ID", "Timestamp", "Status", "Matched", "Targets", "Templates", "Duration"}
|
||||||
var values [][]string
|
var values [][]string
|
||||||
@ -46,13 +46,16 @@ func (r *Runner) getScanList(limit int) error {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if e != nil {
|
||||||
|
return e
|
||||||
|
}
|
||||||
if count == 0 {
|
if count == 0 {
|
||||||
return errors.New("no scan list found")
|
return errors.New("no scan list found")
|
||||||
}
|
}
|
||||||
if !r.options.NoTables {
|
if !r.options.NoTables {
|
||||||
r.prettyPrintTable(header, values)
|
r.prettyPrintTable(header, values)
|
||||||
}
|
}
|
||||||
return e
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *Runner) listDatasources() error {
|
func (r *Runner) listDatasources() error {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user