1 Star 0 Fork 1

Admin/z0scan

forked from JiuZero/z0scan 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.py 1.67 KB
一键复制 编辑 原始数据 按行查看 历史
JiuZero 提交于 2025-04-19 15:13 +08:00 . v2025.4.19
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# JiuZero 2025/4/11
import setuptools
import os, io
from lib.core.settings import VERSION, SITE
import shutil
import tempfile
current_dir = os.path.abspath(os.path.dirname(__file__))
with io.open(os.path.join(current_dir, "README.md"), encoding="utf-8") as fd:
desc = fd.read()
with io.open(os.path.join(current_dir, "requirements.txt"), encoding="utf-8") as fd:
install_requires = fd.readlines()
install_requires = [i.strip() for i in install_requires]
env_dir = tempfile.mkdtemp(prefix="z0scan-install-")
shutil.copytree(os.path.abspath(os.getcwd()), os.path.join(env_dir, "z0scan"))
os.chdir(env_dir)
setuptools.setup(
name='z0scan',
version=VERSION,
author='JiuZero',
author_email='jiuzer0@qq.com',
description='An efficient active/passive scanning tool for vulnerability detection in risk assets | 一款风险资产漏洞检测与辅助性的高效主、被动扫描工具.',
long_description=desc,
packages=setuptools.find_packages(),
entry_points={"console_scripts": ["z0scan=z0scan.z0scan:main"]},
include_package_data=True,
package_data={"z0scan": ["*", "data/*", "certs/*", "output/*", "data/dict/*", "doc/*"]},
long_description_content_type='text/markdown',
keywords='z0scan, security, scanner, web, python3',
platforms=['any'],
url=SITE,
python_requires='>=3.0',
install_requires=install_requires,
classifiers=(
"Topic :: Security",
"Programming Language :: Python :: 3",
"License :: OSI Approved :: GNU General Public License v2 (GPLv2)",
)
)
dist_dir = os.path.join(env_dir, "dist")
shutil.move(dist_dir, os.path.join(current_dir, "dist"))
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Biz-Spring_0/z0scan.git
git@gitee.com:Biz-Spring_0/z0scan.git
Biz-Spring_0
z0scan
z0scan
master

搜索帮助