Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
verylazytech authored Nov 24, 2024
1 parent d1c6f50 commit caf370c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -221,19 +221,18 @@ <h1>Google Dorks for Bug Bounty - By VeryLazyTech</h1>
dorkLinks.forEach((link, index) => {
let originalDork = originalDorks[index]; // Get the original dork for reference

// Replace the "site:" part with the new domains
// Only replace the domain part after 'site:', preserving other dork parameters
domains.forEach(domain => {
// This ensures only the site domain part is replaced
originalDork = originalDork.replace(/site:"?[^"]+"?/g, `site:"${domain}"`);
// This regex matches the site part (site:"domain") and replaces it with the new domain
originalDork = originalDork.replace(/site:"[^"]+"/, `site:"${domain}"`);
});

// Update the href and the text content for each link
// Update the href and text of the dork link
link.href = `https://www.google.com/search?q=${encodeURIComponent(originalDork)}`;
link.textContent = originalDork; // Display updated dork
});
}


fetchDorks();
</script>
</body>
Expand Down

0 comments on commit caf370c

Please sign in to comment.