Fix update mechanism

This commit is contained in:
Somdev Sangwan
2018-11-11 15:19:30 +05:30
committed by GitHub
3 changed files with 5 additions and 5 deletions

View File

@@ -1,3 +1,5 @@
changes = '''critical bug fixes'''
xsschecker = 'v3dm0s' # A non malicious string to check for reflections and stuff
minEfficiency = 90

View File

@@ -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)

View File

@@ -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