Skip to content

Urthella/url

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

url.py — keyword + form probe

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.

What it does

  1. GET the target URL and check the HTTP status code.
  2. Search the response body for a list of keywords (login, password, secret).
  3. Parse the HTML with BeautifulSoup and collect every <form>.
  4. For each form, build a payload from <input name="…" value="…"> pairs and POST it back.

Setup

pip install requests beautifulsoup4
python url.py

Edit the top of url.py to point at your target and keyword list:

url = 'https://example.com'
keywords = ['login', 'password', 'secret']

⚠️ The default url = 'www.google.com' is missing the scheme — requests needs http:// or https://. Fix it before running.

Notes

  • 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.

url.py — anahtar kelime + form probe (TR)

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.

About

Small Python script that fetches a URL, scans HTML for keywords, parses forms with BeautifulSoup, and probes them via POST. Learning project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages