5 个版本 (2 个稳定版本)
| 1.1.0 | 2024年3月29日 | 
|---|---|
| 1.0.0 | 2024年3月28日 | 
| 0.1.2 | 2024年3月26日 | 
| 0.1.1 | 2024年3月23日 | 
| 0.1.0 | 2024年3月21日 | 
在 文件系统 中排名 372
20KB
437 行
tav
基本终端防病毒
特性
- 积极监控文件系统和进程
- 自动删除黑名单文件
- 通过正则表达式监控进程(不执行操作)
- 全局黑名单进程
- 按用户禁止进程
安装
cargo install tav
示例
# Run with default config: conf/config.yaml
tav run
# Override config location (path to yaml file)
tav run --config ./config.yaml
# Load and test/debug config file
tav config --config ./config.yaml
配置示例
# Filesystem options
fs:
  # List of directories to walk & watch
  watch:
    - /etc
    - /tmp
    - /var/tmp
    - /var/www
  # Blacklist files (simple case insensitive regex)
  blacklist:
    - badfile.*
    - deleteme[0-9]+
    - dontletmelive
# Process options
ps:
  # Watch for processes (no action)
  watch:
    - python
    - sketchy
  # Blacklist processes (partial case insensitive compare)
  blacklist:
    - malwareps
    - killthisproc
  # Blacklist processes for specific users
  prohibit:
    # Don't allow www-data user to run sh or bash processes
    www-data:
      - /bin/sh
      - /bin/bash
使用方法
默认选项
# tav --help
A basic terminal anti-virus
Usage: tav [OPTIONS] [COMMAND]
Commands:
  run     Run active scanner and watcher
  config  Config test
  help    Print this message or the help of the given subcommand(s)
Options:
  -B, --no-banner  Don't show the banner
  -v, --verbose    Show additional info logs
  -h, --help       Print help
  -V, --version    Print version
运行选项
# tav run --help
Run active scanner and watcher
Usage: tav run [OPTIONS]
Options:
  -c, --config <FILE>  Path to config file (yaml) [default: conf/config.yaml]
  -h, --help           Print help
配置选项
# tav config --help
Config test
Usage: tav config [OPTIONS]
Options:
  -c, --config <FILE>  Path to config file (yaml) [default: conf/config.yaml]
  -h, --help           Print help
依赖项
~12–44MB
~694K SLoC