Check for empty URL before proceeding

pull/6/head
hakbyte 2022-06-05 05:27:19 +02:00
parent a95721bad2
commit 5de252e9a6
1 changed files with 4 additions and 1 deletions

View File

@ -258,7 +258,10 @@ func main() {
show_banner()
fmt.Println(Blue("Input URL"))
fmt.Scanln(&url)
if _, err := fmt.Scanln(&url); err != nil {
fmt.Print(Red("No URL provided"))
os.Exit(1)
}
fmt.Println(Blue("\nInput path file contain dorks (Leave it blank if you dont have it)"))
fmt.Scanln(&dorks)