diff options
| author | EnderByEndera <[email protected]> | 2020-12-29 16:42:22 +0800 |
|---|---|---|
| committer | EnderByEndera <[email protected]> | 2020-12-29 16:42:22 +0800 |
| commit | 1729f503504bf67bd4c55d6d27aced58ac4dc4ea (patch) | |
| tree | 8f312680e3ece4658e45c56335534796496fcc7e /static | |
| parent | e68b143337ccd39fe35c4f8c0bb8c9c61964903d (diff) | |
[ver 0.0.2]
1. Added endpoint_test.go and fininshed all the endpoint test
2. changed some endpoint func, let the file stored in static/base
3. make port can be adjusted by user
Diffstat (limited to 'static')
| -rw-r--r-- | static/rules/commrules.json | 2 | ||||
| -rw-r--r-- | static/rules/pathrules.json | 2 | ||||
| -rw-r--r-- | static/rules/rules.json | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/static/rules/commrules.json b/static/rules/commrules.json index 519cba1..959b475 100644 --- a/static/rules/commrules.json +++ b/static/rules/commrules.json @@ -1 +1 @@ -[{"command":"wget","coefficient":0.8},{"command":"apt","coefficient":1}]
\ No newline at end of file +[{"command":"sudo","coefficient":0.1},{"command":"wget","coefficient":0.8},{"command":"apt","coefficient":0.2}]
\ No newline at end of file diff --git a/static/rules/pathrules.json b/static/rules/pathrules.json index 6e2e93d..4f8c9f0 100644 --- a/static/rules/pathrules.json +++ b/static/rules/pathrules.json @@ -1 +1 @@ -[{"Path":"/root/go/src/commdetection/rules","Coefficient":0.7}]
\ No newline at end of file +[{"Path":"/root/go/src/commdetection","Coefficient":0.5}]
\ No newline at end of file diff --git a/static/rules/rules.json b/static/rules/rules.json index 3a3c234..3339112 100644 --- a/static/rules/rules.json +++ b/static/rules/rules.json @@ -1 +1 @@ -[{"name":"RuleA","rulefunc":"EvaluateCommandRule"}]
\ No newline at end of file +[{"name":"pathrule","rulefunc":"EvaluatePathRule"}]
\ No newline at end of file |
