Skip to content

Commit

Permalink
chore(): update version to 1.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
13ph03nix committed Aug 26, 2021
1 parent e398976 commit a4f63fa
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 15 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,3 +244,8 @@ Cross-platform shell code generation
-----------------
* fix the timeout problem in shell mode leads to confusing results
* made some improvements with network address related issues

# version 1.8.1
-----------------
* fix check_requires() can not handle dependent version correctly # 208
* update docs
20 changes: 10 additions & 10 deletions docs/CODING.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def _attack(self):

和验证模式一样,攻击成功后需要把攻击得到结果赋值给 result 变量

**注意:如果该 PoC 没有攻击模式,可以在 \_attack() 函数下加入一句 return self.\_verify() 这样你就无需再写 \_attack 函数了。**
**注意如果该 PoC 没有攻击模式,可以在 \_attack() 函数下加入一句 return self.\_verify() 这样你就无需再写 \_attack 函数了。**

6. 编写shell模式 [**new**]

Expand Down Expand Up @@ -321,14 +321,14 @@ from pocsuite3.api import OptString, OptDict, OptIP, OptPort, OptBool, OptIntege

| 字段类型 | 字段描述 | 参数解释 | 相关例子 |
| ---------- | ------------------------------------------------------------ | ------------------------------------------------------------ | -------- |
| OptString | 接收字符串类型数据 | default:传入一个默认值<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptDict | 接收一个字典类型参数,在选择上如果选择key,调用时会调用对应的value | default:传入一个默认值<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptIP | 接收IP类型的字符串 | default:传入一个默认值<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptPort | 接收端口类型参数 | default:传入一个默认值<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptBool | 接收布尔类型参数 | default:传入一个默认值<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptInteger | 接收整数类型参数 | default:传入一个默认值<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptFloat | 接收浮点数类型参数 | default:传入一个默认值<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptItems | 接收list类型参数 | default:传入一个默认值<br />selectd:默认选择<br />descript:字段描述,默认为空<br />require:是否必须,默认False | |
| OptString | 接收字符串类型数据 | default: 传入一个默认值<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |
| OptDict | 接收一个字典类型参数,在选择上如果选择key,调用时会调用对应的value | default: 传入一个默认值<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |
| OptIP | 接收IP类型的字符串 | default: 传入一个默认值<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |
| OptPort | 接收端口类型参数 | default: 传入一个默认值<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |
| OptBool | 接收布尔类型参数 | default: 传入一个默认值<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |
| OptInteger | 接收整数类型参数 | default: 传入一个默认值<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |
| OptFloat | 接收浮点数类型参数 | default: 传入一个默认值<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |
| OptItems | 接收list类型参数 | default: 传入一个默认值<br />selectd: 默认选择<br />descript: 字段描述,默认为空<br />require: 是否必须,默认False | |

需要注意的是,`console` 模式支持所有的参数类型,`cli` 模式除了`OptDict``OptBool``OptItems` 类型外都支持。

Expand Down Expand Up @@ -693,7 +693,7 @@ install_requires = ['pycryptodome:Crypto']

#### PoC 结果返回规范<div id="resultstandard"></div>

result 为 PoC 返回的结果数据类型,result 返回值要求返回完整的一项,暂不符合 result 字段的情况,放入 extra 字段中,此步骤必须尽可能的保证运行者能够根据信息 复现/理解 漏洞,若果步骤复杂,在取证信息中说明。例如:
result 为 PoC 返回的结果数据类型,result 返回值要求返回完整的一项,暂不符合 result 字段的情况,放入 extra 字段中,此步骤必须尽可能的保证运行者能够根据信息 复现/理解 漏洞,若果步骤复杂,在取证信息中说明。例如

```python
# 返回数据库管理员密码
Expand Down
2 changes: 1 addition & 1 deletion manpages/poc-console.1
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ is maintained at:
.I https://github.com/knownsec/pocsuite3/blob/master/docs/USAGE.md
.PP
.SH VERSION
This manual page documents pocsuite version 1.8.0
This manual page documents pocsuite version 1.8.1
.SH AUTHOR
.br
(c) 2014-2021 by Knownsec 404 Team
Expand Down
2 changes: 1 addition & 1 deletion manpages/pocsuite.1
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ is maintained at:
.I https://github.com/knownsec/pocsuite3/blob/master/docs/USAGE.md
.PP
.SH VERSION
This manual page documents pocsuite version 1.8.0
This manual page documents pocsuite version 1.8.1
.SH AUTHOR
.br
(c) 2014-2021 by Knownsec 404 Team
Expand Down
2 changes: 1 addition & 1 deletion pocsuite3/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
__title__ = 'pocsuite'
__version__ = '1.8.0'
__version__ = '1.8.1'
__author__ = 'Knownsec Security Team'
__author_email__ = '[email protected]'
__license__ = 'GPL 2.0'
Expand Down
2 changes: 1 addition & 1 deletion pocsuite3/lib/core/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def check_requires(data):
for r in requires:
r = r.replace(' ', '')
install_name, import_name = (r.split(':') + [''])[0:2]
t = re.split('>|<|=', install_name)
t = re.split('>|<|=|~', install_name)
if len(t) > 1:
install_name = t[0]
if not import_name:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def find_packages(where='.'):

setup(
name='pocsuite3',
version='1.8.0',
version='1.8.1',
url='http://pocsuite.org',
description='Pocsuite is an open-sourced remote vulnerability testing framework developed by the Knownsec Security Team.',
long_description="""\
Expand Down

0 comments on commit a4f63fa

Please sign in to comment.