Conversation
|
I'm currently testing on Ubuntu 18.04 and centos 6.9 to make sure I didn't break anything |
|
I’ll try and give this a test today! Oh, and the Readme could be updated as well to mention support for RHEL/Centos. |
|
Installed on an ubuntu 18.04.3 box and everything seems to be working! Tomorrow I'll check on Centos6.9 and report back |
|
So... The installation completes on centos 6.10 but the uwsgi and honeymap services fail. The thing is... I tried the current installer (the one on the pwnlandia master branch) and that one doesn't even finish (it fails on the mongodb install), so... this PR is still progress? I will check if I can find why those services fail on my branch. |
|
Any news on this PR? |
|
@marcocen sorry, was under the impression you were still working on it. I'll give it a test run this week hopefully. |
|
@d1str0 Any update on if MHN works on CentOS 7? My install fails when trying to install mongodb. Cheers. |
|
@marcocen on a fresh centos box I don't have the firewall-cmd command. Maybe it needs to be installed? If so, we should add it to the script. This was on default Centos7 AMI in AWS. |
|
I've got Cowrie working on CentOS 7 and successfully sending attack data back to MHN by amending the Ubuntu deploy script. Make sure selinux is disabled and also install authbind: wget https://s3.amazonaws.com/aaronsilber/public/authbind-2.1.1-0.1.x86_64.rp rpm -Uvh https://s3.amazonaws.com/aaronsilber/public/authbind-2.1.1-0.1.x86_64.rpm Amended script: #!/bin/bash set -e if [ $# -ne 2 ] yum update server_url=$1 yum -y install epel-release pip install -U supervisor sed -i 's/#Port/Port/g' /etc/ssh/sshd_config cd /opt git checkout 34f8464 cat > /opt/cowrie/requirements.txt <=17.1.0 virtualenv cowrie-env #env name has changed to cowrie-env on latest version of cowrie wget $server_url/static/registration.txt -O registration.sh cd etc chown -R cowrie:users /opt/cowrie/ sed -i 's/AUTHBIND_ENABLED=no/AUTHBIND_ENABLED=yes/' bin/cowrie cat > /etc/supervisord.conf <<EOF `` |
|
@d1str0 I've been working on other projects but I'll try to get this PR ready. I was testing this install on a centos7 minimal install, but it seems that AWS uses an even more barebones install. I will add a check to either install firewalld if it's missing or to skip the firewall config entirely, maybe even give you the choice of what to do if it comes to that. I also noticed that @neil-fox mentioned something about supervisor, I'll check that too. |
|
No worries, @marcocen we've all been busy :P For Debian/Ubuntu, I offer a prompt on whether or not to set up uwf (the built in firewall) for the user, allowing 3000 (attack map), 10000 (hpfeeds), 80(http), 443(https), and 22(ssh). |
|
I've added a check to see if firewalld is installed, and in case it isn't ask the user if they want to install it. I couldn't reproduce @neil-fox report that supervisord doesn't get installed, maybe the issue is that /usr/local/bin isn't in root's PATH by default. I also couldn't reproduce the issue with mhn-celery-worker, that file gets chowned in the install_mhnserver script by a line introduced 4 years ago... One little thing that I added was that the installation script no longer asks the user if they want to configure ELK integration or UFW if the environment isn't a debian-like one, that seemed unnecesary to me. Oh, just so that we cna all be on the same page, I'm using the bento/centos-7 vagrant box for all my testing. |
|
Will give it a test soon. Thanks for also giving your testing env. |
|
Oh, and good call for ELK/UFW. Same probably goes for Splunk but I'm not sure. |
|
I also moved the splunk script inside that Debian-like block. |
Added support for centos 7.
Tried to be as unintrusive as possible with regards to the other OSs installation procedures, only adding general changes where I think they wouldn't break anything.