File tree 1 file changed +6
-1
lines changed
1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ Kunpeng是一个Golang编写的开源POC检测框架,集成了包括数据库
43
43
``` go
44
44
接口调用说明
45
45
46
- /* 发起任务,传入任务JSON ,格式为:
46
+ /* 传入需检测的目标JSON ,格式为:
47
47
{
48
48
"type": "web", //目标类型web或者service
49
49
"netloc": "http://xxx.com", //目标地址,web为URL,service格式为123.123.123.123:22
@@ -78,6 +78,10 @@ SetConfig(configJSON string)
78
78
// 开启web接口,开启后可通过web接口进行调用,webapi调用格式请查看例子:/example/call_webapi_test.py
79
79
StartWebServer (bindAddr string )
80
80
81
+ // 获取当前版本 例如:20190227
82
+ GetVersion () string
83
+
84
+
81
85
```
82
86
83
87
## 使用例子
@@ -98,6 +102,7 @@ kunpeng.GetPlugins.restype = c_char_p
98
102
kunpeng.Check.argtypes = [c_char_p]
99
103
kunpeng.Check.restype = c_char_p
100
104
kunpeng.SetConfig.argtypes = [c_char_p]
105
+ kunpeng.GetVersion.restype = c_char_p
101
106
102
107
# 获取插件信息
103
108
out = kunpeng.GetPlugins()
You can’t perform that action at this time.
0 commit comments