Fix update mechanism
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
changes = '''critical bug fixes'''
|
||||
|
||||
xsschecker = 'v3dm0s' # A non malicious string to check for reflections and stuff
|
||||
|
||||
minEfficiency = 90
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import re
|
||||
import os
|
||||
from requests import get
|
||||
from core.config import changes
|
||||
from core.colors import run, que, good, info, red, end, green
|
||||
|
||||
def updater():
|
||||
print('%s Checking for updates' % run)
|
||||
changes = '''''' # Changes must be seperated by ;
|
||||
latestCommit = get('https://raw.githubusercontent.com/s0md3v/XSStrike/master/xsstrike').text
|
||||
latestCommit = get('https://raw.githubusercontent.com/s0md3v/XSStrike/master/core/config.py').text
|
||||
|
||||
if changes not in latestCommit: # just a hack to see if a new version is available
|
||||
changelog = re.search(r"changes = '''(.*?)'''", latestCommit)
|
||||
|
||||
@@ -9,8 +9,6 @@ print('''%s
|
||||
\tXSStrike %sv3.0
|
||||
%s''' % (red, white, end))
|
||||
|
||||
changes = '''critical bug fixes'''
|
||||
|
||||
try:
|
||||
from urllib.parse import quote_plus, unquote, urlparse
|
||||
except ImportError: # throws error in python2
|
||||
|
||||
Reference in New Issue
Block a user