gwen001 / github-subdomains

Find subdomains on GitHub.
MIT License
653 stars 97 forks source link

Getting error: invalid memory address #19

Closed HackerAndya closed 1 year ago

HackerAndya commented 1 year ago

Command I'm using : github-subdomains -d gov.uk -t ghp_xxxxxxxxx

Error I'm getting :

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x8 pc=0x65f4a7]

goroutine 1 [running]:
main.main()
        /home/ubuntu/go/pkg/mod/github.com/gwen001/github-subdomains@v1.2.0/main.go:383 +0x4c7
gwen001 commented 1 year ago

That's because you provide an TLD and not a domain. Will try to display an error instead of a bad crash.

gwen001 commented 1 year ago

Fixed., thanks.