03. The Wonders of Git
Time to compare the development site against the live production site. The plan is to download the .git repository from git-serv and re-assemble it on the attack box to analyse.
Download the Repository
The .git repository is at C:\GitStack\repositories\Website.git. Pull it down with Evil-WinRM:
download C:\GitStack\repositories\Website.git
Rebuild the Website
GitTools takes the repository and puts it into a readable format to work with. cd into /Website.git, clone GitTools into it, then run the extractor:
git clone https://github.com/internetwache/GitTools
GitTools/Extractor/extractor.sh . Website
Sort the Commits
Each directory corresponds to a previous commit, but they aren't sorted by date. This bash one-liner prints each commit's metadata so they can be ordered:
separator="======================================="; for i in $(ls); do printf "\n\n$separator\n\033[4;1m$i\033[0m\n$(cat $i/commit-meta.txt)\n"; done; printf "\n\n$separator\n\n\n"
That reveals three commit comments: Static Website Commit, Updated the filter, and Initial Commit for the back-end.
To determine the commit order, take the commit with no parent and check each against the others:
70dde80cc19ec76704567996738894828f4ee89582dfc97bec0d7582d485d9031c09abcb5c6b18f2345ac8b236064b431fa43f53d91c98c4834ef8f3