Skip to content

Instantly share code, notes, and snippets.

Avatar

Andrew Waite infosanity

  • InfoSanity
  • NorthEast UK
View GitHub Profile
@infosanity
infosanity / cowrie-ec2_user-data.sh
Last active Jan 2, 2020
AWS EC2 User-Data for basic Cowrie Build
View cowrie-ec2_user-data.sh
#!/bin/bash
# based on https://cowrie.readthedocs.io/en/latest/INSTALL.html
apt -y update
DEBIAN_FRONTEND=noninteractive apt -y upgrade
apt -y install git python-virtualenv libssl-dev libffi-dev build-essential libpython3-dev python3-minimal authbind virtualenv
adduser --disabled-password --gecos "" cowrie
sudo -H -u cowrie /bin/bash -s << EOF >> /home/cowrie/heredoc.out
cd /home/cowrie/
git clone http://github.com/cowrie/cowrie
cd /home/cowrie/cowrie