Skip to content

There had been a major software security breach in the world of software management. I've been following this event in order to grasp the magnitude or scale of this breach which had ensnared public and private organizations. It does appear this security breach had affected a wide range of companies not only in the US and also agencies in the US Fed Gov as well. There was a joint write-up between Microsoft and Fireeye on how this breach was completed.

https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html

https://cyber.dhs.gov/ed/21-01/

https://us-cert.cisa.gov/ncas/alerts/aa20-352a

Many of the IT Security has been using security tools to decipher what was done in the code (dll) file by the following software:

https://www.fireeye.com/blog/threat-research/2020/12/evasive-attacker-leverages-solarwinds-supply-chain-compromises-with-sunburst-backdoor.html

https://github.com/cybercdh/hacks/tree/master/sunburst

https://www.winitor.com/

https://ghidra-sre.org/

We will provide some software which can easily be installed on windows, linux, and Mac as a standalone software package.

-- https://www.apachefriends.org/download.html
-- https://bitnami.com/stack/wamp/installer
-- https://www.mamp.info/en/downloads/
-- https://www.appserv.org/en/download/
-- https://ampps.com/downloads
-- https://www.wampserver.com/en/

installation to install these things separately as three different packages
-- https://www.znetlive.com/blog/how-to-install-apache-php-and-mysql-on-windows-10-machine/

-- mariaDB: https://mariadb.org/download/
-- mysql: https://dev.mysql.com/downloads/
-- mysql: https://dev.mysql.com/downloads/mysql/
-- php: https://www.php.net/downloads
-- https://downloads.apache.org/httpd/

Notable mention of a super-fast HTTP Engine
-- https://nginx.org/en/download.html

We will plan to write some documentation on how to install mariaDB+php+apache+odbc on a later Chapter.

Special linux distro LAMP installation guide
-- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mariadb-php-lamp-stack-on-debian-10
-- https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mariadb-php-lamp-stack-on-centos-8
-- https://www.itzgeek.com/post/how-to-install-linux-apache-mariadb-php-lamp-stack-on-ubuntu-20-04/

// ADD DNS to your mac machine on CMD
sudo networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4 185.228.168.9 208.67.222.222

// Change your mac hostname, pcname, localhostname
sudo scutil --set HostName <NEWMACHINENAME>
sudo scutil --set ComputerName <NEWMACHINENAME>
sudo scutil --set LocalHostName <NEWMACHINENAME>



@echo OFF
::
:: This was one of the most complicated software i had ever written
:: DOS scripting is Crazy HARD !
:: 
cls
:: Prompt for user to Really run this script
setlocal
set Value="n"
:PROMPT
SET /P Value=Are you sure (y/[n])?
IF /I "%Value%" NEQ "y" GOTO END

:: This batch file will show details Windows 10, and install Python v3.8.6.
TITLE Install Python Software on Windows 7/8/9/10
echo.Checking system information.
TIMEOUT /T 2 > nul

:: Switch to Downloads early on
cd %userprofile%/Downloads

echo.
echo.
:: Section 1: Windows 10 information.
echo.============================
echo.WINDOWS INFO
echo.============================
echo.
systeminfo | findstr /c:"OS Name"
systeminfo | findstr /c:"OS Version"
systeminfo | findstr /c:"Hyper-V Requirements"

:: Quick Pause
echo.
TIMEOUT /T 2 > nul

echo.
echo.
:: Section 2: Hardware information.
echo.============================
echo.HARDWARE INFO
echo.============================
echo.
systeminfo | findstr /c:"Total Physical Memory"
systeminfo | findstr /c:"Virtual Memory: In Use"
:: wmic diskdrive GET index,caption,name,size /format:table
:: wmic diskdrive GET index,Model,SerialNumber,Size,Status

:: Quick Pause
echo.
TIMEOUT /T 10 > nul

echo.
echo.
:: Section 3: Python Download.
echo.============================
echo.Downloading Python
echo.============================
echo.
::
echo.Downloading Python Software.
::
::
TIMEOUT /T 4 > nul
echo.
echo.
bitsadmin /transfer PythonDownload /download /priority normal https://www.python.org/ftp/python/3.8.6/python-3.8.6-amd64.exe %userprofile%\Downloads\python-3.8.6-amd64.exe

:: Quick Pause
echo.
echo.
TIMEOUT /T 2 > nul
TIMEOUT /T 2 > nul
echo.Checking to see if this python file has been downloaded.

IF EXIST python-3.8.6-amd64.exe (
  echo.Python file has been Found.
  echo.Will now Install this Software.
  echo.
  TIMEOUT /T 2 > nul
) ELSE (
  TIMEOUT /T 2 > nul
  echo.Software not found.
  echo.Perhaps, try to run this file again.
  echo.
  goto end
)
echo.Finish downloading the Python Software.
echo.

echo.
echo.
:: Section 4: Python Installation.
echo.============================
echo.Installing Python
echo.============================
echo.

