Skip to content

Instantly share code, notes, and snippets.

View infosanity's full-sized avatar

Andrew Waite infosanity

  • InfoSanity
  • NorthEast UK
View GitHub Profile
@infosanity
infosanity / cowrie-ec2_user-data.sh
Last active January 2, 2020 19:58
AWS EC2 User-Data for basic Cowrie Build
#!/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