File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #web.py
2+ #Date-13/12/2025
3+ #Author- Lokesh Kumar
4+ #github - @trmxvibs
5+ #Madeinindia
16import requests
27import re
38from bs4 import BeautifulSoup
611from modules .validator import validate_found_key
712import dns .resolver
813
9- # --- DEFENSE MODULES ---
14+
1015def detect_waf (domain ):
1116 report = []
1217 waf_sigs = {"Cloudflare" : "cf-ray" , "AWS" : "x-amz-cf-id" , "Akamai" : "x-akamai" , "Imperva" : "x-iinfo" }
@@ -86,7 +91,7 @@ def crawl_website_data(domain):
8691
8792 soup = BeautifulSoup (html , 'html.parser' )
8893
89- # --- [NEW] HTML ANCHOR EXTRACTION ---
94+ # --- HTML ANCHOR EXTRACTION ---
9095 # Standard links (e.g. <a href="artists.php?artist=1">)
9196 for a in soup .find_all ('a' , href = True ):
9297 href = a ['href' ]
@@ -211,4 +216,5 @@ def check_broken_links(domain):
211216
212217 if not vuln : report .append (" [✓] External links resolve correctly." )
213218 except : report .append (" [-] BLH check failed." )
214- return "\n " .join (report )
219+
220+ return "\n " .join (report )
You can’t perform that action at this time.
0 commit comments