https://github.com/mycodeself/tripwire-policy-adjust
Simple script to adjust tripwire policy
https://github.com/mycodeself/tripwire-policy-adjust
Last synced: 12 months ago
JSON representation
Simple script to adjust tripwire policy
- Host: GitHub
- URL: https://github.com/mycodeself/tripwire-policy-adjust
- Owner: mycodeself
- Created: 2018-10-07T20:07:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-10-07T20:09:20.000Z (over 7 years ago)
- Last Synced: 2025-03-15T14:22:42.208Z (over 1 year ago)
- Language: Python
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tripwire policy adjust
A simple script for clean the default tripwire policy removing the nonexistent directories/files
## Usage
First we need to generate a file output with nonexistent files/directories with tripwire
```sh
$ tripwire -m i > /tmp/ouput
```
Give execution permission to script
```sh
$ chmod +x twpa.py
```
Run script
```sh
$ ./twpa.py /tmp/output /etc/tripwire/twpol.txt
```
Note: the script uses two params, first one the output file generated by tripwire and second one with policy to adjust.
Example output:
```sh
$ ./twpa.py /tmp/output /etc/tripwire/twpol.txt
175 nonexistent files found in twpol.txt
Creating new policy file...
File /etc/tripwire/twpol.txt.adjusted was created successfully.
```
## I do not give any warranty, use under your responsibility
### Feel free to use this as you want!