Codebase list python-faraday / debian/3.7.0-0kali1 install.sh
debian/3.7.0-0kali1

Tree @debian/3.7.0-0kali1 (Download .tar.gz)

install.sh @debian/3.7.0-0kali1raw · history · blame

#!/bin/bash
###
## Faraday Penetration Test IDE
## Copyright (C) 2018  Infobyte LLC (http://www.infobytesec.com/)
## See the file 'doc/LICENSE' for the license information
###

if [ $EUID -ne 0 ]; then
 echo "You must be root."
 exit 1
fi

case `uname` in
  Linux )
     LINUX=1
     type apt-get >/dev/null 2>&1 && { package_manager='apt-get'; }
     type apt >/dev/null 2>&1 && { package_manager='apt'; }
     ;;
  Darwin )
     DARWIN=1
     type brew >/dev/null 2>&1 && { package_manager='brew'; }
     ;;
esac


if [ "$package_manager" == "apt-get" ]
then
    apt-get update

    #Install community dependencies
    for pkg in build-essential python-setuptools python-pip python-dev libpq-dev libffi-dev gir1.2-gtk-3.0 gir1.2-vte-2.91 python-gobject zsh curl python-psycopg2 postgresql; do
        apt-get install -y $pkg
    done
fi

pip2 install -r requirements_server.txt
pip2 install -r requirements.txt

echo "You can now run Faraday, enjoy!"