Skip to content

Commit

Permalink
Update hurricane.go to solve HTML broken
Browse files Browse the repository at this point in the history
  • Loading branch information
teixeira0xfffff authored May 4, 2024
1 parent 70e672f commit 4605f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/hurricane.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ func (h *Hurricane) ParseHTML(body io.Reader) {
gologger.Fatal().Msgf("%s", err)
}
var re = regexp.MustCompile(`\/dns\/([^"]+)`)
doc.Find("#dnsrecords").Each(func(h int, div *goquery.Selection) {
doc.Find("#_dnsrecords").Each(func(h int, div *goquery.Selection) {
div.Find("tr").Each(func(i int, tr *goquery.Selection) {
var result Result
tr.Find("td").Each(func(j int, td *goquery.Selection) {
Expand Down Expand Up @@ -124,7 +124,7 @@ func (h *Hurricane) ExtractNetwork(ip string) {
var str = h.Request(url)

if ip != "" {
var re = regexp.MustCompile(`(?m)href="/net/([^"]+)"`)
var re = regexp.MustCompile(`(?m)href="/dns/([^"]+)"`)
for _, match := range re.FindAllStringSubmatch(str, -1) {
if !Contains(Networks, match[1]) {
if (!OptionCmd.Silent && !OptionCmd.Onlydomains) || OptionCmd.Onlynetworks {
Expand Down

0 comments on commit 4605f04

Please sign in to comment.