diff --git a/config/config.ini b/config/config.ini index 818cc40..81782c2 100644 --- a/config/config.ini +++ b/config/config.ini @@ -1,8 +1,8 @@ [main] checkforupdates = yes defaultdlpath = ./downloadedSites/ -browser = Edge -firstlaunch = no +browser = Not Checked +firstlaunch = yes language = en defaultcapturepath = ./captured/ prerelease = no @@ -10,8 +10,8 @@ updaterver = 2 discordwebhookurl = none pluginfolder = plugins whatarethekeysfor = the privatekey and syscrypt are keys that will store system data in a string that can be sent to A tookie-osint Developer to help diagnose problems. They reset after every launch -privatekey = b'RYm1esHOCpNLOhWJfRjjITW4PMMbhuMlbDX6cBXJH1w=' -syscrypt = b'gAAAAABm11cpxonw6TYThPIpjqeCHV55dQ2h3Le1TOtwEY6t1LAer81hjs-g3xhyD72QHgQDflWqpstR0oJqnqYCiULRDBi_Dfgs-QUjVWz8iy9sLecSwGEbVu8ID7MA5FYclNKI0pOxRZSmJWBe40pIDpqJpic0yQ==' +privatekey = b'' +syscrypt = b'' userandomuseragents = no [Links] diff --git a/config/version.cfg b/config/version.cfg index 53a86f8..e6221ab 100644 --- a/config/version.cfg +++ b/config/version.cfg @@ -1 +1 @@ -v2.8(a) +v2.8(b) \ No newline at end of file diff --git a/modules/configcheck.py b/modules/configcheck.py index 519ca13..22b7c25 100644 --- a/modules/configcheck.py +++ b/modules/configcheck.py @@ -7,6 +7,7 @@ import requests from colorama import * +import urllib from lang.en import * from modules.lang import * @@ -118,7 +119,26 @@ def ask_update_check(config, colorScheme, language_module): try: cfu = input(language_module.config4) if cfu.lower() in ("y", "yes"): - exec(open("./update.py").read()) + with open("config/version.cfg", "r") as f: + url = "https://raw.githubusercontent.com/Alfredredbird/tookie-osint/refs/heads/main/config/version.cfg" + + response = requests.get(url) + if response.status_code == 200: + data = response.text.strip() # Remove any extra whitespace or newline characters + currentver = f.readline().strip() # Read the first line and strip it too + print("") + print(f"Current version: {currentver}") + print(f"Remote version: {data}") + + if currentver != data: + print("Download new version at https://github.com/Alfredredbird/tookie-osint") + print("") + else: + print("Latest version installed!") + print("") + else: + print(f"Failed to fetch new version data. Status code: {response.status_code}") + print("") elif cfu.lower() in ("n", "no"): print(language_module.prompt5) print_separator()