From 7b65833c206dd34d8d3dba14b8d06ba0823a54c0 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Mon, 6 May 2019 19:59:10 -0600 Subject: [PATCH] Added Python compatibilty check to d7II * Fixes issue #84 --- .bin/d7ii/3rd Party Tools/Python_Check.cmd | 30 ++++++++++++++++++ .bin/d7ii/Config/AltText.ini | 4 +-- .bin/d7ii/Config/CustomApps/Python Check.cfg | 32 ++++++++++++++++++++ .bin/d7ii/Config/Profiles/Default.cfg | 1 + .bin/d7ii/Config/SortOrder/MalwareBox2.cfg | 2 +- 5 files changed, 66 insertions(+), 3 deletions(-) create mode 100644 .bin/d7ii/3rd Party Tools/Python_Check.cmd create mode 100644 .bin/d7ii/Config/CustomApps/Python Check.cfg diff --git a/.bin/d7ii/3rd Party Tools/Python_Check.cmd b/.bin/d7ii/3rd Party Tools/Python_Check.cmd new file mode 100644 index 00000000..aa4e7394 --- /dev/null +++ b/.bin/d7ii/3rd Party Tools/Python_Check.cmd @@ -0,0 +1,30 @@ +:: Python compatibility check +@echo off + +setlocal +pushd "%~dp0\..\.." +set "bin=%cd%" +set "python=%bin%\Python\x32\python.exe" + +rem Verify Python can run +"%python%" --version >nul || goto ErrorPythonUnsupported +goto Done + +:ErrorPythonUnsupported +rem The Windows installation lacks Windows update KB2999226 needed to run Python +echo. +echo ERROR: Failed to run Python, try installing Windows update KB2999226. +echo NOTE: That update is from October 2015 so this system is SEVERELY outdated +echo. +echo Please stop Auto Mode, exit this script, install the update, and try again. +echo. +echo Press Enter to exit... +pause>nul +if exist "%bin%\..\Installers\Extras\Windows Updates" ( + start "" "explorer.exe" + start "" "explorer.exe" "%bin%\..\Installers\Extras\Windows Updates" +) + +:Done +popd +endlocal diff --git a/.bin/d7ii/Config/AltText.ini b/.bin/d7ii/Config/AltText.ini index b58b6c23..0ce2c640 100644 --- a/.bin/d7ii/Config/AltText.ini +++ b/.bin/d7ii/Config/AltText.ini @@ -5,7 +5,7 @@ Autoruns (Verify and Log)=Manages Startup Items Google Chrome Software Removal Tool=Remove add-ons, extensions, toolbars, and other software that may interfere with the operation of Google Chrome. VipreRescueScanner (Deep Scan)=Virus scanner (Designed for both the Malware Removal and the Offline Operations tab) VipreRescueScanner (Quick Scan)=Virus scanner (Designed for both the Malware Removal and the Offline Operations tab) -=Install/Upgrade MBAM +=Python Check [ReportDesc] Autoruns=Examined Windows startup items and removed unnecessary entries. Autoruns_Copy=Examined Windows startup items and removed unnecessary entries. @@ -36,4 +36,4 @@ VipreRescueScanner (Quick Scan)=Ran virus scans (Vipre) 22=Repaired the Windows Update services responsible for Windows Update functionality. 38=Performed repair routines to ensure the Winsock is operating properly. 83=Examined internet speed/bandwidth. -=Malwarebytes installed successfully. +=Python compatibility check diff --git a/.bin/d7ii/Config/CustomApps/Python Check.cfg b/.bin/d7ii/Config/CustomApps/Python Check.cfg new file mode 100644 index 00000000..5b12c7a5 --- /dev/null +++ b/.bin/d7ii/Config/CustomApps/Python Check.cfg @@ -0,0 +1,32 @@ +[Config] +LastEditDate=5/6/2019 6:48:27 PM +PostRunApp= +AppDesc=Python Check +App=Python_Check.cmd +UseFTPServer=0 +AlwaysAttemptDownload=0 +DLafterXdays=5 +AppWait=0 +EmailBeforeExecution=0 +PriorAlert=0 +ServiceWait=0 +AppMsgBox=0 +AppWaitTime=30 +AppRandomize=0 +SaveConfigAfter=0 +MoveSnatchReports=0 +SnatchReportsToMalwareLogs=1 +RunInCMD=0 +SendEnter=0 +RunWithSystemAccess=0 +IsDLInstaller=0 +LogVerbiage=Python compatibility check +32=1 +64=1 +XP=1 +Vista=1 +7=1 +8=1 +Servers=1 +NonDirectURLs=0 +AutoFlag=0 diff --git a/.bin/d7ii/Config/Profiles/Default.cfg b/.bin/d7ii/Config/Profiles/Default.cfg index 161e77e5..ba51d4e8 100644 --- a/.bin/d7ii/Config/Profiles/Default.cfg +++ b/.bin/d7ii/Config/Profiles/Default.cfg @@ -782,6 +782,7 @@ WizardKit System Diagnostics=1 1=1 RKill (Auto)=1 Disable Windows Updates=1 +Python Check=1 [Malware3] ComboFix=0 ComboFix (Uninstall)=0 diff --git a/.bin/d7ii/Config/SortOrder/MalwareBox2.cfg b/.bin/d7ii/Config/SortOrder/MalwareBox2.cfg index 3ef28f76..f26c90a5 100644 --- a/.bin/d7ii/Config/SortOrder/MalwareBox2.cfg +++ b/.bin/d7ii/Config/SortOrder/MalwareBox2.cfg @@ -1 +1 @@ -Disable Windows Updates|98|RKill (Auto)|Kaspersky TDSSKiller (Silent)|WizardKit System Diagnostics|34|Emsisoft a2cmd Deep Scan|HitmanPro|1|98| +Python Check|Disable Windows Updates|98|RKill (Auto)|Kaspersky TDSSKiller (Silent)|WizardKit System Diagnostics|34|Emsisoft a2cmd Deep Scan|HitmanPro|1|98|