├── ArmitageInstaller ├── LICENSE └── README.md /ArmitageInstaller: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | ##Move to /home directory 3 | echo "Changing Directory..." 4 | cd 5 | # 6 | 7 | ##Ruby and git 8 | echo "Installing dependencies" 9 | sudo apt-get install git ruby nmap curl -y > /dev/null 10 | sudo apt install default-jdk postgresql -y > /dev/null 11 | sudo systemctl enable postgresql > /dev/null 12 | sudo systemctl start postgresql > /dev/null 13 | # 14 | 15 | ##Fix possible previous attempts to install metasploit/armitage 16 | echo "Fixing possible previous mistakes... (no offense)" 17 | echo "File does not exist errors are common here, this just means you haven't installed Metasploit previously." 18 | echo "Those errors will not impact the install." 19 | sudo apt-get remove metasploit-framework postgresql --purge -y > /dev/null 20 | sudo rm -r /opt/metasploit-framework > /dev/null 21 | sudo rm -r /opt/armitage > /dev/null 22 | sudo rm -r /usr/local/bin/armitage > /dev/null 23 | sudo rm -r /usr/local/bin/teamserver > /dev/null 24 | 25 | 26 | 27 | ##Install metasploit 28 | echo "Installing Metasploit-Framework... (This may take some time)" 29 | curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \ 30 | chmod 755 msfinstall && \ 31 | ./msfinstall 32 | echo "TYPE 'yes' AND PRESS ENTER AT THE PROMPT" 33 | echo "Then follow the remaining prompts for user/pass" 34 | msfdb init > /dev/null 35 | # 36 | 37 | ##Manually install armitage 38 | echo "Installing Armitage..." 39 | cd /opt 40 | sudo git clone https://github.com/r00t0v3rr1d3/armitage.git > /dev/null 41 | cd armitage 42 | sudo ./package.sh > /dev/null 43 | cd release/unix 44 | sudo bash -c 'printf "#!/bin/sh\njava -XX:+AggressiveHeap -XX:+UseParallelGC -jar /opt/armitage/release/unix/armitage.jar \$@\n" > armitage' 45 | sudo ln -s /opt/armitage/release/unix/armitage /usr/local/bin/armitage > /dev/null 46 | sudo perl -pi -e 's/armitage.jar/\/opt\/armitage\/release\/unix\/armitage.jar/g' /opt/armitage/release/unix/teamserver > /dev/null 47 | # 48 | 49 | ##Create database.yml file 50 | sudo sh -c "echo export MSF_DATABASE_CONFIG=~/.msf4/database.yml >> /etc/profile" 51 | sudo chown -R `whoami` ~/.msf4 52 | # 53 | 54 | ## End and close out 55 | echo "So... That should be it, run 'sudo -E armitage' to start armitage and 'sudo msfconsole' to start metasploit" 56 | # 57 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Matthew London 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Install Armitage on Linux 2 | This is a program that will install Metasploit-Framework and Armitage on to any Debian-based Linux Distro (it can also be adapted to work on Mac). 3 | This was made possible using a combination of my own code, darkoperator's, and a nightly Metasploit installer from rapid7. 4 | 5 | ## Usage 6 | To run this program and begin installation: 7 | ```bash 8 | $ chmod +x ArmitageInstaller 9 | $ sudo bash ArmitageInstaller 10 | ``` 11 | 12 | ## Using Metasploit and Armitage 13 | *After the script runs successfully* 14 | 15 | Launch Metasploit using: 16 | 17 | ```bash 18 | $ sudo msfconsole 19 | ``` 20 | 21 | Launch Armitage using: 22 | ```bash 23 | $ sudo armitage 24 | ``` 25 | 26 | ## Contributing 27 | If you would like to contribute, you may make a pull request. It will be helpful if you first open an issue describing the change that you are interested in contributing. 28 | 29 | ## License 30 | [MIT](https://choosealicense.com/licenses/mit/) 31 | 32 | ## Disclaimer 33 | This tool and the tools that it installs are meant for educational purposes ONLY. I disclaim any and all responsibility for the usage of this tool by the users of the program. 34 | --------------------------------------------------------------------------------