assetnote / kiterunner

Contextual Content Discovery Tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

panic: runtime error: index out of range [0] with length 0

mohammed-sec2010 opened this issue · comments

command:
kr brute https://www.site.com -w /opt/assetnote/swagger-wordlist.txt

result:
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/assetnote/kiterunner/internal/scan.LoadTextWordlist.func1(0xc0001a6000, 0x0, 0x0)
/home/runner/work/kiterunner/kiterunner/internal/scan/options.go:290 +0xa94
github.com/assetnote/kiterunner/internal/scan.ScanDomainOrFile(0xdf37e0, 0xc00027c380, 0x7fffec2dc43e, 0x19, 0xc00026dce0, 0x14, 0x14, 0xc00027c340, 0xc00026dcb8)
/home/runner/work/kiterunner/kiterunner/internal/scan/scan.go:61 +0x2a6
github.com/assetnote/kiterunner/cmd/kiterunner/cmd.glob..func1(0x12a9d80, 0xc0000a5180, 0x1, 0x8)
/home/runner/work/kiterunner/kiterunner/cmd/kiterunner/cmd/brute.go:93 +0x5f7
github.com/spf13/cobra.(*Command).execute(0x12a9d80, 0xc0000a5100, 0x8, 0x8, 0x12a9d80, 0xc0000a5100)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:856 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x12ab900, 0x0, 0x0, 0x0)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:960 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
/home/runner/go/pkg/mod/github.com/spf13/cobra@v1.1.3/command.go:897
github.com/assetnote/kiterunner/cmd/kiterunner/cmd.Execute()
/home/runner/work/kiterunner/kiterunner/cmd/kiterunner/cmd/root.go:37 +0x2d
main.main()
/home/runner/work/kiterunner/kiterunner/cmd/kiterunner/main.go:5 +0x25