blackmail
1.获取存储状态信息:
Post:{"name":"statinfo","time":"2022-03-03 21:33"}
Return:{
"code":0,
"data":{
"encfilenumber":12,
"secretnumber":2,
"filesize":3686019072,
"filenumber":1277952,
"dbfilesize":0,
"dbfilenumber":0,
"writenumber":0,
"readnumber":0,
"illegalaccess":0,
"sillegalaccess":0,
"abnormalnum":0,
"dbwritenumber":0,
"dbreadnumber":0,
"dbillegalaccess":0
}}
// enable = illegalaccess = 拦截数,
// verify = sillegalaccess = 应拦截数,
// abnormal = abnormalnum = 异常行为数
2.拦截详情:
Post:{"name":"illegalaccess","delete":false}
Return content-type: application/octet-stream (字节流)
3.应拦截详情:
Post:{"name":"sillegalaccess","delete":false}
Return content-type: application/octet-stream (字节流)
4.异常行为详情:
Post:{"name":"abnormal","delete":false}
Return content-type: application/octet-stream (字节流)
5.下载学习日志:
Post:{"name":"loadlog","delete":false}
Return content-type: application/octet-stream (字节流)
6.设置异常统计规则:()
Post:{"name":"setabnormalthreshold", "threshold":1000,"interval":60}
//threshold:异常统计筏值,默认1000,在(统计间隔interval)内访问文件个数超过了n个,每多访问一个文件,异常数就加1
Return:{"code":0}
7.获取异常统计规则:()
Post:{"name":"getabnormalthreshold"}
Return:{"code":0,"data":{"threshold":1000,"interval":60}}
8.添加规则设置:(每次添加一条规则)
Post:{
"name":"saveconf2",
"id":3,
"path":[{"path":"/user3/","crypt":false}],
"pubkey":"6oBVJXZLbXKY4XWdRKCMimmqRuUwXAWGp14gRMyN5wWzQC1zfK"
}
Return:{"code":0}
9.更新规则设置:(覆盖更新所有规则)
Post:{
"name":"saverules",
"data":[{
"id":3,
"path":[{"path":"/user3/","crypt":false}],
"pubkey":"6oBVJXZLbXKY4XWdRKCMimmqRuUwXAWGp14gRMyN5wWzQC1zfK"
},
{
"id":4,
"path":[{"path":"/user4/","crypt":false}],
"pubkey":"6oBVJXZLbXKY4XWdRKCMimmqRuUwXAWGp14gRMyN5wWzQC1zfK"
}]
}
Return:{"code":0}
10.授权进程:(可授权多个进程,不更新授权列表)
Post:{
"name":"authproc",
"data":[
{"procName":"notpad.exe","inherit":false,"keyID":10},
{"procName":"foxmail.exe","inherit":false,"keyID":101}
]}
Return:{"code":0}
11.更新授权列表:
Post:{
"name":"saveauths",
"data":[
{"procName":"notpad.exe","inherit":false,"keyID":10},
{"procName":"foxmail.exe","inherit":false,"keyID":101}
]}
Return:{"code":0}