mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
fix: fixed a nil pointer dereference in the http banner grabber of syn.scan
This commit is contained in:
parent
23d8305e85
commit
1f3c009d15
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ func isTitleElement(n *html.Node) bool {
|
|||
}
|
||||
|
||||
func searchForTitle(n *html.Node) string {
|
||||
if isTitleElement(n) {
|
||||
if isTitleElement(n) && n.FirstChild != nil {
|
||||
return n.FirstChild.Data
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue