mirror of
https://github.com/hahwul/WebHackersWeapons.git
synced 2024-10-01 01:25:58 -04:00
(Fixed #5) bug fix
This commit is contained in:
parent
6530777f27
commit
475930cdf7
@ -99,7 +99,15 @@ func main() {
|
|||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
|
||||||
if title, ok := GetHtmlTitle(resp.Body); ok {
|
if title, ok := GetHtmlTitle(resp.Body); ok {
|
||||||
|
if strings.Contains(string(title), ": ") {
|
||||||
desc = strings.Split(string(title), ": ")[1]
|
desc = strings.Split(string(title), ": ")[1]
|
||||||
|
} else {
|
||||||
|
reader1 := bufio.NewReader(os.Stdin)
|
||||||
|
fmt.Println("[+] Don't have descriptions / input description")
|
||||||
|
a, _ := reader1.ReadString('\n')
|
||||||
|
desc = strings.TrimRight(a, "\r\n")
|
||||||
|
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
println("Fail to get HTML title")
|
println("Fail to get HTML title")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user