Skip to content

Commit bf6c230

Browse files
author
ekultek
committed
starting compatibility with macos
1 parent e2b26d4 commit bf6c230

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

install.sh

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,29 @@ echo "| | || | | | | |\ || | | || || | | | ";
99
echo "|__|__| \__,_| |__| \___/ \___||__| |_____| \___/|____| |__| ";
1010
echo " ";
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 "";

0 commit comments

Comments
 (0)