Skip to content

Instantly share code, notes, and snippets.

@tomaszklim
Created May 6, 2019 12:13
Show Gist options
  • Save tomaszklim/f568f7be71cba2514344a13944ac753f to your computer and use it in GitHub Desktop.
Save tomaszklim/f568f7be71cba2514344a13944ac753f to your computer and use it in GitHub Desktop.
#!/bin/sh
git clone https://github.com/CISOfy/lynis /opt/lynis
cd /opt/lynis && /opt/lynis/lynis audit system --cronjob --quiet |grep -v custom.prf
grep warning /var/log/lynis-report.dat |egrep -v "(CONT-8104|KRNL-5830|NETW-2705)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment