mirror of
https://github.com/edoardottt/cariddi.git
synced 2026-09-12 04:37:47 +02:00
update
This commit is contained in:
@@ -26,6 +26,7 @@ package crawler
|
||||
import (
|
||||
"fmt"
|
||||
"net/url"
|
||||
"os"
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
@@ -50,6 +51,11 @@ func Crawler(target string, txt string, html string, delayTime int, concurrency
|
||||
targetTemp = utils.GetHost(target)
|
||||
}
|
||||
|
||||
if targetTemp == "" {
|
||||
fmt.Println("The URL provided is not built in a proper way: " + target)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
//clean target input
|
||||
target = utils.RemoveProtocol(target)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user