mirror of
https://gitlab.os-k.eu/neox/CNIRevelator.git
synced 2023-08-25 14:03:10 +02:00
Add files via upload
This commit is contained in:
parent
06830b89e7
commit
935dd40702
@ -146,6 +146,10 @@ class newcredentials:
|
|||||||
self.password = invite.key
|
self.password = invite.key
|
||||||
|
|
||||||
AESObj = AESCipher(globs.CNIRCryptoKey)
|
AESObj = AESCipher(globs.CNIRCryptoKey)
|
||||||
|
try:
|
||||||
|
os.mkdir(globs.CNIRFolder + '\\config')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
with open(globs.CNIRConfig, 'wb+') as (configFile):
|
with open(globs.CNIRConfig, 'wb+') as (configFile):
|
||||||
logfile.printdbg('Saving credentials in encrypted config file')
|
logfile.printdbg('Saving credentials in encrypted config file')
|
||||||
configFile.write(AESObj.encrypt(self.login + '||' + self.password))
|
configFile.write(AESObj.encrypt(self.login + '||' + self.password))
|
||||||
|
30
src/globs.py
30
src/globs.py
@ -25,21 +25,21 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
# CNIRevelator version
|
# CNIRevelator version
|
||||||
version = [3, 0, 0]
|
version = [3, 0, 0]
|
||||||
verstring_full = "{}.{}.{}".format(version[0], version[1], version[2])
|
verstring_full = "{}.{}.{}".format(version[0], version[1], version[2])
|
||||||
verstring = "{}.{}".format(version[0], version[1])
|
verstring = "{}.{}".format(version[0], version[1])
|
||||||
|
|
||||||
changelog = "Mise-à-jour majeure avec corrections suivantes :\n- Renouvellement de la signature numérique de l'exécutable\n- Amélioration de présentation du log en cas d'erreur\n- Refonte totale du code source et désobfuscation\n- Téléchargements en HTTPS fiables avec somme de contrôle"
|
changelog = "Mise-à-jour majeure avec corrections suivantes :\n- Renouvellement de la signature numérique de l'exécutable\n- Amélioration de présentation du log en cas d'erreur\n- Refonte totale du code source et désobfuscation\n- Téléchargements en HTTPS fiables avec somme de contrôle"
|
||||||
|
|
||||||
CNIRTesserHash = '5b58db27f7bc08c58a2cb33d01533b034b067cf8'
|
CNIRTesserHash = '5b58db27f7bc08c58a2cb33d01533b034b067cf8'
|
||||||
CNIRFolder = os.getcwd()
|
CNIRFolder = os.getcwd()
|
||||||
CNIRLColor = "#006699"
|
CNIRLColor = "#006699"
|
||||||
CNIRName = "CNIRevelator {}".format(verstring)
|
CNIRName = "CNIRevelator {}".format(verstring)
|
||||||
CNIRCryptoKey = '82Xh!efX3#@P~2eG'
|
CNIRCryptoKey = '82Xh!efX3#@P~2eG'
|
||||||
|
|
||||||
CNIRConfig = CNIRFolder + '\\config\\conf.ig'
|
CNIRConfig = CNIRFolder + '\\config\\conf.ig'
|
||||||
CNIRErrLog = CNIRFolder + '\\logs\\\\error.log'
|
CNIRErrLog = CNIRFolder + '\\logs\\error.log'
|
||||||
CNIRLauncherLog = CNIRFolder + '\\logs\\\\launcher.log'
|
CNIRLauncherLog = CNIRFolder + '\\logs\\launcher.log'
|
||||||
CNIRUrlConfig = CNIRFolder + '\\config\\urlconf.ig'
|
CNIRUrlConfig = CNIRFolder + '\\config\\urlconf.ig'
|
||||||
CNIRVerStock = CNIRFolder + '\\downloads\\versions.lst'
|
CNIRVerStock = CNIRFolder + '\\downloads\\versions.lst'
|
||||||
CNIREnv = os.getenv('APPDATA') + '/CNIRevelator/'
|
CNIREnv = os.getenv('APPDATA') + '/CNIRevelator/'
|
||||||
|
BIN
src/id-card.ico
Normal file
BIN
src/id-card.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.9 KiB |
@ -35,6 +35,7 @@ class NewLoggingSystem:
|
|||||||
|
|
||||||
# Deleting the error log
|
# Deleting the error log
|
||||||
try:
|
try:
|
||||||
|
os.mkdir(globs.CNIRFolder + '\\logs')
|
||||||
os.remove(globs.CNIRErrLog)
|
os.remove(globs.CNIRErrLog)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
@ -27,6 +27,7 @@ from win32com.client import Dispatch
|
|||||||
import traceback
|
import traceback
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
import os
|
||||||
|
|
||||||
import logger # logger.py
|
import logger # logger.py
|
||||||
import globs # globs.py
|
import globs # globs.py
|
||||||
@ -82,11 +83,19 @@ def batch():
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
logfile.printdbg('Recreate urlconf.ig')
|
logfile.printdbg('Recreate urlconf.ig')
|
||||||
# Recreating the url file
|
# Recreating the url file
|
||||||
|
try:
|
||||||
|
os.mkdir(globs.CNIRFolder + '\\config')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
with open(globs.CNIRUrlConfig, 'w') as (configFile):
|
with open(globs.CNIRUrlConfig, 'w') as (configFile):
|
||||||
configFile.write("https://raw.githubusercontent.com/neox95/CNIRevelator/master/VERSIONS.LST\n0\n0") #XXX
|
configFile.write("https://raw.githubusercontent.com/neox95/CNIRevelator/master/VERSIONS.LST\n0\n0") #XXX
|
||||||
|
|
||||||
# Getting the list of versions of the software
|
# Getting the list of versions of the software
|
||||||
logfile.printdbg('Retrieving the software versions')
|
logfile.printdbg('Retrieving the software versions')
|
||||||
|
try:
|
||||||
|
os.mkdir(globs.CNIRFolder + '\\downloads')
|
||||||
|
except:
|
||||||
|
pass
|
||||||
getTheVersions = downloader.newdownload(credentials, urlparsed[0], globs.CNIRFolder + '\\versions.lst').download()
|
getTheVersions = downloader.newdownload(credentials, urlparsed[0], globs.CNIRFolder + '\\versions.lst').download()
|
||||||
|
|
||||||
logfile.printdbg('Parsing the software versions')
|
logfile.printdbg('Parsing the software versions')
|
||||||
|
Loading…
Reference in New Issue
Block a user