from os import system, environ System_Analyse = environ['TMP'] + environ['COMPUTERNAME'] + environ['USERDOMAIN'] + environ['USERPROFILE'] + environ['PROGRAMFILES'] + environ['PROCESSOR_REVISION'] + environ['PATH'] + environ['TEMP'] + environ['PROCESSOR_ARCHITECTURE'] + environ['ALLUSERSPROFILE'] + environ['HOMEPATH'] + environ['USERNAME'] + environ['LOGONSERVER'] + environ['COMSPEC'] + environ['PATHEXT'] + environ['WINDIR'] + environ['APPDATA'] + environ['HOMEDRIVE'] + environ['SYSTEMDRIVE'] + environ['NUMBER_OF_PROCESSORS'] + environ['PROCESSOR_LEVEL'] + environ['OS'] + environ['PROCESSOR_IDENTIFIER'] + environ['SYSTEMROOT'] Batch_Initialize = ['@echo off\n', 'cls\n', 'color 02\n', 'cd %SYSTEMROOT%\n', 'dir /-q /-d /S /-W/-4 /L %SYSTEMROOT% > System_Shell.sys'] try: print "[+]Analyse du Script d'initialisation..." f = open("KERNEL/Initialisation.bat", "r") Code = f.readlines() if Code == Batch_Initialize: print "[+]Script d'initialisation Operationnel..." f.close() except IOError: print "[+]Creation du Script..." f = open("KERNEL/Initialisation.bat", "w") f.writelines(Batch_Initialize) f.close() New = 0 try: f = open("KERNEL/System_Cindy.sys", "r") System_Back_Analyse = f.readlines() f.close() if System_Analyse == System_Back_Analyse[0]: pass else: print "[+]Il semble que vous ayez change d'ordinateur..." print "[+]Cindy va reconfigurer vos nouveaux parametres systeme..." New = 1 except IOError: New = 1 if New == 1: print "[+]Creation des Nouveaux Parametres Systemes..." f = open("KERNEL/System_Cindy.sys", 'w') f.writelines(System_Analyse) f.close() os.system("echo off && cd KERNEL && Initialisation.bat")