summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-02-011. added WebsiteRuleEndpointHEADmasterEnderByEndera
2. repaired the connection problem to mongodb
2021-01-211. simplify the model module, added more CRUD to mongodbEnderByEndera
2. deleted logger.Debugf in startRouter 3. added rule_endpoint.go to set rule module' endpoint
2021-01-121. added comm_model_test.goEnderByEndera
2. Fulfilled comm_model.go, now CRUD is almost finished 3. added CommScore CRUD in rule_model.go
2021-01-101. in root.go, delete GetLogLevel and GetFileName funcEnderByEndera
2. move Command struct to model package 3. let getCommandsFromHist not exported 4. let Commands type can be sorted by using sort.Sort 5. created mongo_conn.go and comm_mongo.go, connecting to mongo database 6. changed marshal_and_unmarshal.go to json_marshal.go 7. in yaml.go, added MongoSet struct to let user define the connection type for the mongodb 8. clean the structure of the pakcages, let the import structure be cleaned
2021-01-051. in root.go, added a new goroutine to output0.0.5EnderByEndera
output.json in 3 mins(will let user change it in the future) 2. in version.go changed version from 0.0.2 to 0.0.5 3. changed GetCommands, not GetCommands func will have no args and will call GetCommandsFromHist func 4. deleted verEndpoint and startEvaluateEndpoint func for it has no value 5. added history.sh to use history command-line tool 6. deleted router.StartRouter() in main.go
2021-01-041. Added model package, will put all the structs to theEnderByEndera
model package 2. Changed Command struct ,added arg "Flags" in the struct 3. move the marshal_and_unmarshal.go to the model pakcage 4. changed EvaluatePathRule func, return back to use the filepath.Walk func to check the score 5. added EvaluateWebsiteRule func in the rules package 6. added websiterules.json in the static/rules 7. added WebsiteRulesPath arg in the Conf struct in the yaml.go
2021-01-04revised the commentsEnderByEndera
2020-12-31changed marshal_and_unmarshal_test.goEnderByEndera
2020-12-311. update EvaluatePathRule func, make it a littleEnderByEndera
faster 2. updated all the test to fit Jenkins test
2020-12-31Changed test, deleted all ManCommandFilterEnderByEndera
and SimpleCommandFilter
2020-12-31Merge branch 'master' of https://gitee.com/enderbyendera/commdetectionEnderByEndera
2020-12-31新建 base最近......的Ender
2020-12-31changed test example to fit Jenkins testEnderByEndera
2020-12-31added base dir to strong codeEnderByEndera
2020-12-31test Jenkins buildEnderByEndera
2020-12-31Merge branch 'master' of https://gitee.com/enderbyendera/commdetectionEnderByEndera
2020-12-30changed build.yml, deleted main_test.goEnderByEndera
2020-12-30update .workflow/builld.yml.最近......的Ender
2020-12-30add builld.yml for Gitee Go 最近......的Ender
created_at: 2020-12-30 17:21:35
2020-12-30删除文件 .workflow/build.yml最近......的Ender
2020-12-30删除文件 test.go最近......的Ender
2020-12-30add test.go.最近......的Ender
2020-12-30update build.yml for Gitee Go 最近......的Ender
updated_at: 2020-12-30 17:07:28
2020-12-30merged build.ymlEnderByEndera
2020-12-30Merge branch 'master' of https://gitee.com/enderbyendera/commdetectionEnderByEndera
2020-12-30updated build.ymlEnderByEndera
2020-12-30add test.go.最近......的Ender
2020-12-30删除文件 ppt.md最近......的Ender
2020-12-30update build.yml for Gitee Go 最近......的Ender
updated_at: 2020-12-30 17:00:18
2020-12-30add ppt.md最近......的Ender
2020-12-30delete test.goEnderByEndera
2020-12-30Merge branch 'master' of https://gitee.com/enderbyendera/commdetectionEnderByEndera
merged from master
2020-12-30changed artifactRepository from default to commdetectionEnderByEndera
2020-12-30add test.go.最近......的Ender
2020-12-301. Added .workflow document and build.yml to test gitee go workflowEnderByEndera
2020-12-301. changed Command.Args's json from flags to argsEnderByEndera
2. Added some comments
2020-12-29[ver 0.0.2]EnderByEndera
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
2020-12-281. simplify root.go, let root.go only doEnderByEndera
evaluation, not storing or sth else 2. make Ver a const and exported in version.go 3. changed commflush_test.go, will only test whichCommandFilter 4. changed commandChecker func to checkOneCmd, cmdFilter to cmdsFilter 5. create endpoint.go and endpoint_test.go to store various endpoints func 6. delete all the endpoints in the router.go, added multiple routes in the manageRouter() func 7. changed marshal_and_unmarshal.go, marshal and unmarshal func now can only receive one variable, filePath will be read in the marshal and unmarshal func from yaml.go 8. changed rulestype.go, delete the yaml reading 9. fix ginmode read in the yaml.go 10. added router.Start() in the main.go
2020-12-23Changed README and README.en to introduce the projectEnderByEndera
2020-12-23Merge branch 'master' of https://gitee.com/enderbyendera/commdetectionEnderByEndera
Connect local repo to remote repo
2020-12-23added router to manage routesEnderByEndera
2020-12-23Initial commit最近......的Ender
2020-12-23Added Gin router to provide json output to the netEnderByEndera
let LogLevel exported, so it can be used by init() func in every package
2020-12-19Added command line command and flags by usingEnderByEndera
cobra, a usefule command-line development tool. Added logger by using logrus development tool
2020-12-15EvaluateSensitivePathRule is literally finished,EnderByEndera
but there are still few problems that need to be solved, such as efficiency problem, and the Benchmark test for EvaluateSensitivePathRule is still in progress. yaml reading problem is done by adding environment variable COMMDEPATH to let it understand where the start point is.
2020-12-09Finished EvaluateCommandRule, but EvaluatePathRule isroot
still in progress. use ioutil.ReadFile and WriteFile to replace os.Open and os.Read, os.Write.
2020-12-04Finished FlushCommands efficiency problem androot
passed the benchmark test, unit test
2020-12-04Finished HelpCommandFilter, SimpleCommandFiler, passed the testroot
2020-12-03Start developing preprocessing module, found RemoveCommandUsingHelp still ↵root
has some problems, and didn't pass the test