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!
- Host: GitHub
- URL: https://github.com/progsjessi/JS-Monitor
- Owner: progsjessi
- License: mit
- Created: 2025-02-09T20:15:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-14T20:25:48.000Z (over 1 year ago)
- Last Synced: 2025-04-04T11:08:05.055Z (about 1 year ago)
- Topics: api, api-change-log, bugbounty, hacking, javascript, js, js-monitor, monitor, osint, toolkit, tools, website
- Homepage:
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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!