File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,20 +9,29 @@ echo "| | || | | | | |\ || | | || || | | | ";
99echo " |__|__| \__,_| |__| \___/ \___||__| |_____| \___/|____| |__| " ;
1010echo " " ;
1111
12- function installDebian() {
12+ function installDebian () {
1313 sudo apt-get update;
1414 sudo apt-get -y install git python2.7 python-pip postgresql apache2;
1515 pip2 install requests psutil;
1616 installMSF;
1717}
1818
19- function installFedora() {
19+ function installFedora () {
2020 sudo yum -y install git python-pip;
2121 pip2 install requests psutil;
2222 installMSF;
2323}
2424
25- function installMSF() {
25+ function installOSX () {
26+ sudo /usr/sbin/apachectl start;
27+ brew doctor;
28+ brew update;
29+ brew install postgresql;
30+ brew services start postgresql;
31+ installMSF;
32+ }
33+
34+ function installMSF () {
2635 if [[ ! " $( which msfconsole) " = * /* ]]; then
2736 curl https://raw.githubusercontent.com/rapid7/metasploit-omnibus/master/config/templates/metasploit-framework-wrappers/msfupdate.erb > msfinstall && \
2837 chmod 755 msfinstall && \
@@ -31,16 +40,19 @@ function installMSF() {
3140 fi
3241}
3342
34- function install() {
43+ function install () {
3544 case " $( uname -a) " in
3645 * Debian* |* Ubuntu* )
3746 installDebian;
3847 ;;
3948 * Fedora* )
4049 installFedora;
4150 ;;
51+ * Darwin* )
52+ installOSX;
53+ ;;
4254 * )
43- echo " Unable to detect Linux flavor ..." ;
55+ echo " Unable to detect operating system that is compatible with AutoSploit ..." ;
4456 ;;
4557 esac
4658 echo " " ;
You can’t perform that action at this time.
0 commit comments