I noticed that some tools missed the flag --depth 1 for git clone.
For some tools, it was simply forgotten.
For others, the flag --depth 1 was removed for temp fixes reasons.
This PR reinstates the depth flag to clone directly the appropriate branch in a single command instead of doing a git clone followed by a git checkout:
Example with sliver: git -C /opt/tools/ clone --branch v1.5.41 --depth 1 https://github.com/BishopFox/sliver.git
Another with Bloodhound-CE: git -C /opt/tools/ clone --branch bloodhound-ce --depth 1 https://github.com/dirkjanm/BloodHound.py BloodHound-CE.py
About sliver, I moved the temp fix criticalecho at the beginning of the function to only clone the repo if the date condition is met. I hope it's ok like this.
I noticed that some tools missed the flag
--depth 1
forgit clone
.For some tools, it was simply forgotten.
For others, the flag --depth 1 was removed for temp fixes reasons. This PR reinstates the depth flag to clone directly the appropriate branch in a single command instead of doing a
git clone
followed by agit checkout
:Example with sliver:
git -C /opt/tools/ clone --branch v1.5.41 --depth 1 https://github.com/BishopFox/sliver.git
Another with Bloodhound-CE:
git -C /opt/tools/ clone --branch bloodhound-ce --depth 1 https://github.com/dirkjanm/BloodHound.py BloodHound-CE.py
About sliver, I moved the temp fix criticalecho at the beginning of the function to only clone the repo if the date condition is met. I hope it's ok like this.