Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sensor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,19 +141,19 @@ fi

########################################

# Based on the OS (Debian or Redhat based), use the OS package mangaer to download required packages
# Based on the OS (Debian or Redhat based), use the OS package manager to download required packages

if [ -f /etc/debian_version ]; then
apt-get -y update &>> $logfile
print_notification "Installing required packages via apt-get.."
apt-get -y install python-dev python-openssl python-pyasn1 authbind git libcurl4-gnutls-dev libssl-dev openssh-server&>> $logfile
apt-get -y install python-dev python-openssl python-pyasn1 authbind git libcurl4-gnutls-dev libssl-dev curl libffi-dev openssh-server&>> $logfile
error_check 'Apt Package Installation'

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" &>> $logfile
python get-pip.py &>> $logfile
print_notification "Installed pip"
print_notification "Installing required python packages via pip.."
pip install pycrypto service_identity requests ipwhois twisted &>> $logfile
pip install pycrypto service_identity requests ipwhois twisted cryptography &>> $logfile
error_check 'Python pip'
iptables -t nat -A PREROUTING -p tcp --dport 22 -j REDIRECT --to-port 2222
elif [ -f /etc/redhat-release ]; then
Expand Down