├── .gitignore ├── README.md ├── setup.sh ├── arch.sh ├── kalitools.txt └── ubuntu.sh /.gitignore: -------------------------------------------------------------------------------- 1 | strap.sh -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Kali on Linux 2 | 3 | Kali on Linux(KOL) is a script to install kali tools on Ubuntu, Debian, Arch linux and derivatives 4 | 5 | ## Usage 6 | 7 | 8 | ```bash 9 | git clone https://github.com/Andrea055/kali-on-ubuntu.git 10 | cd kali-on-ubuntu 11 | sudo chmod a+x setup.sh 12 | ./setup.sh 13 | ``` 14 | 15 | ## Bug and problem 16 | Some packages missing, I think are about 20, maybe, if i can, i add those in future. 17 | Remember, you don't have Kali Linux kernel with this script, install only tools. 18 | 19 | ## Contributing 20 | Pull requests are welcome. For add missing packages, please open an issue first so I can try the change. 21 | 22 | ## Tested 23 | Tested on Ubuntu 18.04(Zorin OS), 20.04, 21.10 24 | Tested on Debian 11 25 | 26 | ## License 27 | [MIT](https://choosealicense.com/licenses/mit/) 28 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | ARCH=0 2 | DEBIAN=0 3 | 4 | function error() { 5 | echo "Error: $1" >&2 6 | exit 1 7 | } 8 | 9 | function os_type { 10 | # check file system 11 | if [ -d /etc/pacman.d ]; then 12 | ARCH=1 13 | return 0 14 | fi 15 | 16 | # check package manager 17 | if command -v apt-get &> /dev/null; then 18 | DEBIAN=1 19 | return 0 20 | fi 21 | 22 | # check /etc/os-release 23 | if [ -f /etc/os-release ]; then 24 | OS=$(grep -i "ID=" /etc/os-release | cut -d= -f2) 25 | if [[ $OS == "debian" || $OS == "ubuntu" ]]; then 26 | DEBIAN=1 27 | elif [[ $OS == "arch" ]]; then 28 | ARCH=1 29 | else 30 | error "Unable to determine distribution." 31 | fi 32 | return 0 33 | fi 34 | 35 | error "Unable to determine distribution." 36 | return 1 37 | } 38 | 39 | os_type # Get OS type 40 | 41 | if [ $ARCH = 1 ]; then 42 | echo "Arch Linux or derivated detected" 43 | source ./arch.sh 44 | install_arch 45 | else if [ $DEBIAN = 1 ]; then 46 | echo "Debian or derivated detected" 47 | source ./ubuntu.sh 48 | install_ubuntu 49 | else 50 | error "Unsupported OS" 51 | fi 52 | fi -------------------------------------------------------------------------------- /arch.sh: -------------------------------------------------------------------------------- 1 | function error() { 2 | echo "Error: $1" >&2 3 | exit 1 4 | } 5 | 6 | function install_metasploit() { 7 | git clone https://github.com/threat9/routersploit 8 | cd routersploit 9 | python3 -m pip install -r requirements.txt 10 | cd /tmp 11 | curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall 12 | chmod +x msfinstall 13 | sudo ./msfinstall 14 | cd 15 | } 16 | 17 | function add_repos() { 18 | echo "Installing blackarch repo..." 19 | curl -O https://blackarch.org/strap.sh 20 | sudo sh -c "$(pwd)/strap.sh" 21 | } 22 | 23 | function find_aur_helper() { 24 | helpers=("yay" "paru" "pamac" "pikaur" "aurutils" "trizen") 25 | 26 | for helper in "${helpers[@]}"; do 27 | if command -v "$helper" &> /dev/null; then 28 | echo "$helper" 29 | return 0 30 | fi 31 | done 32 | 33 | # if no helper 34 | error "No AUR helper found." >&2 35 | } 36 | 37 | function update_all_packages() { 38 | helper=$(find_aur_helper) 39 | 40 | if [ "$helper" != "No AUR helper found." ]; then 41 | $helper -Syu 42 | return 0 43 | else 44 | error "Error: AUR helper not found. Please install one." 45 | fi 46 | } 47 | 48 | function install_packages() { 49 | helper=$(find_aur_helper) 50 | 51 | if [ "$helper" != "No AUR helper found." ]; then 52 | $helper -S --needed - < kalitools.txt 53 | else 54 | error "AUR helper not found. Please install one." 55 | fi 56 | } 57 | 58 | function install_arch() { 59 | echo -n "Do you have blackarch repository ? [y/N]: " 60 | read ANS 61 | 62 | case $ANS in 63 | [Yy]* ) 64 | # Yes option 65 | ;; 66 | * ) 67 | add_repos 68 | update_all_packages 69 | # No option 70 | ;; 71 | esac 72 | 73 | echo -n "Do you install kali tools ? [Y/n]: " 74 | read ANS 75 | 76 | case $ANS in 77 | "" | [Yy]* ) 78 | # Yes option 79 | install_packages 80 | echo "routersploit find in /(scriptlocation)/routerspoit, to run it write python3 rsf.py" 81 | ;; 82 | * ) 83 | # No option 84 | ;; 85 | esac 86 | } 87 | -------------------------------------------------------------------------------- /kalitools.txt: -------------------------------------------------------------------------------- 1 | aircrack-ng 2 | wpscan 3 | nmap 4 | ace 5 | ipv6toolkit 6 | exploitdb 7 | arp-scan 8 | dmitry 9 | ike-scan 10 | legion 11 | maltego 12 | netdiscover 13 | p0f 14 | recon-ng 15 | spiderfoot 16 | dnsenum 17 | dnsmap 18 | dnsrecon 19 | dnstracer 20 | dnswalk 21 | fierce 22 | maltego 23 | spiderfoot 24 | twofi 25 | 0trace 26 | irpas 27 | netmask 28 | nbtscan 29 | smbmap 30 | smtp-user-enum 31 | swaks 32 | braa 33 | ssldump 34 | sslh 35 | sslscan 36 | tlssled 37 | arping-th 38 | fping 39 | hping 40 | masscan 41 | unicornscan 42 | xprobe2 43 | lbd 44 | wafw00f 45 | lynis 46 | nikto 47 | dhcpig 48 | iaxflood 49 | siege 50 | t50 51 | cisco-auditing-tool 52 | cisco-global-exploiter 53 | cisco-ocs 54 | cisco-torch 55 | cisco-router-config 56 | yersinia 57 | bed 58 | siparmyknife 59 | spike 60 | enumiax 61 | iaxflood 62 | rtp-flood 63 | sctpscan 64 | sipp 65 | burpsuite 66 | commix 67 | httrack 68 | paros 69 | skipfish 70 | sqlmap 71 | webscarab 72 | apache-users 73 | cutycapt 74 | dirb 75 | dirbuster 76 | uniscan 77 | wfuzz 78 | jboss-autopwn 79 | joomscan 80 | plecost 81 | davtest 82 | jsql-injection 83 | padbuster 84 | skipfish 85 | whatweb 86 | xsser 87 | mdb 88 | oscanner 89 | sidguesser 90 | sqldict 91 | sqlmap 92 | sqlninja 93 | tnscmd10g 94 | cewl 95 | crunch 96 | hashcat 97 | john 98 | medusa 99 | ophcrack 100 | rainbowcrack 101 | rcracki-mt 102 | wordlists 103 | hydra 104 | patator 105 | thc-pptp-bruter 106 | chntpw 107 | cmospwd 108 | fcrackzip 109 | hashid 110 | hash-identifier 111 | ophcrack 112 | samdump2 113 | sipcrack 114 | sucrack 115 | smbmap 116 | rsmangler 117 | chirp-next 118 | cowpatty 119 | fern-wifi-cracker 120 | kismet 121 | mdk3 122 | mfoc 123 | mfterm-git 124 | pixiewps 125 | wifite 126 | hackrf 127 | bluelog 128 | blueranger 129 | bluesnarfer 130 | btscanner 131 | redfang 132 | spooftooph 133 | mfcuk 134 | asleap 135 | cowpatty 136 | eapmd5pass 137 | wifi-honey 138 | bytecode-viewer 139 | clang 140 | dex2jar 141 | edb-debugger 142 | jadx 143 | javasnoop 144 | radare2 145 | beef 146 | sqlmap 147 | termineter 148 | driftnet 149 | ettercap-gtk 150 | macchanger 151 | mitmproxy 152 | netsniff-ng 153 | responder 154 | wireshark-qt 155 | darkstat 156 | dnschef 157 | dsniff 158 | hexinject 159 | sslsniff 160 | tcpflow 161 | rebind 162 | sniffjoke 163 | sslsplit 164 | tcpreplay 165 | yersinia 166 | backdoor-factory 167 | nishang 168 | proxychains-ng 169 | weevely 170 | cymothoa 171 | sbd 172 | laudanum 173 | iodine 174 | miredo 175 | proxytunnel 176 | pwnat 177 | sslh 178 | stunnel 179 | udptunnel 180 | autopsy 181 | binwalk 182 | chkrootkit 183 | foremost 184 | galleta 185 | hashdeep 186 | dc3dd 187 | dcfldd 188 | extundelete 189 | missidentify 190 | reglookup 191 | ddrescue 192 | guymager 193 | pdfid 194 | pdf-parser 195 | foremost 196 | magicrescue 197 | pasco 198 | pev 199 | recoverjpeg 200 | rifiuti2 201 | safecopy 202 | scalpel 203 | scrounge-ntfs 204 | cutycapt 205 | pipal 206 | recordmydesktop -------------------------------------------------------------------------------- /ubuntu.sh: -------------------------------------------------------------------------------- 1 | function install_ubuntu() { 2 | sudo sh -c "echo 'deb https://http.kali.org/kali kali-rolling main non-free contrib' > /etc/apt/sources.list.d/kali.list" 3 | wget 'https://archive.kali.org/archive-key.asc' 4 | sudo apt-key add archive-key.asc 5 | sudo apt update 6 | sudo sh -c "echo 'Package: *'>/etc/apt/preferences.d/kali.pref; echo 'Pin: release a=kali-rolling'>>/etc/apt/preferences.d/kali.pref; echo 'Pin-Priority: 50'>>/etc/apt/preferences.d/kali.pref" 7 | sudo apt update 8 | sudo apt install kali-menu -y 9 | sudo apt-get install git python3-pip -y 10 | git clone https://github.com/threat9/routersploit 11 | cd routersploit 12 | python3 -m pip install -r requirements.txt 13 | cd /tmp 14 | curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall 15 | chmod +x msfinstall 16 | sudo ./msfinstall 17 | cd 18 | sudo apt install aircrack-ng -y 19 | sudo apt install wpscan -y 20 | sudo apt install nmap -y 21 | sudo apt install ace -y 22 | sudo apt install ipv6toolkit -y 23 | sudo apt install exploitdb -y 24 | sudo apt install arp-scan -y 25 | sudo apt install dmitry -y 26 | sudo apt install ike-scan -y 27 | sudo apt install legion -y 28 | sudo apt install maltego -y 29 | sudo apt install netdiscover -y 30 | sudo apt install p0f -y 31 | sudo apt install recon-ng -y 32 | sudo apt install spiderfoot -y 33 | sudo apt install dnsenum -y 34 | sudo apt install dnsmap -y 35 | sudo apt install dnsrecon -y 36 | sudo apt install dnstracer -y 37 | sudo apt install dnswalk -y 38 | sudo apt install fierce -y 39 | sudo apt install maltego -y 40 | sudo apt install spiderfoot -y 41 | sudo apt install twofi -y 42 | sudo apt install 0trace -y 43 | sudo apt install irpas -y 44 | sudo apt install netmask -y 45 | sudo apt install nbtscan -y 46 | sudo apt install smbmap -y 47 | sudo apt install smtp-user-enum -y 48 | sudo apt install swaks -y 49 | sudo apt install braa -y 50 | sudo apt install ssldump -y 51 | sudo apt install sslh -y 52 | sudo apt install sslscan -y 53 | sudo apt install tlssled -y 54 | sudo apt install arping -y 55 | sudo apt install fping -y 56 | sudo apt install hping3 -y 57 | sudo apt install masscan -y 58 | sudo apt install unicornscan -y 59 | sudo apt install xprobe2 -y 60 | sudo apt install lbd -y 61 | sudo apt install wafw00f -y 62 | sudo apt install lynis -y 63 | sudo apt install nikto -y 64 | sudo apt install dhcpig -y 65 | sudo apt install iaxflood -y 66 | sudo apt install siege -y 67 | sudo apt install t50 -y 68 | sudo apt install cisco-auditing-tool -y 69 | sudo apt install cisco-global-exploiter -y 70 | sudo apt install cisco-ocs -y 71 | sudo apt install cisco-torch -y 72 | sudo apt install copy-router-config -y 73 | sudo apt install yersinia -y 74 | sudo apt install bed -y 75 | sudo apt install siparmyknife -y 76 | sudo apt install spike -y 77 | sudo apt install enumiax -y 78 | sudo apt install iaxflood -y 79 | sudo apt install rtpflood -y 80 | sudo apt install rtpinsertsound -y 81 | sudo apt install rtpmixsound -y 82 | sudo apt install sctpscan -y 83 | sudo apt install sipp -y 84 | sudo apt install burpsuite -y 85 | sudo apt install commix -y 86 | sudo apt install httrack. -y 87 | sudo apt install paros -y 88 | sudo apt install skipfish -y 89 | sudo apt install sqlmap -y 90 | sudo apt install webscarab -y 91 | sudo apt install apache-users -y 92 | sudo apt install cutycapt -y 93 | sudo apt install dirb -y 94 | sudo apt install dirbuster -y 95 | sudo apt install uniscan -y 96 | sudo apt install wfuzz -y 97 | sudo apt install jboss-autopwn -y 98 | sudo apt install joomscan -y 99 | sudo apt install plecost -y 100 | sudo apt install davtest -y 101 | sudo apt install jsql -y 102 | sudo apt install padbuster -y 103 | sudo apt install skipfish -y 104 | sudo apt install whatweb -y 105 | sudo apt install xsser -y 106 | sudo apt install mdb-sql -y 107 | sudo apt install oscanner -y 108 | sudo apt install sidguesser -y 109 | sudo apt install sqldic -y 110 | sudo apt install sqlmap -y 111 | sudo apt install sqlninja -y 112 | sudo apt install tnscmd10g -y 113 | sudo apt install cewl -y 114 | sudo apt install crunch -y 115 | sudo apt install hashcat -y 116 | sudo apt install john -y 117 | sudo apt install medusa -y 118 | sudo apt install ophcrack -y 119 | sudo apt install rainbowcrack -y 120 | sudo apt install rcracki-mt -y 121 | sudo apt install wordlists -y 122 | sudo apt install hydra -y 123 | sudo apt install patator -y 124 | sudo apt install thc-pptp-bruter -y 125 | sudo apt install chntpw -y 126 | sudo apt install cmospwd -y 127 | sudo apt install fcrackzip -y 128 | sudo apt install hashid -y 129 | sudo apt install hash-identifier -y 130 | sudo apt install ophcrack -y 131 | sudo apt install samdump2 -y 132 | sudo apt install sipcrack -y 133 | sudo apt install sucrack -y 134 | sudo apt install smbmap -y 135 | sudo apt install rsmangler -y 136 | sudo apt install statsgen -y 137 | sudo apt install chirp -y 138 | sudo apt install cowpatty -y 139 | sudo apt install fern-wifi-cracker -y 140 | sudo apt install kismet -y 141 | sudo apt install mdk3 -y 142 | sudo apt install mfoc -y 143 | sudo apt install mfterm -y 144 | sudo apt install pixiewps -y 145 | sudo apt install wifite -y 146 | sudo apt install hackrf -y 147 | sudo apt install bluelog -y 148 | sudo apt install blueranger -y 149 | sudo apt install bluesnarfer -y 150 | sudo apt install btscanner -y 151 | sudo apt install redfang -y 152 | sudo apt install spooftooph -y 153 | sudo apt install mfcuk -y 154 | sudo apt install asleap -y 155 | sudo apt install cowpatty -y 156 | sudo apt install eapmd5pass -y 157 | sudo apt install wifi-honey -y 158 | sudo apt install bytecode-viewer -y 159 | sudo apt install clang -y 160 | sudo apt install dex2jar -y 161 | sudo apt install edb-debugger -y 162 | sudo apt install jadx -y 163 | sudo apt install javasnoop -y 164 | sudo apt install radare2 -y 165 | sudo apt install beef -y 166 | sudo apt install sqlmap -y 167 | sudo apt install termineter -y 168 | sudo apt install driftnet -y 169 | sudo apt install ettercap-graphical -y 170 | sudo apt install macchanger -y 171 | sudo apt install mitmproxy -y 172 | sudo apt install netsniff-ng -y 173 | sudo apt install responder -y 174 | sudo apt install wireshark -y 175 | sudo apt install darkstat -y 176 | sudo apt install dnschef -y 177 | sudo apt install dsniff -y 178 | sudo apt install hexinject -y 179 | sudo apt install sslsniff -y 180 | sudo apt install tcpflow -y 181 | sudo apt install rebind -y 182 | sudo apt install sniffjoke -y 183 | sudo apt install sslsplit -y 184 | sudo apt install tcpreplay -y 185 | sudo apt install yersinia -y 186 | sudo apt install backdoor-factory -y 187 | sudo apt install nishang -y 188 | sudo apt install proxychains4 -y 189 | sudo apt install weevely -y 190 | sudo apt install cymothoa -y 191 | sudo apt install sbd -y 192 | sudo apt install laudanum -y 193 | sudo apt install iodine -y 194 | sudo apt install miredo -y 195 | sudo apt install proxytunnel -y 196 | sudo apt install pwnat -y 197 | sudo apt install sslh -y 198 | sudo apt install stunnel4 -y 199 | sudo apt install udptunnel -y 200 | sudo apt install autopsy -y 201 | sudo apt install binwalk -y 202 | sudo apt install chkrootkit -y 203 | sudo apt install foremost -y 204 | sudo apt install galleta -y 205 | sudo apt install hashdeep -y 206 | sudo apt install dc3dd -y 207 | sudo apt install dcfldd -y 208 | sudo apt install extundelete -y 209 | sudo apt install missidentify -y 210 | sudo apt install pst-utils -y 211 | sudo apt install reglookup -y 212 | sudo apt install ddrescue -y 213 | sudo apt install guymager -y 214 | sudo apt install pdfid -y 215 | sudo apt install pdf-parser -y 216 | sudo apt install foremost -y 217 | sudo apt install magicrescue -y 218 | sudo apt install pasco -y 219 | sudo apt install pev -y 220 | sudo apt install recoverjpeg -y 221 | sudo apt install rifiuti -y 222 | sudo apt install rifiuti2 -y 223 | sudo apt install safecopy -y 224 | sudo apt install calpel -y 225 | sudo apt install scrounge-ntfs -y 226 | sudo apt install cutycapt -y 227 | sudo apt install pipal -y 228 | sudo apt install recordmydesktop -y 229 | echo "routersploit find in /(scriptlocation)/routerspoit, to run it write python3 rsf.py" 230 | } 231 | 232 | 233 | --------------------------------------------------------------------------------