Created
March 26, 2021 11:01
-
-
Save lichnak/1dceaba317da6cf655719e2d7a173a99 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Firstly Install Termux, Anlinux App From Playstore | |
mkdir $HOME/sources | |
# Install python and pyenv | |
pkg upgrade -y | |
pkg install -y wget curl openssh make cmake llvm git libxml2 libxslt python jq tmux science-repo root-repo x11-repo | |
python3 -m pip install --upgrade pip | |
python3 -m pip install --user virtualenv virtualenvwrapper wheel | |
curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash | |
cat > ~/.bashrc <<EOF | |
export PATH="$HOME/.pyenv/bin:$PATH" | |
eval "$(pyenv init -)" | |
eval "$(pyenv virtualenv-init -)" | |
export PATH="$HOME/.local/bin:$PATH" | |
export VIRTUALENVWRAPPER_PYTHON=/data/data/com.termux/files/usr/bin/python | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=$HOME/sources | |
source $HOME/.local/bin/virtualenvwrapper.sh | |
EOF | |
source ~/.bashrc | |
#pyenv usage | |
pyenv install 3.6.9 | |
# workon | |
# deactivate | |
# mkvirtualenv | |
# cdvirtualenv | |
# rmvirtualenv | |
mkvirtualenv venv_test | |
workon venv_test | |
deactivate venv_test | |
rmvirtualenv venv_test | |
# Compile pycares for theHarvester on termux | |
cd $HOME/sources | |
git clone https://github.com/saghul/pycares | |
cd pycares/ | |
sed -i 's/^#define HAVE_GETSERVBYPORT_R 1/\/\/#define HAVE_GETSERVBYPORT_R 1/g' deps/c-ares/src/config_linux/ares_config.h | |
python setup.py install | |
python tests/tests.py | |
# Install termux desktop openbox | |
pkg upgrade && pkg install wget tigervnc git -y | |
cd $HOME/sources | |
git clone --depth=1 https://github.com/adi1090x/termux-desktop.git | |
cd termux-desktop | |
chmod +x setup.sh | |
./setup.sh --install | |
startdesktop | |
# Install Nethunter | |
pkg upgrade && pkg install wget tigervnc git -y | |
fish | |
termux-setup-storage | |
cd $HOME/sources | |
wget -O install-nethunter-termux https://offs.ec/2MceZWr | |
chmod +x install-nethunter-termux | |
./install-nethunter-termux | |
nethunter kex passwd | |
nethunter kex & | |
# Metasploit manual way | |
pkg update && pkg upgrade -y && pkg install wget curl openssh git -y | |
cd $HOME/sources | |
git clone --recurise https://github.com/rapid7/metasploit-framework.git | |
cd metasploit-framework | |
chmod +x ./msfconsole | |
chmod +x ./msfvenom | |
ln -s $HOME/sources/metasploit-framework/msfconsole | |
mv msfconsole $PREFIX/bin | |
ln -s $HOME/sources/metasploit-framework/msfvenom | |
mv msfvenom $PREFIX/bin | |
# All.in.One Script of Hax4Us : | |
pkg update && pkg upgrade && pkg install git curl wget nmap -y && curl -LO raw.githubusercontent.com/Hax4us/Metasploit_termux/master/metasploit.sh && chmod 777 metasploit.sh && ./metasploit.sh | |
# V3rluchie's Method : | |
pkg update && pkg upgrade && pkg install curl wget git && git clone github.com/verluchie/termux-metasploit && chmod 777 termux-metasploit/install.sh && sh termux-metasploit/install.sh | |
# Tech-X3 's Trick | |
apt update && apt upgrade && apt install curl && curl -LO raw.githubusercontent.com/1Tech-X/Metasploit-4.16.12/master/metasploit.sh && chmod 777 metasploit.sh && sh metasploit.sh | |
# Kali by hax4us | |
pkg update && pkg install git && pkg install python && pkg install python2 | |
cd $HOME/sources | |
git clone https://github.com/Hax4us/Nethunter-In-Termux.git | |
cd Nethunter-In-Termux | |
chmod +x kalinethunter | |
./kalinethunter | |
./startkali.sh | |
# Kali by atilo | |
pkg install proot -y | |
termux-chroot | |
pkg install git | |
cd $HOME/sources | |
git clone https://github.com/YadominJinta/atilo.git | |
cd atilo/ | |
chmod +x atilo | |
./atilo install kali | |
startkali | |
# Easy usage of aircrack-ng | |
cd $HOME/sources | |
git clone https://github.com/MS-WEB-BN/h4rpy.git | |
cd h4rpy | |
bash config.sh | |
chmod +x h4rpy | |
./h4rpy | |
# Clone hacking repos | |
cd $HOME/sources | |
cat > github_repos.txt <<EOF | |
https://github.com/dangkyokhoang/Man-in-the-Middle.git | |
https://github.com/Hack-with-Github/Awesome-Hacking.git | |
https://github.com/carpedm20/awesome-hacking.git | |
https://github.com/jhermann/dependency-check-py.git | |
https://github.com/secdev/scapy.git | |
https://github.com/hahwul/a2sv.git | |
https://github.com/ihebski/angryFuzzer.git | |
https://github.com/nxxxu/AutoPixieWps.git | |
https://github.com/s0md3v/Breacher.git | |
https://github.com/Screetsec/Brutal.git | |
https://github.com/x90skysn3k/brutespray.git | |
https://github.com/undeadsec/checkurl.git | |
https://github.com/d4vinci/clickjacking-tester.git | |
https://github.com/dionach/cmsmap.git | |
https://github.com/lightos/credmap.git | |
https://github.com/jseidl/goldeneye.git | |
https://github.com/laramies/theharvester.git | |
https://github.com/ticarpi/jwt_tool.git | |
https://github.com/sqlmapproject/sqlmap.git | |
https://github.com/1N3/BruteX.git | |
https://github.com/samsesh/SocialBox-Termux.git | |
https://github.com/maliciousgroup/SecretSmasher.git | |
https://github.com/zaproxy/zaproxy.git | |
https://github.com/b3-v3r/Hunner.git | |
https://github.com/rapid7/metasploit-framework.git | |
https://github.com/UltimateHackers/ReconDog.git | |
https://github.com/Tuhinshubhra/RED_HAWK.git | |
https://github.com/vanhauser-thc/thc-hydra.git | |
https://github.com/rizinorg/rizin.git | |
https://github.com/brannondorsey/wifi-cracking.git | |
https://github.com/hashcat/hashcat.git | |
https://github.com/sc0tfree/mentalist.git | |
https://github.com/annamcabee/Mitre-Attack-API.git | |
https://github.com/mitre/mitre-saf.git | |
https://github.com/mitre/cti.git | |
https://github.com/cheeaun/awesome-hacker-news.git | |
https://github.com/Hack-with-Github/Awesome-Hacking.git | |
https://github.com/carpedm20/awesome-hacking.git | |
https://github.com/SystemsApproach/book.git | |
https://github.com/ratracegrad/meal-prep.git | |
https://github.com/flant/shell-operator.git | |
https://github.com/jm33-m0/emp3r0r.git | |
https://github.com/lichnak/apparmor-profile-torbrowser.git | |
https://github.com/kennethleungty/Fortune-Global-500-Bar-Chart-Race.git | |
https://github.com/kennethleungty/Web-Scraping-Walkthrough-HCP-Info.git | |
https://github.com/kennethleungty/AWS-Certified-Cloud-Practitioner-Notes.git | |
https://github.com/kennethleungty/Car-Plate-Detection-OpenCV-TesseractOCR | |
https://github.com/lichnak/tf-quant-finance.git | |
https://github.com/GTFOBins/GTFOBins.github.io.git | |
https://github.com/LOLBAS-Project/LOLBAS.git | |
https://github.com/ArnaultMICHEL/keycloak-nginx-certlookup-provider.git | |
https://github.com/gtworek/PSBits.git | |
https://github.com/hasherezade/malware_training_vol1.git | |
https://github.com/hasherezade/malware_analysis.git | |
https://github.com/hasherezade/antianalysis_demos.git | |
https://github.com/hasherezade/metasploit_modules.git | |
https://github.com/hasherezade/udis86.git | |
https://github.com/The-Lynx-Team/OSCP | |
https://github.com/liamg/traitor | |
https://github.com/ossf/scorecard | |
https://github.com/slackhq/goSDL.git | |
https://github.com/BlazingWind/OWASP-ASVS-4.0-testing-guide.git | |
https://github.com/ticarpi/jwt_tool.git | |
https://github.com/alienwithin/VX-Collectors-Edition.git | |
https://github.com/lief-project/LIEF.git | |
https://github.com/hacktics/vehicle.git | |
https://github.com/ovidiuf/playground.git | |
https://github.com/kubermatic/kubecarrier.git | |
https://github.com/crossplane/crossplane.git | |
https://github.com/kubernetes-sigs/kubefed.git | |
https://github.com/adi1090x/termux-desktop.git | |
https://github.com/raykao/hashistack_on_azure.git | |
https://github.com/paultyng/terraform-provider-unifi.git | |
https://github.com/forensic-architecture/models.git | |
https://github.com/marco-lancini/offensive-infrastructure.git | |
https://github.com/mitre/cti.git | |
https://github.com/mitre/mitre-saf.git | |
https://github.com/annamcabee/Mitre-Attack-API.git | |
https://github.com/MasterDevX/Termux-Kali.git | |
https://github.com/ansible-lockdown/Windows-2019-CIS .git | |
https://github.com/ComodoSecurity/openedr.git | |
https://github.com/NationalSecurityAgency/ghidra.git | |
https://github.com/GoogleContainerTools/container-diff.git | |
https://github.com/fireeye/sunburst_countermeasures.git | |
https://github.com/DataSentics/azure-ai-in-a-day.git | |
https://github.com/kubesphere/ks-installer.git | |
https://github.com/michal-kubicki/03-devops-ansible-windows-server-2016-GSA-baseline.git | |
https://github.com/nutanix/terraform-provider-nutanix.git | |
https://github.com/mbach04/nutanix_vm_provisioner.git | |
https://github.com/Saruspete/LinuxNetworking.git | |
https://github.com/nginxinc/nginx-service-mesh.git | |
https://github.com/ondrejsika/kubernetes-training.git | |
https://github.com/kubernetes/kubernetes.git | |
https://github.com/helm/helm.git | |
https://github.com/HPENetworking/scriptsonly.git | |
https://github.com/Agh42/CSTOOL_io.git | |
https://github.com/philhagen/sof-elk.git | |
https://github.com/moxie0/chapcrack.git | |
https://github.com/cve-search/cve-search.git | |
https://github.com/Cyb3rWard0g/HELK.git | |
https://github.com/StackStorm/st2.git | |
https://github.com/HewlettPackard/python-ilorest-library.git | |
https://github.com/ansible/ansible-examples.git | |
https://github.com/mohan08p/kodekloud-engineer.git | |
https://github.com/qntm/base2048.git | |
https://github.com/rvojcik/vault-certificate-deploy.git | |
https://github.com/weibeld/k1s.git | |
https://github.com/microsoft/WhatTheHack.git | |
https://github.com/IIT-PAVIS/Social-Distancing.git | |
https://github.com/Security-Onion-Solutions/security-onion.git | |
https://github.com/strandjs/IntroLabs.git | |
https://github.com/airbus-seclab/ilo4_toolbox.git | |
https://github.com/thombashi/tcconfig.git | |
https://github.com/jduncan-rva/kube-pi-lab.git | |
https://github.com/rameezk/debuggery.git | |
https://github.com/atomspring/KVM-BIOS-SerialNo.git | |
https://github.com/aouinizied/nfstream.git | |
https://github.com/RIPE-NCC/ripe-atlas-software-probe.git | |
https://github.com/stilljake/openvpn-azure-ad-auth.git | |
https://github.com/wayou/t-rex-runner.git | |
https://github.com/EnterpriseQualityCoding/FizzBuzzEnterpriseEdition.git | |
https://github.com/nicolaka/netshoot.git | |
https://github.com/sharkdp/fd.git | |
https://github.com/ruanyf/simple-bash-scripts.git | |
https://github.com/grzesiek-galezowski/tdd-ebook.git | |
https://github.com/baghelamit/video-stream-analytics.git | |
https://github.com/doejo/security-bot.git | |
https://github.com/EXALAB/Anlinux-Resources.git | |
EOF | |
while read repo; do | |
git clone --recursive "$repo" | |
done < github_repos.txt | |
# Git garbagebin | |
curl "https://api.github.com/users/geerlingguy/repos?per_page=100&page=1" | jq -r '.[] | .name' | |
curl "https://api.github.com/users/geerlingguy/repos?per_page=100&page=1" | jq -c '.[] | select(.name | contains("ansible"))' | jq -r .name | |
curl "https://api.github.com/users/geerlingguy/repos?per_page=100&page=1" 2>/dev/null | jq -r '.[] | .name' | |
http://${GITHUB_BASE_URL}/api/v3/orgs/${ORG_NAME}/repos?access_token=${ACCESS_TOKEN} | |
while read repo; do | |
git clone "$repo" | |
done < github_repos.txt | |
git init <dirname> | |
git remote add --mirror=fetch origin <url> | |
git fetch -u origin | |
git reset --hard HEAD | |
git fetch -u origin | |
git reset --hard HEAD | |
git branch -a | |
git checkout <that_branch> | |
find "$root_dir" -mindepth 1 -maxdepth 1 -type d -print \ | |
| while read repo; do \ | |
cd "$repo" && \ | |
git fetch -u origin && \ | |
git reset --hard HEAD \ | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment