Skip to content

Instantly share code, notes, and snippets.

@mgeeky
Last active April 16, 2025 22:32
Show Gist options
  • Save mgeeky/39d1681e44804f089d1553cc7597e628 to your computer and use it in GitHub Desktop.
Save mgeeky/39d1681e44804f089d1553cc7597e628 to your computer and use it in GitHub Desktop.

Revisions

  1. mgeeky revised this gist Apr 4, 2019. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -53,6 +53,11 @@ mkdir {aws,azure,gcp,kubernetes}

    # Multi-cloud tools
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/Ice3man543/SubOver
    cd SubOver
    go build
    chmod +x SubOver
    cd ..

    # AWS related
    cd aws
  2. mgeeky revised this gist Apr 4, 2019. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt install -y git build-essential binutils-dev vim python3 libunwind-dev python unzip python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli npm graphviz
    apt install -y git build-essential binutils-dev vim python3 libunwind-dev python unzip python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli npm graphviz golang
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

    @@ -168,6 +168,10 @@ cp $(find $ROOT_DIR/data/SecLists/Discovery/DNS/*knock*.txt) sorted_knock_dnsrec
    cd ..

    git_clone https://github.com/subfinder/subfinder.git
    cd subfinder
    go build
    chmod +x subfinder
    cd ..
    git_clone https://github.com/aboul3la/Sublist3r.git
    git_clone https://github.com/michenriksen/aquatone.git
    git_clone https://github.com/dxa4481/truffleHog.git
  3. mgeeky revised this gist Mar 26, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt install -y git build-essential binutils-dev vim python3 libunwind-dev python unzip python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli npm
    apt install -y git build-essential binutils-dev vim python3 libunwind-dev python unzip python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli npm graphviz
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

    @@ -75,6 +75,7 @@ cp storageAccounts/storageAccountsEncryption.js storageaccounts/
    cd ../../..
    git_clone https://github.com/dagrz/aws_pwn.git
    git_clone https://github.com/MindPointGroup/cloudfrunt.git
    git_clone https://github.com/nccgroup/PMapper.git
    git_clone https://github.com/tomdev/teh_s3_bucketeers.git
    git_clone https://github.com/carnal0wnage/weirdAAL.git ; cd weirdAAL ; apt-get install -y python3-venv ; python3 -m venv weirdAAL ; source weirdAAL/bin/activate ; pip3 install -r requirements.txt ; python3 create_dbs.py ; cp env.sample .env ; cd ..
    cd ..
  4. mgeeky revised this gist Mar 26, 2019. 1 changed file with 10 additions and 1 deletion.
    11 changes: 10 additions & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -63,7 +63,16 @@ git_clone https://github.com/nahamsec/lazys3.git
    git_clone https://github.com/andresriancho/nimbostratus.git
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell ; cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/cloudsploit/scans.git ; mv scans cloudsploit ; cd cloudsploit ; npm install ; cd ..
    git_clone https://github.com/cloudsploit/scans.git
    mv scans cloudsploit
    cd cloudsploit
    npm install
    cd plugins/azure
    cp -r virtualmachines virtualMachines
    cp -r blobservice blobService
    cp -r resourceGroups resourcegroups
    cp storageAccounts/storageAccountsEncryption.js storageaccounts/
    cd ../../..
    git_clone https://github.com/dagrz/aws_pwn.git
    git_clone https://github.com/MindPointGroup/cloudfrunt.git
    git_clone https://github.com/tomdev/teh_s3_bucketeers.git
  5. mgeeky revised this gist Mar 26, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt install -y git build-essential binutils-dev vim python3 libunwind-dev python unzip python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    apt install -y git build-essential binutils-dev vim python3 libunwind-dev python unzip python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli npm
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

    @@ -63,6 +63,7 @@ git_clone https://github.com/nahamsec/lazys3.git
    git_clone https://github.com/andresriancho/nimbostratus.git
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell ; cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/cloudsploit/scans.git ; mv scans cloudsploit ; cd cloudsploit ; npm install ; cd ..
    git_clone https://github.com/dagrz/aws_pwn.git
    git_clone https://github.com/MindPointGroup/cloudfrunt.git
    git_clone https://github.com/tomdev/teh_s3_bucketeers.git
  6. mgeeky revised this gist Mar 22, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -260,7 +260,7 @@ find . -name .git | while read line; do
    done

    # Append some stuff to bashrc
    cat << 'EOT' >> $ROOT_DIR/.bashrc
    cat <<'EOF' >> $ROOT_DIR/.bashrc
    stty start undef
    @@ -533,6 +533,6 @@ alias unblock_dir='sudo chmod -R 755'
    alias block_dir='sudo chmod -R 700'
    alias recursivegitpull='find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} pull \;'
    'EOT'
    EOF

    sed -i -r "s:~/:$ROOT_DIR/:" $ROOT_DIR/.bashrc
  7. mgeeky revised this gist Mar 21, 2019. 1 changed file with 2 additions and 3 deletions.
    5 changes: 2 additions & 3 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -248,7 +248,8 @@ popd
    # We avoid the hassle of using virtualenv here and there.
    #
    find . -name .git | while read line; do
    echo $line ; pushd "$(dirname $line)";
    echo $line
    pushd "$(dirname $line)"
    if [ -f 'requirements.txt' ]; then
    pip install -r requirements.txt;
    pip3 install -r requirements.txt;
    @@ -258,8 +259,6 @@ find . -name .git | while read line; do
    popd
    done

    popd

    # Append some stuff to bashrc
    cat << 'EOT' >> $ROOT_DIR/.bashrc
  8. mgeeky revised this gist Mar 21, 2019. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -167,7 +167,6 @@ git_clone https://github.com/Veil-Framework/Veil.git
    git_clone https://github.com/Veil-Framework/Veil-Evasion.git
    git_clone https://github.com/pentestgeek/phishing-frenzy.git
    git_clone https://github.com/trustedsec/social-engineer-toolkit.git
    git_clone https://github.com/mogwaisec/mjet.git
    popd

    pushd reversing
  9. mgeeky revised this gist Mar 21, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -167,7 +167,7 @@ git_clone https://github.com/Veil-Framework/Veil.git
    git_clone https://github.com/Veil-Framework/Veil-Evasion.git
    git_clone https://github.com/pentestgeek/phishing-frenzy.git
    git_clone https://github.com/trustedsec/social-engineer-toolkit.git
    git_clone https://github.com/mogwaisec/mjet.git-toolkit.git
    git_clone https://github.com/mogwaisec/mjet.git
    popd

    pushd reversing
  10. mgeeky revised this gist Mar 21, 2019. 1 changed file with 9 additions and 1 deletion.
    10 changes: 9 additions & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -49,17 +49,25 @@ git clone --depth=1 --branch=master https://www.github.com/landgrey/pydictor.git
    popd

    pushd clouds
    git_clone https://github.com/RhinoSecurityLabs/pacu.git ; cd pacu ; bash install.sh ; cd ..
    mkdir {aws,azure,gcp,kubernetes}

    # Multi-cloud tools
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..

    # AWS related
    cd aws
    git_clone https://github.com/RhinoSecurityLabs/pacu.git ; cd pacu ; bash install.sh ; cd ..
    git_clone https://github.com/Alfresco/prowler.git
    git_clone https://github.com/sa7mon/S3Scanner.git
    git_clone https://github.com/nahamsec/lazys3.git
    git_clone https://github.com/andresriancho/nimbostratus.git
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell ; cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git
    git_clone https://github.com/MindPointGroup/cloudfrunt.git
    git_clone https://github.com/tomdev/teh_s3_bucketeers.git
    git_clone https://github.com/carnal0wnage/weirdAAL.git ; cd weirdAAL ; apt-get install -y python3-venv ; python3 -m venv weirdAAL ; source weirdAAL/bin/activate ; pip3 install -r requirements.txt ; python3 create_dbs.py ; cp env.sample .env ; cd ..
    cd ..
    popd

    pushd deserialization
  11. mgeeky revised this gist Mar 21, 2019. 1 changed file with 15 additions and 5 deletions.
    20 changes: 15 additions & 5 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt install -y git build-essential vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    apt install -y git build-essential binutils-dev vim python3 libunwind-dev python unzip python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

    @@ -52,11 +52,13 @@ pushd clouds
    git_clone https://github.com/RhinoSecurityLabs/pacu.git ; cd pacu ; bash install.sh ; cd ..
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/Alfresco/prowler.git
    git_clone https://github.com/sa7mon/S3Scanner.git
    git_clone https://github.com/andresriancho/nimbostratus.git
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell ; cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git
    git_clone https://github.com/MindPointGroup/cloudfrunt.git
    git_clone https://github.com/tomdev/teh_s3_bucketeers.git
    git_clone https://github.com/carnal0wnage/weirdAAL.git ; cd weirdAAL ; apt-get install -y python3-venv ; python3 -m venv weirdAAL ; source weirdAAL/bin/activate ; pip3 install -r requirements.txt ; python3 create_dbs.py ; cp env.sample .env ; cd ..
    popd

    @@ -91,12 +93,20 @@ popd

    pushd fuzzers
    git_clone https://github.com/googleprojectzero/domato.git
    wget http://www.immunitysec.com/downloads/SPIKE2.9.tgz ; tar -xvzf SPIKE2.9.tgz
    wget http://www.immunitysec.com/downloads/SPIKE2.9.tgz ; tar -xvzf SPIKE2.9.tgz ; rm SPIKE2.9.tgz
    git_clone https://gitlab.com/akihe/radamsa.git
    git_clone https://github.com/google/honggfuzz.git
    wget 'https://downloads.sourceforge.net/project/peachfuzz/Peach/3.1/peach-3.1.124-source.zip?r=https%3A%2F%2Fsourceforge.net%2Fprojects%2Fpeachfuzz%2Ffiles%2Flatest%2Fdownload&ts=1547048913'
    cd honggfuzz
    make -j 8
    make install
    cd ..
    wget https://github.com/shellphish/fuzzer.git
    wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz ; tar -xvzf afl-latest.tgz
    wget http://lcamtuf.coredump.cx/afl/releases/afl-latest.tgz
    tar -xvzf afl-latest.tgz
    rm afl-latest.tgz
    cd $(find . -type d -name 'afl-*' -maxdepth 1 2>/dev/null)
    make -j 8 ; make install
    cd ..
    git_clone https://github.com/d0c-s4vage/gramfuzz.git
    git_clone https://github.com/nccgroup/Hodor.git
    git_clone https://github.com/OpenRCE/sulley.git
    @@ -148,7 +158,7 @@ pushd redteam
    git_clone https://github.com/Veil-Framework/Veil.git
    git_clone https://github.com/Veil-Framework/Veil-Evasion.git
    git_clone https://github.com/pentestgeek/phishing-frenzy.git
    git_clone https://github.com/trustedsec/social-engineer
    git_clone https://github.com/trustedsec/social-engineer-toolkit.git
    git_clone https://github.com/mogwaisec/mjet.git-toolkit.git
    popd

  12. mgeeky revised this gist Mar 21, 2019. No changes.
  13. mgeeky revised this gist Mar 21, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt install -y git build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    apt install -y git build-essential vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

  14. mgeeky revised this gist Mar 21, 2019. No changes.
  15. mgeeky revised this gist Mar 21, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt-get install -y build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    apt install -y git build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

  16. mgeeky revised this gist Mar 21, 2019. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -129,13 +129,13 @@ git_clone https://bitbucket.org/LaNMaSteR53/recon-ng.git ; cd recon-ng ; pip ins
    git_clone https://github.com/infosec-au/altdns.git
    git_clone https://github.com/jhaddix/domain.git
    mv domain jhaddix-enumall
    cd jhaddix-enumall
    chmod 755 enumall.py
    cp $(find $ROOT_DIR/data/SecLists/Discovery/DNS/*knock*.txt) sorted_knock_dnsrecon_fierce_recon-ng.txt
    cat <<EOT > jhaddix-enumall/config.py
    reconPath = "$PWD/recon-ng/"
    altDnsPath = "$PWD/altdns/"
    EOT
    cd jhaddix-enumall
    chmod 755 enumall.py
    cp $(find $ROOT_DIR/data/SecLists/Discovery/DNS/*knock*.txt) sorted_knock_dnsrecon_fierce_recon-ng.txt
    cd ..

    git_clone https://github.com/subfinder/subfinder.git
  17. mgeeky revised this gist Mar 21, 2019. 1 changed file with 38 additions and 13 deletions.
    51 changes: 38 additions & 13 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,15 @@
    #!/bin/bash

    # Well, entire Kali installation assume that we are normally working as root on our Kali.
    # I know that assumption sucks to its root, but I wanted to avoid every "permission denied" issue and I was too lazy
    # to get it done properly as a non-root.
    if [ $EUID -ne 0 ]; then
    echo "This script must be run as root."
    exit 1
    fi

    ROOT_DIR=/root

    git_clone() {
    git clone --recurse-submodules $1
    }
    @@ -9,12 +19,12 @@ apt-get install -y build-essential linux-headers-`uname -r` vim python3 python p
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

    cd ~/
    cd $ROOT_DIR
    mkdir {data,dev,tools,utils,misc,work}

    # ------------------------------------------------------

    cd ~/data
    cd $ROOT_DIR/data
    git_clone https://github.com/fuzzdb-project/fuzzdb.git
    git_clone https://github.com/danielmiessler/SecLists.git
    git_clone https://github.com/swisskyrepo/PayloadsAllTheThings.git
    @@ -26,7 +36,7 @@ wget https://gist.github.com/mgeeky/8b7b1c8d9fe8be69978d774bddb6e382/

    # ------------------------------------------------------

    cd ~/tools
    cd $ROOT_DIR/tools

    mkdir {bruteforce,clouds,deserialization,exploitdev,windows,redteam,recon,reversing,web,infra,fuzzers,linux,misc,powershell,ssl,sourceaudit,shells,wireless}

    @@ -42,11 +52,11 @@ pushd clouds
    git_clone https://github.com/RhinoSecurityLabs/pacu.git ; cd pacu ; bash install.sh ; cd ..
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/Alfresco/prowler.git
    git_clone https://github.com/andresriancho/nimbostratus.git ; cd nimbostratus ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/andresriancho/nimbostratus.git
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell ; cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/MindPointGroup/cloudfrunt.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/dagrz/aws_pwn.git
    git_clone https://github.com/MindPointGroup/cloudfrunt.git
    git_clone https://github.com/carnal0wnage/weirdAAL.git ; cd weirdAAL ; apt-get install -y python3-venv ; python3 -m venv weirdAAL ; source weirdAAL/bin/activate ; pip3 install -r requirements.txt ; python3 create_dbs.py ; cp env.sample .env ; cd ..
    popd

    @@ -115,7 +125,19 @@ pushd recon
    git_clone https://github.com/FortyNorthSecurity/EyeWitness.git
    git_clone https://github.com/michenriksen/gitrob.git
    git_clone https://github.com/smicallef/spiderfoot.git
    git_clone https://bitbucket.org/LaNMaSteR53/recon-ng.git
    git_clone https://bitbucket.org/LaNMaSteR53/recon-ng.git ; cd recon-ng ; pip install -r REQUIREMENTS ; cd ..
    git_clone https://github.com/infosec-au/altdns.git
    git_clone https://github.com/jhaddix/domain.git
    mv domain jhaddix-enumall
    cd jhaddix-enumall
    chmod 755 enumall.py
    cp $(find $ROOT_DIR/data/SecLists/Discovery/DNS/*knock*.txt) sorted_knock_dnsrecon_fierce_recon-ng.txt
    cat <<EOT > jhaddix-enumall/config.py
    reconPath = "$PWD/recon-ng/"
    altDnsPath = "$PWD/altdns/"
    EOT
    cd ..

    git_clone https://github.com/subfinder/subfinder.git
    git_clone https://github.com/aboul3la/Sublist3r.git
    git_clone https://github.com/michenriksen/aquatone.git
    @@ -132,8 +154,8 @@ popd

    pushd reversing
    wget https://ghidra-sre.org/ghidra_9.0_PUBLIC_20190228.zip -O ghidra.zip ; unzip -d . ghidra.zip ; rm ghidra.zip
    git_clone https://github.com/longld/peda.git ; echo "source ~/tools/reversing/peda/peda.py" >> ~/.gdbinit ;
    git_clone https://github.com/hugsy/gef.git ; cd gef ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/longld/peda.git ; echo "source $ROOT_DIR/tools/reversing/peda/peda.py" >> $ROOT_DIR/.gdbinit ;
    git_clone https://github.com/hugsy/gef.git
    git_clone https://github.com/radare/radare2.git ; cd radare2 ; sys/install.sh ; r2pm init ; r2pm update ; pip install r2pipe ; cd ..
    popd

    @@ -165,7 +187,7 @@ git_clone https://github.com/sqlmapproject/sqlmap.git
    git_clone https://github.com/RhinoSecurityLabs/SleuthQL
    git_clone https://github.com/EnableSecurity/wafw00f.git
    git_clone https://github.com/nodesecurity/eslint-plugin-security ; npm install --save-dev eslint-plugin-security
    cat <<EOT >> ~/.eslintrc
    cat <<EOT >> $ROOT_DIR/.eslintrc
    "plugins": [
    "security"
    ],
    @@ -205,7 +227,8 @@ popd


    #
    # Follow repos, collect 'requirements.txt' files and feed them into `pip install`
    # Follow repos, collect 'requirements.txt' files and feed them into `pip install`.
    # We avoid the hassle of using virtualenv here and there.
    #
    find . -name .git | while read line; do
    echo $line ; pushd "$(dirname $line)";
    @@ -221,7 +244,7 @@ done
    popd

    # Append some stuff to bashrc
    cat <<EOT >> ~/.bashrc
    cat << 'EOT' >> $ROOT_DIR/.bashrc
    stty start undef
    @@ -494,4 +517,6 @@ alias unblock_dir='sudo chmod -R 755'
    alias block_dir='sudo chmod -R 700'
    alias recursivegitpull='find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} pull \;'
    EOT
    'EOT'
    sed -i -r "s:~/:$ROOT_DIR/:" $ROOT_DIR/.bashrc
  18. mgeeky revised this gist Mar 21, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -492,4 +492,6 @@ alias eslintjs='eslint --no-eslintrc -c ~/.eslintrc.js .'
    alias unblock_dir='sudo chmod -R 755'
    alias block_dir='sudo chmod -R 700'
    alias recursivegitpull='find . -mindepth 1 -maxdepth 1 -type d -print -exec git -C {} pull \;'
    EOT
  19. mgeeky revised this gist Mar 18, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -40,10 +40,10 @@ popd

    pushd clouds
    git_clone https://github.com/RhinoSecurityLabs/pacu.git ; cd pacu ; bash install.sh ; cd ..
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/Alfresco/prowler.git
    git_clone https://github.com/andresriancho/nimbostratus.git ; cd nimbostratus ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell cd ..
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell ; cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/MindPointGroup/cloudfrunt.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
  20. mgeeky revised this gist Mar 13, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -42,6 +42,7 @@ pushd clouds
    git_clone https://github.com/RhinoSecurityLabs/pacu.git ; cd pacu ; bash install.sh ; cd ..
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/Alfresco/prowler.git
    git_clone https://github.com/andresriancho/nimbostratus.git ; cd nimbostratus ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
  21. mgeeky revised this gist Mar 11, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@ git_clone() {

    apt update ; apt upgrade -y
    apt-get install -y build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv wheel boto3 botocore
    pip install virtualenv awscli wheel boto3 botocore
    pip3 install virtualenv awscli wheel boto3 botocore
    pip install virtualenv wheel boto3 botocore

    cd ~/
    mkdir {data,dev,tools,utils,misc,work}
  22. mgeeky revised this gist Mar 11, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@ git_clone() {

    apt update ; apt upgrade -y
    apt-get install -y build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv wheel
    pip install virtualenv awscli wheel
    pip3 install virtualenv wheel boto3 botocore
    pip install virtualenv awscli wheel boto3 botocore

    cd ~/
    mkdir {data,dev,tools,utils,misc,work}
  23. mgeeky revised this gist Mar 11, 2019. 1 changed file with 4 additions and 3 deletions.
    7 changes: 4 additions & 3 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,9 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt-get install build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv
    pip install virtualenv awscli
    apt-get install -y build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-venv python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv wheel
    pip install virtualenv awscli wheel

    cd ~/
    mkdir {data,dev,tools,utils,misc,work}
    @@ -46,6 +46,7 @@ git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/MindPointGroup/cloudfrunt.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/carnal0wnage/weirdAAL.git ; cd weirdAAL ; apt-get install -y python3-venv ; python3 -m venv weirdAAL ; source weirdAAL/bin/activate ; pip3 install -r requirements.txt ; python3 create_dbs.py ; cp env.sample .env ; cd ..
    popd

    pushd deserialization
  24. mgeeky revised this gist Mar 8, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ git_clone() {
    apt update ; apt upgrade -y
    apt-get install build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv
    pip install virtualenv
    pip install virtualenv awscli

    cd ~/
    mkdir {data,dev,tools,utils,misc,work}
  25. mgeeky revised this gist Mar 8, 2019. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt-get install build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    apt-get install build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip python3-setuptools libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv
    pip install virtualenv

    @@ -130,6 +130,9 @@ popd

    pushd reversing
    wget https://ghidra-sre.org/ghidra_9.0_PUBLIC_20190228.zip -O ghidra.zip ; unzip -d . ghidra.zip ; rm ghidra.zip
    git_clone https://github.com/longld/peda.git ; echo "source ~/tools/reversing/peda/peda.py" >> ~/.gdbinit ;
    git_clone https://github.com/hugsy/gef.git ; cd gef ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/radare/radare2.git ; cd radare2 ; sys/install.sh ; r2pm init ; r2pm update ; pip install r2pipe ; cd ..
    popd

    pushd shells
  26. mgeeky revised this gist Mar 8, 2019. 1 changed file with 3 additions and 0 deletions.
    3 changes: 3 additions & 0 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -93,6 +93,7 @@ popd

    pushd linux
    git_clone https://github.com/Arr0way/linux-local-enumeration-script.git
    git_clone https://github.com/CISOfy/lynis.git
    popd

    pushd misc
    @@ -193,6 +194,8 @@ popd

    pushd wireless
    git_clone https://github.com/brav0hax/easy-creds.git
    git_clone https://github.com/s0lst1c3/eaphammer.git ; cd eaphammer ; ./kali-setup ; cd ..
    git_clone https://github.com/derv82/wifite2.git ; cd wifite2 ; python setup.py install ; cd ..
    popd


  27. mgeeky revised this gist Mar 8, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -5,7 +5,7 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt-get install python3-pip autoconf automake libtool python3.7-dev python3-tk jq awscli
    apt-get install build-essential linux-headers-`uname -r` vim python3 python python-pip python3-pip libssl-dev autoconf automake libtool python2.7-dev python3.7-dev python3-tk jq awscli
    pip3 install virtualenv
    pip install virtualenv

  28. mgeeky revised this gist Mar 8, 2019. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -203,6 +203,7 @@ find . -name .git | while read line; do
    echo $line ; pushd "$(dirname $line)";
    if [ -f 'requirements.txt' ]; then
    pip install -r requirements.txt;
    pip3 install -r requirements.txt;
    elif [ -f 'Gemfile' ]; then
    bundle install
    fi
  29. mgeeky revised this gist Mar 8, 2019. 1 changed file with 0 additions and 23 deletions.
    23 changes: 0 additions & 23 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,7 @@
    #!/bin/bash

    update_all_repos_script=~/tools/update-all.sh

    git_clone() {
    git clone --recurse-submodules $1
    p="$(pwd)/$(basename $1)"
    echo -e "\t\"$p\"" >> "$update_all_repos_script"
    }

    apt update ; apt upgrade -y
    @@ -32,14 +28,6 @@ wget https://gist.github.com/mgeeky/8b7b1c8d9fe8be69978d774bddb6e382/

    cd ~/tools

    touch "$update_all_repos_script"
    chmod +x "$update_all_repos_script"

    cat <<EOT >> "$update_all_repos_script"
    #!/bin/bash
    repos_list=(
    EOT

    mkdir {bruteforce,clouds,deserialization,exploitdev,windows,redteam,recon,reversing,web,infra,fuzzers,linux,misc,powershell,ssl,sourceaudit,shells,wireless}

    git_clone https://github.com/mgeeky/Penetration-Testing-Tools
    @@ -58,7 +46,6 @@ git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/MindPointGroup/cloudfrunt.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..

    popd

    pushd deserialization
    @@ -208,16 +195,6 @@ pushd wireless
    git_clone https://github.com/brav0hax/easy-creds.git
    popd

    cat <<EOT >> "$update_all_repos_script"
    )
    pushd ~/tools
    for p in "${repos_list[@]}"
    do
    pushd $p
    git pull --force
    popd
    done
    EOT

    #
    # Follow repos, collect 'requirements.txt' files and feed them into `pip install`
  30. mgeeky revised this gist Mar 8, 2019. 1 changed file with 12 additions and 2 deletions.
    14 changes: 12 additions & 2 deletions prepare-kali.sh
    Original file line number Diff line number Diff line change
    @@ -9,6 +9,9 @@ git_clone() {
    }

    apt update ; apt upgrade -y
    apt-get install python3-pip autoconf automake libtool python3.7-dev python3-tk jq awscli
    pip3 install virtualenv
    pip install virtualenv

    cd ~/
    mkdir {data,dev,tools,utils,misc,work}
    @@ -48,7 +51,14 @@ git clone --depth=1 --branch=master https://www.github.com/landgrey/pydictor.git
    popd

    pushd clouds
    git_clone https://github.com/RhinoSecurityLabs/pacu.git
    git_clone https://github.com/RhinoSecurityLabs/pacu.git ; cd pacu ; bash install.sh ; cd ..
    git_clone https://github.com/nccgroup/ScoutSuite.git ; cd ScoutSuite ; virtualenv -p python3 venv ; source venv/bin/activate ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/Alfresco/prowler.git
    git_clone https://github.com/duo-labs/cloudmapper.git ; cd cloudmapper/ ; pipenv install --skip-lock ; pipenv shell cd ..
    git_clone https://github.com/awslabs/aws-security-benchmark.git
    git_clone https://github.com/dagrz/aws_pwn.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..
    git_clone https://github.com/MindPointGroup/cloudfrunt.git ; cd aws_pwn ; pip install -r requirements.txt ; cd ..

    popd

    pushd deserialization
    @@ -484,7 +494,7 @@ defaultiface=`ip route ls | grep default | pcregrep -o1 '.+dev (\S+).+'`
    alias diface=`echo $defaultiface`
    function nmapscripts() {
    ls -l /usr/share/nmap/scripts/ | awk '{print $9;}' | grep -i "$1" | column
    find /usr/share/nmap/scripts/ -exec basename {} \; | grep -i "$1" | column
    }
    alias bcb='~/tools/Penetration-Testing-Tools/web/burp-curl-beautifier.py'