#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# imports
from .color import *
from . import utils
from urllib.request import urlopen

def check():
    f = open(utils.add_corefilepath("Data", "version.txt"), 'r')
    file_data = f.read().strip()
    try:
        version = urlopen('https://raw.githubusercontent.com/krishpranav/windowsexploiter/master/windowsexploiter/Core/Data/version.txt').read().decode('utf-8').strip()
    except:
        error("No Internet Connection. Please Check Your Internet Connection")
        sys.exit(0)
    
    if version != file_data:
        return file_data+R+" New version available"
    else:
        return file_data

862faf53ec7522e8f8c06c2d850fc4e4cf958688
<mask token>

<mask token>


def check():
    f = open(utils.add_corefilepath('Data', 'version.txt'), 'r')
    file_data = f.read().strip()
    try:
        version = urlopen(
            'https://raw.githubusercontent.com/krishpranav/windowsexploiter/master/windowsexploiter/Core/Data/version.txt'
            ).read().decode('utf-8').strip()
    except:
        error('No Internet Connection. Please Check Your Internet Connection')
        sys.exit(0)
    if version != file_data:
        return file_data + R + ' New version available'
    else:
        return file_data

from .color import *
from . import utils
from urllib.request import urlopen


def check():
    f = open(utils.add_corefilepath('Data', 'version.txt'), 'r')
    file_data = f.read().strip()
    try:
        version = urlopen(
            'https://raw.githubusercontent.com/krishpranav/windowsexploiter/master/windowsexploiter/Core/Data/version.txt'
            ).read().decode('utf-8').strip()
    except:
        error('No Internet Connection. Please Check Your Internet Connection')
        sys.exit(0)
    if version != file_data:
        return file_data + R + ' New version available'
    else:
        return file_data

#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# imports
from .color import *
from . import utils
from urllib.request import urlopen

def check():
    f = open(utils.add_corefilepath("Data", "version.txt"), 'r')
    file_data = f.read().strip()
    try:
        version = urlopen('https://raw.githubusercontent.com/krishpranav/windowsexploiter/master/windowsexploiter/Core/Data/version.txt').read().decode('utf-8').strip()
    except:
        error("No Internet Connection. Please Check Your Internet Connection")
        sys.exit(0)
    
    if version != file_data:
        return file_data+R+" New version available"
    else:
        return file_data
