Skip to content

Commit

Permalink
Merge pull request #22 from HuntDownProject/teixeira0xfffff-patch-4
Browse files Browse the repository at this point in the history
Update hurricane.go to solve HTML broken
  • Loading branch information
neriberto authored May 4, 2024
2 parents 70e672f + 4605f04 commit 8e398e8
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 8e398e8

Please sign in to comment.