An open API service indexing awesome lists of open source software.

https://github.com/progsjessi/JS-Monitor

Track JavaScript changes websites. Website bot can detected new API endpoints & more!
https://github.com/progsjessi/JS-Monitor

api api-change-log bugbounty hacking javascript js js-monitor monitor osint toolkit tools website

Last synced: about 1 year ago
JSON representation

Track JavaScript changes websites. Website bot can detected new API endpoints & more!

Awesome Lists containing this project

README

          

## JS-Monitor
### Track JavaScript changes websites. Website bot can detected new API endpoints & more!

**Code:**
```python
import requests
from bs4 import BeautifulSoup
import time
URL = "https://example-fintech.com"
CHECK_INTERVAL = 3600 # Check every hour
def fetch_js_urls():
response = requests.get(URL)
soup = BeautifulSoup(response.text, "html.parser")
js_files = [script.get("src") for script in soup.find_all("script") if script.get("src")]
return js_files
previous_js_files = set(fetch_js_urls())
while True:
time.sleep(CHECK_INTERVAL)
current_js_files = set(fetch_js_urls())
new_files = current_js_files - previous_js_files
if new_files:
print("New JavaScript files detected:", new_files)
previous_js_files = current_js_files
```

> [!Warning]
> This is only for educationally purposes! Always ensure proper permission before doing anything!