1 Star 0 Fork 0

Heisenberg/archerysec

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
setup.bat 1.30 KB
一键复制 编辑 原始数据 按行查看 历史
@echo off
where python >nul 2>&1 && (
deactivate >nul 2>&1
echo [INSTALL] Found Python3
pip >nul 2>&1 && (
echo [INSTALL] Found pip
python -m pip install --no-cache-dir --upgrade pip
) || (
echo [ERROR] pip is not available in PATH
pause
exit /b
)
if exist "C:\\Program Files\\OpenSSL-Win64\\bin\\openssl.exe" (
echo [INSTALL] Found OpenSSL executable
) else (
echo [ERROR] OpenSSL executable not found in [C:\\Program Files\\OpenSSL-Win64\\bin\\openssl.exe]
echo [INFO] Install OpenSSL - https://slproweb.com/download/Win64OpenSSL-1_1_1g.exe
pause
exit /b
)
echo [INSTALL] Using venv
rmdir "venv" /q /s >nul 2>&1
python -m venv ./venv
.\venv\Scripts\activate
python -m pip install --upgrade pip wheel
.\venv\Scripts\activate && python -m pip install git+https://github.com/archerysec/openvas_lib.git
set LIB=C:\Program Files\OpenSSL-Win64\lib;%LIB%
set INCLUDE=C:\Program Files\OpenSSL-Win64\include;%INCLUDE%
echo [INSTALL] Installing Requirements
pip install --no-cache-dir -r requirements.txt
echo [Static] Copy static files
python manage.py collectstatic
echo [INSTALL] Migrating Database
python manage.py makemigrations
python manage.py migrate
) || (
echo [ERROR] python3 is not installed
)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/Jesse3692/archerysec.git
[email protected]:Jesse3692/archerysec.git
Jesse3692
archerysec
archerysec
master

搜索帮助