From 02a3e9a5f6e60a2327ba239c9508542dfca7ed57 Mon Sep 17 00:00:00 2001 From: Nitesh639 Date: Mon, 6 Mar 2023 16:02:33 +0530 Subject: [PATCH] mac install.sh file added --- mac_install.sh | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 mac_install.sh diff --git a/mac_install.sh b/mac_install.sh new file mode 100644 index 000000000..801332827 --- /dev/null +++ b/mac_install.sh @@ -0,0 +1,38 @@ +#!/bin/bash + +brew update +echo "[+] Installing zeek ...\n" +brew install cmake make gcc flex bison libpcap openssl@1.1 python swig zlib go +brew install zeek + +# create a symlink to zeek so that slips can find it +echo "[+] Executing 'ln -s /usr/local/Cellar/zeek/4.1.0/bin/zeek /usr/local/bin/bro'\n" +sudo ln -s /usr/local/Cellar/zeek/4.1.0/bin/zeek /usr/local/bin/bro +echo "[+] Executing 'export PATH=$PATH:/usr/local/Cellar/zeek/4.1.0/bin'\n" +export PATH=$PATH:/usr/local/Cellar/zeek/4.1.0/bin +echo "[+] Adding /usr/local/Cellar/zeek/4.1.0/bin to ~/.bash_profile\n" +echo "export PATH=$PATH:/usr/local/Cellar/zeek/4.1.0/bin" >> ~/.bash_profile + +echo "[+] Installing Slips dependencies ...\n" +brew install python redis wireshark nfdump whois yara libnotify + +echo "[+] Executing 'python3 -m pip install --upgrade pip'\n" +python3 -m pip install --upgrade pip +echo "[+] Executing 'pip3 install -r requirements.txt'\n" +pip3 install -r requirements.txt +echo "[+] Executing pip3 install --ignore-installed six\n" +pip3 install --ignore-installed six + +# For Kalipso +echo "[+] Installing nodejs and npm dependencies" +brew install node +cd ./modules/kalipso && npm install +cd ../.. + +echo "[+] Installing p2p4slips\n" +# build the pigeon and Add pigeon to path +git submodule init && git submodule update && cd p2p4slips && go build && export PATH=$PATH:$(pwd) >> ~/.bash_profile && cd .. + +# running slips for the first time +echo "[+] Executing 'redis-server --daemonize yes'\n" +redis-server --daemonize yes \ No newline at end of file