Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hids-authomation-installer #2127

Open
wants to merge 35 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
88e7cbd
Create README.MD
nu11secur1ty Jun 6, 2024
8c3c7d7
Create installer.sh
nu11secur1ty Jun 6, 2024
ae65d36
Update installer.sh
nu11secur1ty Jun 6, 2024
7b23443
Update installer.sh
nu11secur1ty Jun 6, 2024
decdf48
Update installer.sh
nu11secur1ty Jun 6, 2024
dc2171a
Update README.MD
nu11secur1ty Jun 6, 2024
94379a9
Update installer.sh
nu11secur1ty Jun 6, 2024
2254d33
Update installer.sh
nu11secur1ty Jun 6, 2024
8a319c6
Update installer.sh
nu11secur1ty Jun 6, 2024
db1708c
Update installer.sh
nu11secur1ty Jun 6, 2024
6cc9234
Update installer.sh
nu11secur1ty Jun 6, 2024
e79dd50
Update README.MD
nu11secur1ty Jun 6, 2024
b1a54ed
Update installer.sh
nu11secur1ty Jun 6, 2024
61f120c
Update installer.sh
nu11secur1ty Jun 6, 2024
83ed961
Update README.MD
nu11secur1ty Jun 6, 2024
d031303
Update README.MD
nu11secur1ty Jun 6, 2024
42b37f1
Update README.MD
nu11secur1ty Jun 6, 2024
e9c5a27
Update installer.sh
nu11secur1ty Jun 6, 2024
aa45468
Update installer.sh
nu11secur1ty Jun 6, 2024
d8ab58a
Update README.MD
nu11secur1ty Jun 6, 2024
b99fd3a
Update ossec-hids-automation-installer
nu11secur1ty Jun 6, 2024
d35deea
Update README.MD
nu11secur1ty Jun 6, 2024
df0080f
Update installer.sh
nu11secur1ty Jun 6, 2024
0b00eb5
Update installer.sh
nu11secur1ty Jun 6, 2024
2050901
Update installer.sh
nu11secur1ty Jun 6, 2024
eb66247
Update installer.sh
nu11secur1ty Jun 6, 2024
e028b07
Update installer.sh
nu11secur1ty Jun 6, 2024
aebc676
Update installer.sh
nu11secur1ty Jun 6, 2024
fd851ce
Rename installer.sh to ossec-hids-automation-installer.sh
nu11secur1ty Jun 6, 2024
fa30124
Update ossec-hids-automation-installer.sh
nu11secur1ty Jun 6, 2024
d36b5a5
Update README.MD
nu11secur1ty Jun 6, 2024
f4bcaa1
Rename ossec-hids-automation-installer.sh to ossec-hids-automation-in…
nu11secur1ty Jun 6, 2024
103029c
Update README.MD
nu11secur1ty Jun 6, 2024
300aac2
Update README.MD
nu11secur1ty Jun 6, 2024
6044af9
Update ossec-hids-automation-installer.3.7.0.sh
nu11secur1ty Jun 6, 2024
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
12 changes: 12 additions & 0 deletions ossec-hids-automation-installer/README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### nu11ossecautomation

- Online install for Ubuntu 20.04 | ossec-hids-3.7.0
### WARNING: It was tested only on Ubuntu 20.04!

```
wget https://raw.githubusercontent.com/nu11secur1ty/ossec-hids/master/ossec-hids-automation-installer/ossec-hids-automation-installer.3.7.0.sh && bash ossec-hids-automation-installer.3.7.0.sh
```
### Windows agents:
```URL
https://updates.atomicorp.com/channels/atomic/windows/
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/usr/bin/bash
# nu11secur1ty 2024

apt update && sudo apt upgrade
apt install -y php php-cli php-common libapache2-mod-php apache2-utils sendmail inotify-tools apache2 build-essential gcc make wget tar zlib1g-dev libpcre2-dev libpcre3-dev unzip libz-dev libssl-dev libpcre2-dev libevent-dev libsystemd0 libsystemd-dev build-essential
systemctl enable apache2
systemctl start apache2
a2enmod rewrite
systemctl restart apache2
wget https://github.com/ossec/ossec-hids/archive/3.7.0.tar.gz
tar -xvzf 3.7.0.tar.gz
cd ossec-hids-3.7.0/
bash install.sh
### UI
rm -rf /var/www/html/*
cd /tmp/
git clone https://github.com/ossec/ossec-wui.git
mv /tmp/ossec-wui /var/www/html/
cd /var/www/html/ossec-wui
chown -R www-data:www-data /var/www/html/ossec-wui/
chmod -R 755 /var/www/html/ossec-wui/
systemctl restart apache2
target=$(hostname -I | awk '{print $1}')
echo "Open your browser on: HTTP://$target/ossec-wui/"

### Clean himself ;)
cd
rm -rf 3.7.0.*
mv ossec-hids-automation-installer.3.7.0.sh /tmp/ && rm -rf /tmp/ossec-hids-automation-installer.3.7.0.sh

exit 0;