Noticed something weird on my site and asked ChatGPT if there’s a way to check for stored credentials. Got a script in response — looks promising. Haven’t run it yet, but figured I’d post it here for future me (and maybe you too
import requests
import re
url = "https://www.learnbidata.com/"
response = requests.get(url)
if response.ok:
html = response.text
# Basic scan for known sensitive keywords
if re.search(r"(token|apikey|password|secret|access_token)", html, re.IGNORECASE):
print("[!] Possible exposed secret found!")
else:
print("✅ No visible secrets found in HTML.")
else:
print("Error accessing blog.")
Als What you think if I have to move all my scripts to Github and provide the links here rather whole script. Please post your comments on this.
Comments
Post a Comment