Skip to content

Commit ba2d404

Browse files
committedFeb 27, 2019
文档增加 GetVersion接口说明
1 parent d4e8960 commit ba2d404

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed
 

‎README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Kunpeng是一个Golang编写的开源POC检测框架,集成了包括数据库
4343
```go
4444
接口调用说明
4545

46-
/* 发起任务,传入任务JSON,格式为:
46+
/* 传入需检测的目标JSON,格式为:
4747
{
4848
"type": "web", //目标类型web或者service
4949
"netloc": "http://xxx.com", //目标地址,web为URL,service格式为123.123.123.123:22
@@ -78,6 +78,10 @@ SetConfig(configJSON string)
7878
// 开启web接口,开启后可通过web接口进行调用,webapi调用格式请查看例子:/example/call_webapi_test.py
7979
StartWebServer(bindAddr string)
8080

81+
// 获取当前版本 例如:20190227
82+
GetVersion() string
83+
84+
8185
```
8286

8387
## 使用例子
@@ -98,6 +102,7 @@ kunpeng.GetPlugins.restype = c_char_p
98102
kunpeng.Check.argtypes = [c_char_p]
99103
kunpeng.Check.restype = c_char_p
100104
kunpeng.SetConfig.argtypes = [c_char_p]
105+
kunpeng.GetVersion.restype = c_char_p
101106

102107
# 获取插件信息
103108
out = kunpeng.GetPlugins()

0 commit comments

Comments
 (0)