Small Python script that fetches a URL, scans its HTML for given keywords, parses out any <form> elements with BeautifulSoup, and probes each form with a POST carrying its default field values.
Built as a learning exercise for requests + BeautifulSoup.
GETthe target URL and check the HTTP status code.- Search the response body for a list of keywords (
login,password,secret). - Parse the HTML with BeautifulSoup and collect every
<form>. - For each form, build a payload from
<input name="…" value="…">pairs andPOSTit back.
pip install requests beautifulsoup4
python url.pyEdit the top of url.py to point at your target and keyword list:
url = 'https://example.com'
keywords = ['login', 'password', 'secret']
⚠️ The defaulturl = 'www.google.com'is missing the scheme —requestsneedshttp://orhttps://. Fix it before running.
- This is a learning script, not a security tool. It blindly POSTs to whichever URL the page was loaded from, ignoring
<form action="…">. - No authentication, cookies, CSRF, or rate limiting.
- Only run against sites you own or have permission to test.
Bir URL'yi çeken, HTML içinde verilen anahtar kelimeleri arayan, BeautifulSoup ile her <form> etiketini parse eden ve her formu varsayılan alan değerleriyle POST ile deneyen küçük Python scripti.
requests + BeautifulSoup öğrenmek için yazılmış bir alıştırma projesi.