echo.
echo.Installing Python version 3.8.6.
echo.This process will take as much as 15 mins if there is no SSD.
echo.
echo.Go grab Koffie or something before coming back to your Laptop.
:: This python install process is weird, it will simply return prompt once it had been executed but the process
:: will not be 100 percent completed before continuing as we have learned.
%userprofile%\Downloads\python-3.8.6-amd64.exe /quiet InstallAllUsers=1 TargetDir=c:\Python38 AssociateFiles=1 CompileAll=1 PrependPath=0 Shortcuts=0 Include_doc=1 Include_debug=0 Include_dev=0 Include_exe=1 Include_launcher=1 InstallLauncherAllUsers=1 Include_lib=1 Include_pip=1 Include_symbol=0 Include_tcltk=1 Include_test=1 Include_tools=1
::
::
:: This is quite sensitive wait time during installation.
:: It is compiling and creating all the dirs before all
:: files are compiled. It then do other things too.
:: Not sure what would be a good wait time before moving onto the next process.
:: it is wise to wait for atleast 3 mins actually due to compilation
:: of lots of tiny files inside python.
::
echo.
echo.Still compiling Python modules........
:: TIMEOUT 400
:: Buffer Zone
TIMEOUT /T 2 > nul
echo.
SET num=60
for /L %%I IN (1, 1, %num%) do (
  echo. | set /p="%%I " 
  TIMEOUT /T 1 > nul
)
echo.
echo.
echo.Finished Installing Python Software
echo.
echo.
::
::
echo.Be Patient, Almost done.
::
::
echo.
echo.
:: Section 4: Third Party Software Installation.
echo.============================
echo.Installing Third Party Software
echo.============================
echo.
::
:: Checking the file to see if it was made
::
echo.
:check
if exist C:\Python38\Tools\pynche\Main.py (
    echo.Checking Files if they were Created.....
    TIMEOUT /T 3 > nul
    echo.
    echo.They were created.
) else (
    echo.Files still not created.....
    TIMEOUT /T 2 > nul
    echo.
    TIMEOUT /T 3 > nul
    echo.Problem with installation. PRESS: CTRL-C to End Installation process only if after two messages printed.
    goto check
)

echo.
echo.
echo.Updating pip the module manager tool.
::
:: Updating pip on Windows
C:\Python38\python.exe -m pip install --upgrade pip
::
TIMEOUT /T 3 > nul
echo.
echo.Finished Updating pip.
::
:: Waiting for the previous process to finish
::
echo.
echo.
echo.Installing Additional required Modules
TIMEOUT /T 4 > nul
C:\Python38\scripts\pip.exe install --user requests diceware scipy numpy pandas matplotlib seaborn
TIMEOUT /T 8 > nul
::
echo.
echo.Finished installing Required Modules.

echo.
echo.
:: Section 4: Execute runme.bat.
echo.============================
echo.Execute runme.bat
echo.============================
echo.

echo set PATH=C:\Python38;%PATH% > %userprofile%\runme.bat
del /s %userprofile%\Downloads\python-3.8.6-amd64.exe >nul 2>&1
echo."Done Installing"
call %userprofile%\runme.bat
python -c "print(\"Welcome, Python installation Success !\")"
:END
The above code should do the trick in order to install python v3.8.6 onto a windows 10 x86_64 machine. Run it as admin since stuff will needed to be installed in C:\, mk dir and compile all kinds of stuff.  We were hesitant to install v3.9.0 Python since there might not many supported third party library as of this writing, so we defaulted in using the latest previous version. We have tested this script on windows 10. It has been Functioning three times since 20201125. Tested on both windows 10 v1907 and v20H2

This is pretty simple when comes to compiling Python on any *nix OS. There must compilation tools to be first installed before continuing onto compiling a opensource software such as the Python programming language.

on Ubuntu types of Distros:
we must install the following tools on the command prompt.

>>> sudo apt-get install build-essential

on CentOS like OSes:
We can do the following to obtain development tools

>>> sudo yum groupinstall 'Development Tools'

Finally, we can then roll over to python website to download the latest release candidate.

https://www.python.org/downloads/release/python-390rc2/

Download either the Gzipped source tarball or XZ compressed source tarball. If you have downloaded the GZ source code package. We can do the following to extract code into a directory and compile like a boss.

>>> tar xzvf Python-3.9.0rc2.tar.gz
>>> cd Python-3.9.0rc2/

Missing _lzma ? No problem we can first install xz and lzma using macports then configure the CFLAGS and LDFLAGS ENV variable to enable lzma header info unto bash.

>>> sudo port install xz lzma
>>> export LDFLAGS="-L/opt/local/lib"
>>> export CFLAGS="-I/opt/local/include"
>>> ./configure --enable-optimizations
>>> make
>>> make test
>>> make install

One of my previous post when installing python was to use the XML file which was by far the best approach in installing Python v3.8.x silently. After some experimenting using XML, it stopped functioning after i've upgraded to windows 10 v2004. after some thoughts, i then decided to use their other method to install this software unto windows.

you must first download either the python v3.8.5 64 bit installer software or their python v3.8.5 32 bit installer software from python.org.

afterwards, fire up your DOS prompt/terminal and run the terminal as administrator instead of a regular user to gain access to install this python software unto the C-Drive.

enter a command to change your directory to your download folder where the python installer executable has been placed.

C:\users\UserName\Download> python-3.8.5-amd64.exe /quiet InstallAllUsers=1 TargetDir=c:\Python38 AssociateFiles=1 CompileAll=1 PrependPath=0 Shortcuts=0 Include_doc=1 Include_debug=0 Include_dev=0 Include_exe=1 Include_launcher=1 InstallLauncherAllUsers=1 Include_lib=1 Include_pip=1 Include_symbol=0 Include_tcltk=1 Include_test=1 Include_tools=1

Now, wait 10 to 15 seconds before entering command onto the command prompt. There is still one additional task we must do before we could call this a successful install due to pip package manager. In the next block, we will show you how we can simply install pip unto your windows 10.

Ok, in order to install pip, we first must upgrade pip to the latest version since if you plan to use it immediately after installing Python by using the method from above , it will complaint to you that you have an older pip package manager.

so now, we will upgrade pip. Execute the below commands inside your ADMIN command prompt window !!

C:\users\UserName\Download> C:\Python38\python.exe -m pip install --upgrade pip

To install python packages, you will have to do the following.

C:\users\UserName\Download> C:\python38\scripts\pip.exe install requests diceware scipy

Done !