No description
- Go 99.4%
- Shell 0.6%
|
|
||
|---|---|---|
| .vscode | ||
| .workflow | ||
| cmd | ||
| comm | ||
| logger | ||
| model | ||
| router | ||
| rules | ||
| static | ||
| yaml | ||
| .gitignore | ||
| conf.yaml | ||
| go.mod | ||
| go.sum | ||
| history.sh | ||
| LICENSE | ||
| main.go | ||
| README.en.md | ||
| README.md | ||
commdetection
Description
commdetection is a command-line tool used for Linux command detection
Software Architecture
Commdetection contains the following modules
- The cmd module, which uses cobra as a command line generation tool, provides several types of subcommands and flags to facilitate user-defined modes
- The comm module includes Command Get and Command Flush functions to obtain all commands and clear invalid commands
- logger module, based on logrus custom logger and middleware, middleware is conveniently provided to the gin back-end framework to customize log analysis
- The router module, based on the gin-gonic framework, customizes the martini-like API and provides a variety of API interfaces for users to facilitate command analysis and monitoring
- model module is the base of the models
- The rules module is the core of the instruction detection system. Based on user-defined rules, two modes can be selected for instruction evaluation
- yaml module, parsing system yaml configuration file
Installation
- Use
git clone https://gitee.com/EnderByEndera/commdetectionto download this project - Define the environment variable
export set COMMDEPATH=your local clone address - Use the
go buildcommand
Instructions
- The evaluation scores of different instructions can be customized by users, and the scores of custom instructions need to be saved in a json file (API and graphical interface will be provided in the future)
- Two evaluation methods can be selected: command and path, or both
Contribution
- Fork the repository
- Create Feat_xxx branch
- Commit your code
- Create Pull Request
Gitee Feature
- You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
- Gitee blog blog.gitee.com
- Explore open source project https://gitee.com/explore
- The most valuable open source project GVP
- The manual of Gitee https://gitee.com/help
- The most popular members https://gitee.com/gitee-stars/