代码拉取完成,页面将自动刷新
同步操作将从 JiuZero/z0scan 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#!/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"))
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。