工具集成说明
1、已有工具改造非常简单,把之前的工具转换为cli启动,接受一个文件路径参数。
2、需要把原来的任务输入改装一下,通过调用函数方法获取任务。
3、(可选)如果有任务调度图,可以把 节点、边(执行流向)分别保存一下,如果没有可以不保存。
4、把之前的任务日志,调用函数方法保存一下。
5、把之前的漏洞信息,调用函数方法保存一下。
6、把工具编译成一个二进制文件,目标平台:Linux x86_64 架构,或者提供代码和 dockerfile 文件。
安装使用
pip install tasklite
import sys
from tasklite import model, task
if __name__ == '__main__':
args = sys.argv[1:]
db_path = args[0]
model.init_db(db_path, echo=True)
t = task.get_task()
print(t.name, t.target, t.download_dir, t.test_type)
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tasklite-0.0.3.tar.gz
(5.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tasklite-0.0.3.tar.gz.
File metadata
- Download URL: tasklite-0.0.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e5769fdcc002c7d6cd081ca3efca33ca9201218c3f5efe656ca35f2e930a10af
|
|
| MD5 |
c157fba023766423bfe892f78c810def
|
|
| BLAKE2b-256 |
0b5c7e2cca34fe8661c6bbda1da09ed8ca2dedc4c2ba8b81625f773a2022897a
|
File details
Details for the file tasklite-0.0.3-py3-none-any.whl.
File metadata
- Download URL: tasklite-0.0.3-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ad1815cdedf43e62f37d30a2f5812c1bca9f05103150a59f72ecd840e09653d2
|
|
| MD5 |
5a890d78b6869838bc68c41c94ea1742
|
|
| BLAKE2b-256 |
c2655ae6ca067afda97dd8c9cd34e0aef0234a58fc3ae038a182a898b5ca6387
|