Skip to content

Commit

Permalink
Merge pull request #178 from gbe/addGitDepth
Browse files Browse the repository at this point in the history
Add the argument --depth 1 to git clone for some tools missing it
  • Loading branch information
Dramelac committed Jul 6, 2023
2 parents b83d94a + 2e17917 commit 89d3055
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 20 deletions.
7 changes: 3 additions & 4 deletions sources/install/package_ad.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ function configure_crackmapexec() {
[ -f ~/.cme/cme.conf ] && mv ~/.cme/cme.conf ~/.cme/cme.conf.bak
cp -v /root/sources/assets/crackmapexec/cme.conf ~/.cme/cme.conf
# below is for having the ability to check the source code when working with modules and so on
# git -C /opt/tools/ clone https://github.com/mpgn/CrackMapExec
cp -v /root/sources/assets/grc/conf.cme /usr/share/grc/conf.cme
}

Expand Down Expand Up @@ -367,7 +366,7 @@ function install_libmspack() {
function install_windapsearch-go() {
colorecho "Installing Go windapsearch"
# Install mage dependency
git -C /opt/tools/ clone https://github.com/magefile/mage
git -C /opt/tools/ clone --depth 1 https://github.com/magefile/mage
cd /opt/tools/mage
go run bootstrap.go
# Install windapsearch tool
Expand Down Expand Up @@ -622,7 +621,7 @@ function install_manspider() {

function install_targetedKerberoast() {
colorecho "Installing targetedKerberoast"
git -C /opt/tools/ clone https://github.com/ShutdownRepo/targetedKerberoast
git -C /opt/tools/ clone --depth 1 https://github.com/ShutdownRepo/targetedKerberoast
cd /opt/tools/targetedKerberoast
python3 -m venv ./venv/
./venv/bin/python3 -m pip install -r requirements.txt
Expand Down Expand Up @@ -787,7 +786,7 @@ function install_ldeep() {
function install_rusthound() {
colorecho "Installing RustHound"
fapt gcc clang libclang-dev libgssapi-krb5-2 libkrb5-dev libsasl2-modules-gssapi-mit musl-tools gcc-mingw-w64-x86-64
git -C /opt/tools/ clone https://github.com/OPENCYBER-FR/RustHound
git -C /opt/tools/ clone --depth 1 https://github.com/OPENCYBER-FR/RustHound
cd /opt/tools/RustHound
# Sourcing rustup shell setup, so that rust binaries are found when installing cme
source "$HOME/.cargo/env"
Expand Down
14 changes: 7 additions & 7 deletions sources/install/package_base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ function update() {

function install_exegol-history() {
colorecho "Installing Exegol-history"
# git -C /opt/tools/ clone https://github.com/ThePorgs/Exegol-history
# todo : below is something basic. A nice tool being created for faster and smoother worflow
# git -C /opt/tools/ clone --depth 1 https://github.com/ThePorgs/Exegol-history
# todo : below is something basic. A nice tool being created for faster and smoother workflow
mkdir -p /opt/tools/Exegol-history
rm -rf /opt/tools/Exegol-history/profile.sh
echo "#export INTERFACE='eth0'" >> /opt/tools/Exegol-history/profile.sh
Expand Down Expand Up @@ -118,11 +118,11 @@ function install_ohmyzsh() {
colorecho "Installing oh-my-zsh, config, history, aliases"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
cp -v /root/sources/assets/zsh/zshrc ~/.zshrc
git -C ~/.oh-my-zsh/custom/plugins/ clone https://github.com/zsh-users/zsh-autosuggestions
git -C ~/.oh-my-zsh/custom/plugins/ clone https://github.com/zsh-users/zsh-syntax-highlighting
git -C ~/.oh-my-zsh/custom/plugins/ clone https://github.com/zsh-users/zsh-completions
git -C ~/.oh-my-zsh/custom/plugins/ clone https://github.com/agkozak/zsh-z
git -C ~/.oh-my-zsh/custom/plugins/ clone https://github.com/lukechilds/zsh-nvm
git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/zsh-users/zsh-autosuggestions
git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/zsh-users/zsh-syntax-highlighting
git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/zsh-users/zsh-completions
git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/agkozak/zsh-z
git -C ~/.oh-my-zsh/custom/plugins/ clone --depth 1 https://github.com/lukechilds/zsh-nvm
zsh -c "source ~/.oh-my-zsh/custom/plugins/zsh-nvm/zsh-nvm.plugin.zsh" # this is needed to start an instance of zsh to have the plugin set up
add-aliases fzf
add-test-command "fzf-wordlists --help"
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_c2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function install_routersploit() {

function install_sliver() {
colorecho "Installing Sliver"
git -C /opt/tools/ clone https://github.com/BishopFox/sliver.git
git -C /opt/tools/ clone --depth 1 https://github.com/BishopFox/sliver.git
cd /opt/tools/sliver
make
cp sliver-* /opt/tools/bin
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_misc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ function install_trilium() {
colorecho "Installing Trilium (building from sources)"
# TODO : apt install in a second step
fapt libpng16-16 libpng-dev pkg-config autoconf libtool build-essential nasm libx11-dev libxkbfile-dev
git -C /opt/tools/ clone -b stable https://github.com/zadam/trilium.git
git -C /opt/tools/ clone -b stable --depth 1 https://github.com/zadam/trilium.git
cd /opt/tools/trilium
add-aliases trilium
add-history trilium
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_reverse.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function install_checksec-py() {

function install_radare2(){
colorecho "Installing radare2"
git -C /opt/tools/ clone https://github.com/radareorg/radare2
git -C /opt/tools/ clone --depth 1 https://github.com/radareorg/radare2
/opt/tools/radare2/sys/install.sh
add-history radare2
add-test-command "radare2 -h"
Expand Down
2 changes: 1 addition & 1 deletion sources/install/package_sdr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function install_sdr_apt_tools() {
function install_mousejack() {
colorecho "Installing mousejack"
fapt sdcc binutils
git -C /opt/tools/ clone https://github.com/BastilleResearch/mousejack
git -C /opt/tools/ clone --depth 1 https://github.com/BastilleResearch/mousejack
cd /opt/tools/mousejack
git submodule init
git submodule update
Expand Down
6 changes: 3 additions & 3 deletions sources/install/package_web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ function install_droopescan() {

function install_drupwn() {
colorecho "Installing drupwn"
git -C /opt/tools/ clone https://github.com/immunIT/drupwn
git -C /opt/tools/ clone --depth 1 https://github.com/immunIT/drupwn
python3 -m pipx install git+https://github.com/immunIT/drupwn
add-aliases drupwn
add-history drupwn
Expand Down Expand Up @@ -295,7 +295,7 @@ function install_testssl() {
function install_tls-scanner() {
colorecho "Installing TLS-Scanner"
fapt maven
git -C /opt/tools/ clone https://github.com/tls-attacker/TLS-Scanner
git -C /opt/tools/ clone --depth 1 https://github.com/tls-attacker/TLS-Scanner
cd /opt/tools/TLS-Scanner
git submodule update --init --recursive
mvn clean package -DskipTests=true
Expand Down Expand Up @@ -675,7 +675,7 @@ function install_php_filter_chain_generator() {

function install_kraken() {
colorecho "Installing Kraken"
git -C /opt/tools clone --recurse-submodules https://github.com/kraken-ng/Kraken.git
git -C /opt/tools clone --depth 1 --recurse-submodules https://github.com/kraken-ng/Kraken.git
cd /opt/tools/Kraken
python3 -m venv ./venv
./venv/bin/python3 -m pip install -r requirements.txt
Expand Down
4 changes: 2 additions & 2 deletions sources/install/package_wifi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ function install_bettercap() {
function install_hcxtools() {
colorecho "Installing hcxtools"
fapt libcurl4 libcurl4-openssl-dev libssl-dev openssl pkg-config
git -C /opt/tools/ clone https://github.com/ZerBea/hcxtools
git -C /opt/tools/ clone --depth 1 https://github.com/ZerBea/hcxtools
cd /opt/tools/hcxtools
# Checking out to specific commit is a temporary fix to the project no compiling anymore.
# FIXME whenever possible to stay up to date with project (https://github.com/ZerBea/hcxtools/issues/233)
Expand All @@ -91,7 +91,7 @@ function install_hcxtools() {
function install_hcxdumptool() {
colorecho "Installing hcxdumptool"
fapt libcurl4-openssl-dev libssl-dev
git -C /opt/tools/ clone https://github.com/ZerBea/hcxdumptool
git -C /opt/tools/ clone --depth 1 https://github.com/ZerBea/hcxdumptool
cd /opt/tools/hcxdumptool
# Checking out to specific commit is a temporary fix to the project no compiling anymore.
# FIXME whenever possible to stay up to date with project (https://github.com/ZerBea/hcxdumptool/issues/232)
Expand Down

0 comments on commit 89d3055

Please sign in to comment.