Skip to content

Commit c34357b

Browse files
authored
Refactor web.py with updated imports and functions
1 parent 4fc17b0 commit c34357b

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

modules/web.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#web.py
2+
#Date-13/12/2025
3+
#Author- Lokesh Kumar
4+
#github - @trmxvibs
5+
#Madeinindia
16
import requests
27
import re
38
from bs4 import BeautifulSoup
@@ -6,7 +11,7 @@
611
from modules.validator import validate_found_key
712
import dns.resolver
813

9-
# --- DEFENSE MODULES ---
14+
1015
def 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)

0 commit comments

Comments
 (0)