No description
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Go 99.4%
  • Shell 0.6%
Find a file
EnderByEndera 2b7e099e1f 1. added WebsiteRuleEndpoint
2. repaired the connection problem to mongodb
2021-02-01 07:35:15 +08:00
.vscode Added command line command and flags by using 2020-12-19 17:07:13 +08:00
.workflow test Jenkins build 2020-12-31 09:41:44 +08:00
cmd 1. added WebsiteRuleEndpoint 2021-02-01 07:35:15 +08:00
comm 1. added WebsiteRuleEndpoint 2021-02-01 07:35:15 +08:00
logger added router to manage routes 2020-12-23 14:42:36 +08:00
model 1. added WebsiteRuleEndpoint 2021-02-01 07:35:15 +08:00
router 1. added WebsiteRuleEndpoint 2021-02-01 07:35:15 +08:00
rules 1. added WebsiteRuleEndpoint 2021-02-01 07:35:15 +08:00
static 1. added comm_model_test.go 2021-01-12 17:12:35 +08:00
yaml 1. added WebsiteRuleEndpoint 2021-02-01 07:35:15 +08:00
.gitignore 1. in root.go, added a new goroutine to output 2021-01-05 18:12:47 +08:00
conf.yaml 1. added WebsiteRuleEndpoint 2021-02-01 07:35:15 +08:00
go.mod 1. in root.go, delete GetLogLevel and GetFileName func 2021-01-10 17:37:12 +08:00
go.sum 1. in root.go, delete GetLogLevel and GetFileName func 2021-01-10 17:37:12 +08:00
history.sh 1. in root.go, delete GetLogLevel and GetFileName func 2021-01-10 17:37:12 +08:00
LICENSE Initial commit 2020-12-23 14:34:39 +08:00
main.go 1. in root.go, delete GetLogLevel and GetFileName func 2021-01-10 17:37:12 +08:00
README.en.md 1. in root.go, delete GetLogLevel and GetFileName func 2021-01-10 17:37:12 +08:00
README.md 1. in root.go, delete GetLogLevel and GetFileName func 2021-01-10 17:37:12 +08:00

commdetection

Description

commdetection is a command-line tool used for Linux command detection

Software Architecture

Commdetection contains the following modules

  1. The cmd module, which uses cobra as a command line generation tool, provides several types of subcommands and flags to facilitate user-defined modes
  2. The comm module includes Command Get and Command Flush functions to obtain all commands and clear invalid commands
  3. logger module, based on logrus custom logger and middleware, middleware is conveniently provided to the gin back-end framework to customize log analysis
  4. 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
  5. model module is the base of the models
  6. The rules module is the core of the instruction detection system. Based on user-defined rules, two modes can be selected for instruction evaluation
  7. yaml module, parsing system yaml configuration file

Installation

  1. Use git clone https://gitee.com/EnderByEndera/commdetection to download this project
  2. Define the environment variable export set COMMDEPATH=your local clone address
  3. Use the go build command

Instructions

  1. 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)
  2. Two evaluation methods can be selected: command and path, or both

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/