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 xsschecker = 'v3dm0s' # A non malicious string to check for reflections and stuff
minEfficiency = 90 minEfficiency = 90
@@ -74,4 +76,4 @@ blindParams = ['redirect','redir','url','link','goto','debug','_debug','test','g
'out','net','host','address','code','auth','userid','auth_token','token','error','keyword','key','q','query','aid', 'out','net','host','address','code','auth','userid','auth_token','token','error','keyword','key','q','query','aid',
'bid','cid','did','eid','fid','gid','hid','iid','jid','kid','lid','mid','nid','oid','pid','qid','rid','sid', 'bid','cid','did','eid','fid','gid','hid','iid','jid','kid','lid','mid','nid','oid','pid','qid','rid','sid',
'tid','uid','vid','wid','xid','yid','zid','cal','country','x','y','topic','title','head','higher','lower','width', 'tid','uid','vid','wid','xid','yid','zid','cal','country','x','y','topic','title','head','higher','lower','width',
'height','add','result','log','demo','example','message'] 'height','add','result','log','demo','example','message']

View File

@@ -1,12 +1,12 @@
import re import re
import os import os
from requests import get from requests import get
from core.config import changes
from core.colors import run, que, good, info, red, end, green from core.colors import run, que, good, info, red, end, green
def updater(): def updater():
print('%s Checking for updates' % run) print('%s Checking for updates' % run)
changes = '''''' # Changes must be seperated by ; latestCommit = get('https://raw.githubusercontent.com/s0md3v/XSStrike/master/core/config.py').text
latestCommit = get('https://raw.githubusercontent.com/s0md3v/XSStrike/master/xsstrike').text
if changes not in latestCommit: # just a hack to see if a new version is available if changes not in latestCommit: # just a hack to see if a new version is available
changelog = re.search(r"changes = '''(.*?)'''", latestCommit) changelog = re.search(r"changes = '''(.*?)'''", latestCommit)

View File

@@ -9,8 +9,6 @@ print('''%s
\tXSStrike %sv3.0 \tXSStrike %sv3.0
%s''' % (red, white, end)) %s''' % (red, white, end))
changes = '''critical bug fixes'''
try: try:
from urllib.parse import quote_plus, unquote, urlparse from urllib.parse import quote_plus, unquote, urlparse
except ImportError: # throws error in python2 except ImportError: # throws error in python2