Docker?
Any chance this would work inside docker? I've been looking for something exactly like this.
I took a stab at it, work in progress.
This is a comment
FROM ubuntu:14.04 MAINTAINER Kate Smith [email protected] RUN apt-get update && apt-get -y install git openssh-server grep ssh-client RUN rm /bin/sh && ln -s /bin/bash /bin/sh RUN start ssh
RUN git clone https://github.com/mgaulton/Autosnort.git RUN rm -rf CentOS Debian Kali BT Offline *.txt *.pdf RUN chmod a+x 'Autosnort/Autosnort - Ubuntu/autosnort-ubuntu-10-30-2015.sh'
RUN sed -i "s/^root_mysql_pass=''/root_mysql_pass='<PASS>'/" 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf' RUN sed -i 's/^o_code=/o_code=<OINK>/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf' RUN sed -i 's/^snort_mysql_pass=/snort_mysql_pass=<PASS>/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf' RUN sed -i 's/^reboot_choice=1/reboot_choice=2/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf' RUN sed -i 's/^snort_iface=eth1/snort_iface=enp5s0/' 'Autosnort/Autosnort - Ubuntu/full_autosnort.conf'
WORKDIR 'Autosnort/Autosnort - Ubuntu/'
RUN './autosnort-ubuntu-10-30-2015.sh'
Remove build dependencies.
RUN cd /tmp &&
yum -y remove $(diff prebuild-rpms postbuild-rpms | awk '/^>/ { print $2 }')
Cleanup.
RUN yum clean all &&
rm -rf /var/log/* || true
rm -rf /var/tmp/*
rm -rf /tmp/*