-
Member
Bug/Exploit Forum Monitoring Script
As most people know by now, the official Bug/Exploit forum is a treasure trove of information. Unless I completely missed something, the official Forums don't let you sort by topic creation date. To deal with this, I made a super basic python script to notify me any time a new topic was added to the Bug/Exploit forum so that I could find anything major a lot faster. It's nothing special but it may save others the time of writing their own
Code:
import requests
import datetime
import time
import json
loaded_ids = []
start_time = datetime.datetime.utcnow()
print(f"Start Time: {start_time}")
LATEST_BUG_URL = "https://forums.newworld.com/latest.json?ascending=false"
while True:
try:
data = requests.get(LATEST_BUG_URL).json()
topic_list = data["topic_list"]
for topic in topic_list['topics']:
post_time = datetime.datetime.strptime(topic["created_at"].split(".")[0], "%Y-%m-%dT%H:%M:%S")
if post_time > start_time and topic['id'] not in loaded_ids:
print(f"{post_time} | {topic['title']} | https://forums.newworld.com/t/{topic['slug']}/{topic['id']}")
loaded_ids.append(topic['id'])
except KeyboardInterrupt:
exit()
except Exception as e:
print(f"Error: {e}")
time.sleep(10)
Instructions to Run:
1. Install python
2. Save code as whatever (nw_monitor.py)
3. Install the requests library (pip install requests)
4. Run script: python nw_monitor.py
It'll check for updates every 10 seconds.
Screenshot (bad quality, sorry):
nw_monitor.png
-
Post Thanks / Like - 7 Thanks
-
Member
This thing is amazing. I am no python programmer so had to google how to use python and install the library but otherwise it works like a charm. I just want to keep an eye on the forums for a couple of days because of all the dodgy stuff being discovered.
-
Member
+1 works wonders as long as you can handle potential python library issues (was running some wrong kernel idk, easy enough to fix)