ZishanAdThandar

Hackify Linux By ZishanAdThandar

Dec 2nd, 2021 (edited)
2,072
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 19.54 KB | None | 0 0
  1. #! /usr/bin/env bash
  2.  
  3. # Color Codes of Regular Colors
  4. Black='\033[0;30m'        # Black
  5. Red='\033[0;31m'          # Red
  6. Green='\033[0;32m'        # Green
  7. Yellow='\033[0;33m'       # Yellow
  8. Blue='\033[0;34m'         # Blue
  9. Purple='\033[0;35m'       # Purple
  10. Cyan='\033[0;36m'         # Cyan
  11. White='\033[0;37m'        # White
  12. Nc='\033[0m'              # No Color
  13.  
  14. # banner
  15. clear
  16. printf "\n\n${Green}Hacking Tools and Wordlist Installer written by,\n\n\n"
  17. printf "${Red}" # banner bg and fg color
  18.  
  19. cat << "EOF"
  20.   _____    _                _      _ _____ _                 _          
  21.  |_  (_)__| |_  __ _ _ _   /_\  __| |_   _| |_  __ _ _ _  __| |__ _ _ _
  22.   / /| (_-| ' \/ _` | ' \ / _ \/ _` | | | | ' \/ _` | ' \/ _` / _` | '_|
  23. /___|_/__|_||_\__,_|_||_/_/ \_\__,_| |_| |_||_\__,_|_||_\__,_\__,_|_|  
  24.  
  25. EOF
  26. printf "\n\n${Cyan}Profile: https://zishanadthandar.github.io\nLinkTree: https://zishanadthandar.github.io/linktree\nLinkedIn: https://linkedin.com/in/zishanadthandar${Nc}\n\n"
  27. sleep 2 #banner break  
  28.                              
  29. # one liner bash if loop to check root user
  30. [ "$EUID" -ne 0 ] && printf "\n\033[30;5;41mPlease run as root.${Nc}\n" && sudo su
  31.  
  32. # ===================================WORDLIST========================
  33.  
  34. # function for wordlists from github
  35. function wsgit {
  36. [ -d "/opt/wordlist/$1" ] && printf "${Green}$1 already installed${Nc}\n"
  37. [ ! -d "/opt/wordlist/$1" ] && git clone $2 /opt/wordlist/$1 && printf "${Purple}$1 downloaded successfully\n${Nc}"
  38. }
  39. # function for wordlists with wget
  40. function wswget {
  41. [ -f "/opt/wordlist/$1" ] && printf "${Green}$1 already downloaded${Nc}\n"
  42. [ ! -f "/opt/wordlist/$1" ] && wget $2 -O /opt/wordlist/$1 && printf "${Purple}$1 downloaded\n${Nc}"
  43. }
  44. # Making wordlist folder if not exist
  45. [ ! -d "/opt/wordlist" ] && mkdir /opt/wordlist
  46. cd /opt/wordlist
  47. printf "we are in $(pwd) folder.\n\n/opt/wordlist/ Folder Contains:\n"
  48. ls
  49. # Array for wordlists
  50. declare -A wsgitarray=( [PayloadsAllTheThings]="https://github.com/swisskyrepo/PayloadsAllTheThings" [SecLists]="https://github.com/danielmiessler/SecLists" [fuzzdb]="https://github.com/fuzzdb-project/fuzzdb" [api_wordlist]="https://github.com/chrislockard/api_wordlist")
  51. declare -A wsgetarray=( [all.txt]="https://gist.githubusercontent.com/jhaddix/86a06c5dc309d08580a018c66354a056/raw/96f4e51d96b2203f19f6381c8c545b278eaa0837/all.txt" [markdownxss.txt]="https://raw.githubusercontent.com/cujanovic/Markdown-XSS-Payloads/master/Markdown-XSS-Payloads.txt")
  52.  
  53. # for loop to git clone wordlists
  54. for i in "${!wsgitarray[@]}"
  55. do
  56.  wsgit $i ${wsgitarray[$i]}
  57. done
  58. # for loop to wget wordlists
  59. for i in "${!wsgetarray[@]}"
  60. do
  61.  wswget $i ${wsgetarray[$i]}
  62. done
  63.  
  64. # Rockyou unzipping
  65. [ -f "/opt/wordlist/rockyou.txt" ] && printf "${Green}rockyou.txt already downloaded${Nc}\n"
  66. [ ! -f "/opt/wordlist/rockyou.txt" ] && tar -xf /opt/wordlist/SecLists/Passwords/Leaked-Databases/rockyou.txt.tar.gz -C /opt/wordlist/ && printf "${Purple}unzipped rockyou.txt${Nc}\n"
  67.  
  68.  
  69. # Assetnote API wordlist (creates logical block error, because of large files)
  70. # [ -d "/opt/wordlist/assetnote" ] && printf "\n${Yellow}Assetnote API wordlist already installed${Nc}\n"
  71. #[ ! -d "/opt/wordlist/assetnote" ] && mkdir /opt/wordlist/assetnote && wget -r --no-parent -R "index.html*" https://wordlists-cdn.assetnote.io/data/ -nH -np /opt/wordlist/assetnote/ && printf "${Purple}Assetnote API wordlist downloaded successfully\n${Nc}" && mv /opt/wordlist/data/* /opt/wordlist/assetnote && rm -rf /opt/wordlist/data
  72.  
  73. printf "\n${Cyan}Stage 1 Finished!\nWordlists Downloaded.${Nc}\n\n"
  74. sleep 1 #stage 1 break
  75.  
  76.  
  77.  
  78.  
  79. # ===================================APT========================  
  80.  
  81.  
  82. declare -a aptarray=("aircrack-ng" "audacity" "axiom" "beef" "binwalk" "bully" "cargo" "cewl" "cherrytree" "cowpatty" "crunch" "dirb" "dnsenum" "dnsmap" "dnsrecon" "ffmpeg" "git" "hashcat" "hcxdumptool" "httrack" "hydra" "john" "jq" "masscan" "macchanger" "ndiff" "nikto" "openvpn" "parcellite" "pipx" "pixiewps" "pngcheck" "proxychains" "python2" "python3" "reaver" "rlwrap" "stegcracker" "steghide" "tmux" "tor" "whatweb" "whois" "wifite" "wireshark")
  83.  
  84. #Function to check if installed and install it
  85. function aptinstall {
  86. dpkg -l "$1" | grep -q ^ii && return 1
  87. apt-get -y install "$1"
  88. return 0
  89. }
  90. #Installing from array
  91. for i in "${aptarray[@]}"
  92. do
  93.  aptinstall $i
  94. done
  95. #functions to check missing tools
  96. function missapt {
  97. if ! command -v $1 &> /dev/null
  98. then
  99.     printf "${Red}Install $1 manually.\n${Nc}"
  100. fi
  101. }
  102. #Recommending missing tools from array
  103. for i in "${aptarray[@]}"
  104. do
  105.  missapt $i
  106. done
  107.  
  108. printf "\n${Cyan}Stage 2 Finished!\nApt Installation Finished.\nCheck for missing tools and manually install.${Nc}\n"
  109.  
  110.  
  111. # APT 1
  112. function aptinstall1 {
  113. [ ! -f "$1" ] && apt-get -y install "$2"
  114. return 0
  115. }
  116. declare -A aptarray1=( [/usr/bin/exiftool]="libimage-exiftool-perl" [/usr/bin/pip3]="python3-pip" [/usr/bin/uget-gtk]="uget" [/usr/share/doc/libpcap0.8-dev/copyright]="libpcap-dev" )
  117. for i in "${!aptarray1[@]}"
  118. do
  119.  aptinstall1 $i ${aptarray1[$i]}
  120. done
  121.  
  122.  
  123. sleep 1 #stage 2 break
  124.  
  125.  
  126. # ==============NODEJS NPM REACT =======================
  127. [ -x "$(command -v npm)" ] && printf "${Green}nodejs already installed${Nc}\n" || { sudo apt purge -y nodejs && sudo rm -f /usr/bin/npm /usr/bin/nodejs /usr/local/bin/npm /usr/local/bin/nodejs && sudo apt autoremove -y && sudo apt autoclean && curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - && sudo apt install -y nodejs && sudo rm -f /etc/apt/sources.list.d/nodesource.list && sudo apt update -y && sudo npm install -g electron-packager && printf "${Purple}nodejs Installed Successfully.${Nc}\n"; }
  128.  
  129.  
  130.  
  131. # ===================================GO LANG========================
  132.  
  133.  
  134. # installing and setting up Golang
  135. [ -d "/usr/local/go" ] && printf "\n${Green}GoLang already downloaded${Nc}\n"
  136. [ ! -d "/usr/local/go" ] && cd /tmp && wget https://go.dev/dl/go1.22.0.linux-amd64.tar.gz && tar -C /usr/local/ -xzf go1.22.0.linux-amd64.tar.gz && cd /usr/local/ && printf "export PATH=\$PATH:/usr/local/go/bin:\$HOME/go/bin \nexport GOROOT=/usr/local/go" >> ~/.bashrc && printf "export PATH=\$PATH:/usr/local/go/bin:\$HOME/go/bin \nexport GOROOT=/usr/local/go" >> /home/*/.bashrc && source ~/.bashrc && source /home/*/.bashrc
  137.  
  138. export GO111MODULE="on" #Go Module on
  139. # Installing GoLang tools
  140. printf "\n${Cyan}Installing Go Tools for user ${Red}ROOT${Nc}${Cyan} (Current User).${Nc}\n\n"
  141. sleep 1
  142. function goinstall {
  143. [ -f "$HOME/go/bin/$1" ] && printf "${Green}$1 already installed.\n${Nc}"
  144. [ ! -f "$HOME/go/bin/$1" ] &&  go install -v $2 && printf "$1 Installed Successfully.\n"
  145. }
  146. declare -A goinstallarray=( [afrog]="github.com/zan8in/afrog/v3/cmd/afrog@latest" [amass]="github.com/owasp-amass/amass/v3/...@master" [assetfinder]="github.com/tomnomnom/assetfinder@latest" [chaos]="github.com/projectdiscovery/chaos-client/cmd/chaos@latest" [crlfuzz]="github.com/dwisiswant0/crlfuzz/cmd/crlfuzz@latest" [dalfox]="github.com/hahwul/dalfox@latest" [ffuf]="github.com/ffuf/ffuf@latest" [gf]="github.com/tomnomnom/gf@latest" [git-hound]="github.com/tillson/git-hound@latest" [gobuster]="github.com/OJ/gobuster/v3@latest" [hakrawler]="github.com/hakluke/hakrawler@latest" [httprobe]="github.com/tomnomnom/httprobe@master" [httpx]="github.com/projectdiscovery/httpx/cmd/httpx@latest" [interactsh-client]="github.com/projectdiscovery/interactsh/cmd/interactsh-client@latest" [naabu]="github.com/projectdiscovery/naabu/v2/cmd/naabu@latest" [nuclei]="github.com/projectdiscovery/nuclei/v2/cmd/nuclei@latest" [qsreplace]="github.com/tomnomnom/qsreplace@latest" [waybackurls]="github.com/tomnomnom/waybackurls@latest" [subfinder]="github.com/projectdiscovery/subfinder/v2/cmd/subfinder@latest" [subzy]="github.com/LukaSikic/subzy@latest" [tlsx]="github.com/projectdiscovery/tlsx/cmd/tlsx@latest")
  147.  
  148. for i in "${!goinstallarray[@]}"
  149. do
  150.  goinstall $i ${goinstallarray[$i]}
  151. done
  152.  
  153. # Moving All tools for all users
  154. # cp /root/go/bin/* /usr/local/bin/
  155. # rm /usr/local/bin/amass
  156.  
  157.  
  158.  
  159. #Manual GoTOOLS starts here
  160.  
  161. [ -f "/usr/bin/kerbrute" ] && printf "${Nc}${Green}Ropnop Kerbrute already installed.\n${Nc}"
  162. [ ! -f "/usr/bin/kerbrute" ] && wget -q https://github.com/ropnop/kerbrute/releases/download/v1.0.3/kerbrute_linux_amd64 -O /usr/bin/kerbrute && chmod +x /usr/bin/kerbrute && printf "Ropnop Kerbrute Just Installed Successfully.\n"
  163.  
  164.  
  165. #Manual GoTOOLS ends here
  166.  
  167.  
  168. # setting gf patterns by 1ndianl33t
  169. [ -d "$HOME/.gf" ] && printf "${Green}gf patterns by 1ndianl33t already installed.\n${Nc}"
  170. [ ! -d "$HOME/.gf" ] && git clone https://github.com/1ndianl33t/Gf-Patterns ~/.gf && printf "gf patterns by 1ndianl33t Installed Successfully.\n"
  171.  
  172. [ -f "$HOME/.gf/base64.json" ] && printf "${Green}gf patterns by tomnomnom already installed.\n${Nc}"
  173. [ ! -f "$HOME/.gf/base64.json" ] && git clone https://github.com/tomnomnom/gf /tmp/gf && mv /tmp/gf/examples/* ~/.gf/ && printf "gf patterns by tomnomnom Installed Successfully.\n"
  174.  
  175.  
  176.  
  177.  
  178.  
  179. # ===================================PYTHON========================
  180.  
  181. # Upgrade pip and install tools
  182.  
  183. printf "\n${Cyan}Installing Python Tools for user ROOT.${Nc}\n"
  184.  
  185. python3 -m pip install --upgrade pip -q &> /dev/null
  186. python3 -m pip install --upgrade setuptools wheel twine check-wheel-contents -q &> /dev/null
  187.  
  188. apt install python-is-python3 -y  &> /dev/null
  189. python3 -m pip cache purge  &> /dev/null #cache removing
  190.  
  191. # List of packages to install
  192. packages=(
  193.    "sublist3r"
  194.    "hashid"
  195.    "dirsearch"
  196. )
  197.  
  198. # Function to install package if not already installed
  199. install_package() {
  200.    local package=$1
  201.    if ! python3 -c "import $package" &> /dev/null; then
  202.        printf "Installing $package...\n"
  203.        python3 -m pip install --quiet --upgrade "$package" &> /dev/null
  204.    else
  205.        printf "$package is already installed.\n"
  206.    fi
  207. }
  208.  
  209. # Install packages
  210. for pkg in "${packages[@]}"; do
  211.    install_package "$pkg"
  212. done
  213.  
  214.  
  215. python3 -m pip cache purge  &> /dev/null #cache removing
  216.  
  217. # setup error fixing, setuptools, each module needs proper setuptools version to avoid build error
  218. python3 -m pip install setuptools==60.0.0 &> /dev/null # Replace with a version that works TO AVOID SETUP.PY error
  219.  
  220. # ======PWNTools======
  221. python3 -c "import pwn" 2>/dev/null && printf "${Green}PwnTools already installed${Nc}\n" || (python3 -m pip install pwntools && printf "${Purple}PWNTools Installed Successfully\n${Nc}")
  222.  
  223. # ======wafw00f======
  224. [ -f "/usr/local/bin/wafw00f" ] && printf "${Green}Wafw00f already installed${Nc}\n"
  225. [ ! -f "/usr/local/bin/wafw00f" ] && python3 -m pip install git+https://github.com/EnableSecurity/wafw00f.git && printf "${Purple}Wafw00f Installed Successfully\n${Nc}"
  226.  
  227. # ======SQLMap======
  228. [ -d /opt/sqlmap ] && printf "${Green}SQLMap already installed${Nc}\n" || { sudo apt-get remove -y sqlmap; python3 -m pip uninstall -y sqlmap; sudo rm -f /usr/local/bin/sqlmap /usr/bin/sqlmap; sudo git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git /opt/sqlmap; echo -e '#!/bin/bash\npython3 /opt/sqlmap/sqlmap.py "$@"' | sudo tee /usr/local/bin/sqlmap > /dev/null; sudo chmod +x /usr/local/bin/sqlmap; printf "\033[0;35mSQLMap Installed Successfully\033[0m'\n";}
  229. grep -q 'MAX_NUMBER_OF_THREADS = 500' /opt/sqlmap/lib/core/settings.py || sudo sed -i 's/MAX_NUMBER_OF_THREADS = [0-9]\+/MAX_NUMBER_OF_THREADS = 500/' /opt/sqlmap/lib/core/settings.py
  230.  
  231.  
  232. # =======youtube_dl  [youtube-dl]="https://github.com/ytdl-org/youtube-dl/archive/master.zip"
  233. apt purge youtube-dl -y -qq > /dev/null 2>&1
  234. [ ! -f "/usr/local/bin/youtube-dl" ] && yes | python3 -m pip install https://github.com/ytdl-org/youtube-dl/archive/master.zip --quiet --root-user-action=ignore && echo "python3 -m youtube_dl \$@" >/usr/local/bin/youtube-dl && chmod +x /usr/local/bin/youtube-dl && printf "${Purple}Youtube-dl Installed Successfully\n${Nc}"
  235.  
  236.  
  237. # ===================================RUBY========================
  238.  
  239. # wget -O /tmp/ruby.tar.gz https://cache.ruby-lang.org/pub/ruby/3.3/ruby-3.3.4.tar.gz && tar -xzvf ruby.tar.gz -C /tmp/ruby && cd /tmp/ruby &&
  240.  
  241. [ ! -f "/usr/bin/ruby" ] && apt-get install ruby-full >/dev/null
  242. gem sources --add https://rubygems.org/ > /dev/null
  243. gem cleanup > /dev/null
  244.  
  245.  
  246. # =====Ruby Based Tools======
  247. # =====WPScan Installation======
  248. [ -f "/usr/local/bin/wpscan" ] && printf "${Green}WPScan already installed${Nc}\n"
  249. [ ! -f "/usr/local/bin/wpscan" ] && sudo apt install -y curl git libcurl4-openssl-dev make zlib1g-dev gawk g++ gcc libreadline6-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 autoconf libgdbm-dev libncurses5-dev automake libtool bison pkg-config ruby ruby-bundler ruby-dev > /dev/null && sudo gem install wpscan
  250.  
  251.  
  252. # =====metasploit installation======
  253.  
  254. if ! command -v msfconsole &> /dev/null
  255. then
  256.   curl -s https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
  257.   chmod 755 msfinstall && \
  258.   ./msfinstall
  259.   rm msfinstall
  260.   rm /etc/apt/sources.list.d/metasploit-framework.list
  261.   apt update -y && apt upgrade -y
  262. fi
  263.  
  264.  
  265.  
  266. # ===================================OTHER========================
  267.  
  268. # exploitdb and searchsploit
  269. [ ! -d "/opt/exploit-database" ] && git clone https://gitlab.com/exploit-database/exploitdb.git /opt/exploit-database && ln -sf /opt/exploit-database/searchsploit /usr/local/bin/searchsploit && printf "${Purple}exploitDB Installed Successfully\n${Nc}"
  270.  
  271. # ======NMap======
  272. [ -f "/usr/local/bin/nmap" ] && printf "${Green}NMap already installed${Nc}\n"
  273. [ ! -f "/usr/local/bin/nmap" ] && wget https://nmap.org/dist/nmap-7.94.tar.bz2 --directory-prefix=/tmp/ && cd /tmp && tar xvjf /tmp/nmap-7.94.tar.bz2 && cd /tmp/nmap-7.94 && /tmp/nmap-7.94/configure && make install -C /tmp/nmap-7.94 && cp /usr/local/bin/nmap && /usr/bin/nmap && rm -rf /tmp/nmap-7.94 && printf "${Purple}NMap Installed Successfully\n${Nc}"
  274.  
  275. # ======john======
  276. # [ ! -f "/usr/local/bin/nmap" ] && wget https://github.com/openwall/john/archive/refs/tags/1.9.0-Jumbo-1.zip --directory-prefix=/opt/ && cd /opt && unzip 1.9.0-Jumbo-1.zip
  277.  
  278. # ====JoomScan Joomla Scanner=======
  279. [ -f "/usr/local/bin/joomscan" ] && printf "${Green}JoomScan already installed${Nc}\n"
  280. [ ! -f "/usr/local/bin/joomscan" ] && git clone https://github.com/OWASP/joomscan /opt/joomscan && echo "perl /opt/joomscan/joomscan.pl \$@" >/usr/local/bin/joomscan && chmod +x /usr/local/bin/joomscan && printf "${Purple}JoomScan Installed Successfully\n${Nc}"
  281.  
  282.  
  283.  
  284. # =========RUST TOOLS=====================
  285. # ====ARES cipher tool https://github.com/bee-san/Ares =======
  286. [ -f "/usr/local/bin/ares" ] && printf "${Green}Ares already installed${Nc}\n"
  287. [ ! -f "/usr/local/bin/ares" ] && cargo install project_ares && cp /root/.cargo/bin/ares /usr/local/bin/ares && printf "${Purple}ARES Installed Successfully\n${Nc}"
  288. # ====RUSTSCAN port scanner https://github.com/RustScan/RustScan =======
  289. [ -f "/usr/local/bin/rustscan" ] && printf "${Green}Rustscan already installed${Nc}\n"
  290. [ ! -f "/usr/local/bin/rustscan" ] && cargo install rustscan && cp /root/.cargo/bin/rustscan /usr/local/bin/rustscan && printf "${Purple}RUSTSCAN Installed Successfully\n${Nc}"
  291.  
  292.  
  293. #=======ACTIVE Directory
  294. #======Impacket========
  295. #[ ! -f "/usr/bin/impacket-wmiexec" ] && sudo git clone https://github.com/SecureAuthCorp/impacket.git /tmp/impacket && sudo pip3 install -r /tmp/impacket/requirements.txt && cd /tmp/impacket && sudo pip3 install . && sudo python3 setup.py install && printf "${Purple}Impacket Installed Successfully\n${Nc}"
  296. #[ -f "/usr/bin/impacket-netview" ] && printf "${Green}ImPacker already installed${Nc}\n"
  297. #[ ! -f "/usr/bin/impacket-netview" ] && git clone https://github.com/SecureAuthCorp/impacket.git /opt/impacket && pip3 install -r /opt/impacket/requirements.txt && cd /opt/impacket && sudo pip3 install . && python3 setup.py install && printf "${Purple}Impacket Installed
  298. [ -f "/usr/bin/impacket-netview" ] && printf "${Green}ImPacker already installed${Nc}\n"  
  299. [ ! -f "/usr/bin/impacket-netview" ] && python3 -m pip install git+https://github.com/SecureAuthCorp/impacket && python3 -m pip install impacket && apt install python3-impacket -y && printf "${Purple}Impacket Installed Successfully\n${Nc}"
  300. #=====mitm6======
  301. python3 -m pip install --upgrade setuptools  &> /dev/null
  302. [ -f "/usr/local/bin/mitm6" ] && printf "${Green}MITM6 already installed${Nc}\n"
  303. [ ! -f "/usr/local/bin/mitm6" ] && rm -r /opt/mitm6 && sudo git clone https://github.com/dirkjanm/mitm6 /opt/mitm6 && sudo pip3 install -r /opt/mitm6/requirements.txt && cd /opt/mitm6 && sudo pip3 install . && sudo python3 setup.py install && printf "${Purple}Impacket Installed Successfully\n${Nc}"
  304. #======crackmapexec netexec=======
  305. [ -f "/usr/local/bin/crackmapexec" ] && printf "${Green}CrackMapExec already installed${Nc}\n"
  306. [ ! -f "/usr/local/bin/crackmapexec" ] && python3 -m pip install git+https://github.com/byt3bl33d3r/CrackMapExec && printf "${Purple}CrackMapExec Installed Successfully\n${Nc}"
  307. [ -f "/usr/local/bin/nxc" ] && printf "${Green}NetExec already installed${Nc}\n"
  308. [ ! -f "/usr/local/bin/nxc" ] && python3 -m pip install git+https://github.com/Pennyw0rth/NetExec && printf "${Purple}NetExec Installed Successfully\n${Nc}"
  309. #======evil-winrm=======
  310. [ -f "/usr/local/bin/evil-winrm" ] && printf "${Green}evil-winrm.rb already installed${Nc}\n"
  311. [ ! -f "/usr/local/bin/evil-winrm" ] && gem install evil-winrm && printf "${Purple}evil-winrm Installed Successfully\n${Nc}"
  312. #======Enum4Linux=======
  313. [ -f "/usr/bin/enum4linux" ] && printf "${Green}Enum4Linux already installed${Nc}\n"
  314. [ ! -f "/usr/bin/enum4linux" ] && curl https://raw.githubusercontent.com/CiscoCXSecurity/enum4linux/master/enum4linux.pl -s -k > /usr/bin/enum4linux && chmod +x /usr/bin/enum4linux && printf "${Purple}Enum4Linux Installed Successfully\n${Nc}"
  315. #======Certipy=======
  316. [ -f "/usr/local/bin/certipy" ] && printf "${Green}Certipy already installed${Nc}\n"
  317. [ ! -f "/usr/local/bin/certipy" ] && python3 -m pip install certipy-ad &> /dev/null && printf "${Purple}Certipy Installed Successfully\n${Nc}"
  318. #======ldap3=======
  319. package=ldap3
  320. python3 -c "import $package" &> /dev/null && printf "${Green}${package} already installed${Nc}\n" || { python3 -m pip install $package &> /dev/null && printf "${Purple}${package} Installed Successfully.${Nc}\n"; }
  321.  
  322. #======rpcclient=======
  323. [ -f "/usr/bin/rpcclient" ] && printf "${Green}rpcclient already installed${Nc}\n"
  324. [ ! -f "/usr/bin/rpcclient" ] && apt install samba-common-bin smbclient -y &> /dev/null && printf "${Purple}rpcclient Installed Successfully\n${Nc}"
  325.  
  326. #======responder=======
  327. [ -d "/opt/responder" ] && printf "${Green}Responder already installed${Nc}\n" || { git clone https://github.com/lgandx/Responder.git /opt/responder &> /dev/null &&  echo "python3 /opt/responder/Responder.py \$@" >/usr/local/bin/responder && chmod +x /usr/local/bin/responder && printf "${Purple}Responder Installed Successfully.${Nc}\n"; }
  328.  
  329.  
  330. #======bloodhound=======
  331.  
  332. #echo 'deb https://debian.neo4j.com stable 4' | sudo tee /etc/apt/sources.list.d/neo4j.list > /dev/null && apt update && systemctl start neo4j.service && git clone https://github.com/BloodHoundAD/BloodHound /opt/bloodhound && cd /opt/bloodhound && npm cache clean --force && npm install --legacy-peer-deps && npm run build:linux && mv /tmp/bloodhound/BloodHound-5.11.0 /opt/bloodhound && rm /etc/apt/sources.list.d/neo4j.list && add-apt-repository --remove "deb https://debian.neo4j.com stable 4.4" -y && apt update -y
  333.  
  334.  
  335.  
  336.  
  337. printf "\n${Cyan}Stage 3 Finished!\nOne by One Installation Finished.\nRun this script 4-5 times. ${Red}WITH REOPENING TERMINAL AS ROOT. \n${Cyan}Check for missing tools in output and manually install.${Nc}\n\n"
  338.  
  339. printf "${Green}Thank you for using.\nHackify by ZishanAdThandar\n\n${nc}"
  340.  
Add Comment
Please, Sign In to add comment