Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
lazywarden — Bitwarden 保险库自动备份工具,具有 AES-256 加密、Argon2 密钥派生、多云上传支持,以及通过 Discord、Telegram 和 Slack 发送的实时通知。 | Kitploit
工具/GitHubGitHub/querylab/lazywarden
加密/解密工具云安全
GitHubquerylab/lazywarden

lazywarden

Bitwarden 保险库自动备份工具,具有 AES-256 加密、Argon2 密钥派生、多云上传支持,以及通过 Discord、Telegram 和 Slack 发送的实时通知。

查看仓库网站
8262341年前Kitploit 审核通过

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

安全、自动化、多云 Bitwarden 备份与导入系统

Lazywarden 是一个 Python 自动化工具,用于备份和恢复你的密码库数据,包括 Bitwarden 附件。它允许你将备份上传到多个云存储服务,并在多个平台上接收通知。它还提供 AES 加密备份,并使用 Argon2 进行密钥衍生,确保数据最高安全性。

功能

  • 🔒 最高安全性: 使用 AES-256 加密和 Argon2 密钥衍生保护数据。
  • 🔄 自动备份与导入: 保持 Bitwarden 密码库最新且安全。
  • ✅ 完整性验证: SHA-256 哈希确保每次备份的数据完整性。
  • ☁️ 多云支持: 将备份存储到 Dropbox、Google Drive、pCloud、MEGA、NextCloud、Seafile、Storj、Cloudflare R2、Backblaze B2、Filebase(IPFS)以及通过 SMTP 发送。
  • 🖥️ 本地存储: 将备份保存到本地路径以获得更大控制。
  • 🔔 实时警报: 在 Discord、Telegram、Ntfy 和 Slack 上即时通知。
  • 🗓️ 日程管理: 集成 CalDAV、Todoist 和 Vikunja 管理你的日程。
  • 🐳 轻松部署: 通过 Docker Compose 快速搭建。
  • 🤖 全自动与自定义调度: 自动备份,提供灵活的调度选项(每日、每周、每月、每年)。集成 CalDAV、Todoist 和 Vikunja 实现完整跟踪及邮件通知。
  • 🔑 Bitwarden 导出至 KeePass: 将 Bitwarden 项目导出为 KeePass 数据库(kdbx),包含 TOTP 种子登录项、URI、自定义字段、卡片、身份附件和安全笔记。

平台兼容

下载工具

演示备份

系统要求

  • 操作系统:兼容主流 Linux 发行版

    • ✅ Ubuntu
    • ✅ Debian

安装

克隆仓库

root@kitploit:~
   git clone https://github.com/querylab/lazywarden.git
   cd lazywarden

配置环境变量与 Bitwarden Secrets Manager

  • 基于 .env.sample 示例文件创建 .env 文件,并填写必要变量。
root@kitploit:~
#---------------------------------------------------------------------------------------
# These are the 6 variables that are mandatory requirements for Bitwarden Secret Manager
BW_URL=f22bba66-e55d-1111-9a93-abf0dfad069e
BW_USERNAME=5eb0f2bb-1111-4e42-94f8-9333fda803cf
BW_PASSWORD=ba4dc990-1111-4d18-ae6b-0b899d513759
ENCRYPTION_PASSWORD=103c803c-1111-40d4-8578-8b3134c6e93e
ZIP_PASSWORD=2f9fb3a2-96a3-1111-990d-5d6399153e11
ZIP_ATTACHMENT_PASSWORD=b2abc553-1111-4b49-9172-1a94f9072715

#---------------------------------------------------------------------------------------

# TOTP Seed for Aegis,Authy,Ente,GoogleAuth (Optional)
BW_TOTP_SECRET=

# pCloud Credentials (Optional)
PCLOUD_USERNAME=
PCLOUD_PASSWORD=

# Mega Credentials (Optional)
MEGA_EMAIL=
MEGA_PASSWORD=

# Dropbox Credentials (Optional)
DROPBOX_ACCESS_TOKEN=
DROPBOX_REFRESH_TOKEN=
DROPBOX_APP_KEY=
DROPBOX_APP_SECRET=

# Todoist Credentials (Optional)
TODOIST_TOKEN=

# CalDAV Credentials (Optional)
CALDAV_URL=
CALDAV_USERNAME=
CALDAV_PASSWORD=

# Nextcloud Credentials (Optional)
NEXTCLOUD_URL=
NEXTCLOUD_USERNAME=
NEXTCLOUD_PASSWORD=

# Seafile Credentials (Optional)
SEAFILE_SERVER_URL=
SEAFILE_USERNAME=
SEAFILE_PASSWORD=

# Filebase Credentials (Optional)
FILEBASE_ACCESS_KEY=
FILEBASE_SECRET_KEY=

# KeePass Password (Optional)
KEEPASS_PASSWORD=

# Storj Credentials (Optional)
STORJ_ACCESS_KEY=
STORJ_SECRET_KEY=
STORJ_ENDPOINT=

# R2 Credentials (Optional)
R2_ACCESS_KEY_ID=
R2_SECRET_ACCESS_KEY=
R2_ENDPOINT_URL=

# Vikunja Credentials (Optional)
VIKUNJA_API_TOKEN=
VIKUNJA_URL=

# Backblaze B2 Credentials (Optional)
B2_APP_KEY_ID=
B2_APP_KEY=

# Google Drive Settings
GOOGLE_SERVICE_ACCOUNT_FILE=/root/lazywarden/config/bitwarden-drive-backup-google.json
GOOGLE_FOLDER_ID=

# Backup Settings
BACKUP_DIR=/root/lazywarden/backup-drive/
CRON_SCHEDULE="0 0 23 * *"
TIMEZONE=America/New_York
TIMESTAMP=2024_10_31_13_03_29

  
# API URLs for Bitwarden
API_URL=https://vault.bitwarden.com/api
IDENTITY_URL=https://vault.bitwarden.com/identity

# Organization ID
ORGANIZATION_ID=

# Access Token for Bitwarden Authentication
ACCESS_TOKEN=

# Notifications and Alerts (Optional)
TELEGRAM_TOKEN=
TELEGRAM_CHAT_ID=
DISCORD_WEBHOOK_URL=
SLACK_WEBHOOK_URL=
NTFY_URL=

# SMTP Configuration for Email Notifications (Optional)
SMTP_SERVER=mail.smtp2go.com
SMTP_PORT=8025
SMTP_USERNAME=
SMTP_PASSWORD=
EMAIL_RECIPIENT=
SENDER_EMAIL=

Ubuntu 配置

  • 运行脚本安装所有系统依赖和需求
root@kitploit:~
cd lazywarden/scripts
chmod +x setup-ubuntu-env.sh
./setup-ubuntu-env.sh
  • 运行此脚本自动安装 Docker 与 Docker-Compose:
root@kitploit:~
chmod +x docker-ubuntu.sh
./docker-ubuntu.sh
  • 首先,确保你在项目根目录 lazywarden/:
root@kitploit:~
cd .. 
source venv/bin/activate
  • 现在使用 bitwarden-cli-install.py 脚本安装 Bitwarden CLI,它将安装所有 CLI 依赖:
root@kitploit:~
python3 scripts/bitwarden-cli-install.py
  • 使用以下命令更改系统时区。将 Region/City 替换为所需时区(例如 America/New_York):
root@kitploit:~
timedatectl set-timezone Region/City
  • 例如,将时区设置为 America/New_York:
root@kitploit:~
timedatectl set-timezone America/New_York
  • 运行 Lazywarden 程序。进入 app/ 文件夹并执行 main.py:
root@kitploit:~
cd app
python3 main.py
  • 在 Ubuntu 上,如果运行 main.py 时遇到错误,可能是缺少或依赖过时。推荐运行以下命令安装所有必要依赖:
root@kitploit:~
 pip install -r requirements.txt

Debian 配置

  • 运行脚本安装所有系统依赖和需求:
root@kitploit:~
cd lazywarden/scripts
chmod +x setup-debian-env.sh
./setup-debian-env.sh
  • 运行此脚本自动安装 Docker 与 Docker-Compose:
root@kitploit:~
chmod +x docker-debian.sh
./docker-debian.sh
  • 首先,确保你在项目根目录 lazywarden/:
root@kitploit:~
cd .. 
source venv/bin/activate
  • 使用 bitwarden-cli-install.py 脚本安装 Bitwarden CLI,它将安装所有 CLI 依赖:
root@kitploit:~
python3 scripts/bitwarden-cli-install.py
  • 使用以下命令更改系统时区。将 Region/City 替换为所需时区(例如 America/New_York):
root@kitploit:~
timedatectl set-timezone Region/City
  • 例如,将时区设置为 America/New_York:
root@kitploit:~
timedatectl set-timezone America/New_York
  • 运行 Lazywarden 程序。进入 app/ 文件夹并执行 main.py:
root@kitploit:~
cd app
python3 main.py
  • 在 Debian 上,如果运行 main.py 时遇到错误,可能是缺少或依赖过时。推荐运行以下命令安装所有必要依赖:
root@kitploit:~
 pip install -r requirements.txt

树形结构

root@kitploit:~

lazywarden/
├── app/                           # This directory to contain the main application code
│   ├── backup.py                  # Backup functions
│   ├── bitwarden_client.py        # Client to interact with Bitwarden
│   ├── config.py                  # General application configurations
│   ├── imports.py                 # Handles common imports
│   ├── main.py                    # Main entry point of the application
│   ├── notifications.py           # Handles notifications
│   ├── secrets_manager.py         # Manages secrets
│   ├── import_to_bitwarden.py     # Import your bitwarden vault
│   ├── import_to_keepass.py       # Create kdbx database 
│   ├── schedule_backup.py         # For create Schedule Backup
├── config/                        # Directory for configuration files
│   ├── bitwarden-drive-backup-google.json # Configuration for Google Drive
├── scripts/                       # Directory for installation and setup scripts
│   ├── bitwarden-cli-install.py   # Script to install the Bitwarden CLI
│   ├── docker-debian.sh           # Setup script for Debian with Docker
│   ├── docker-ubuntu.sh           # Setup script for Ubuntu with Docker
│   ├── setup-debian-env.sh        # Environment setup for Debian
│   ├── setup-ubuntu-env.sh        # Environment setup for Ubuntu
│   ├── alldecrypt-zip.py          # Decrypt all zip files 
│   ├── json-only-decrypt.py       # Decrypt only json files (optional)
├── backup-drive/
│   ├── (This is where the generated backups will be stored local)
├── .env                           # File for environment variables
├── Dockerfile                     # Docker configuration file to create an application image
├── docker-compose.yml             # Docker Compose Configuration
├── entrypoint.sh                  # Entrypoint script for Docker
└── requirements.txt               # File that lists the project Python dependencies


Docker Compose

Docker 容器将每 24 小时运行一次 main.py 脚本,备份 Bitwarden 并上传到配置的云服务。成功或失败时,会向指定服务发送通知。你可以根据需要修改备份频率,例如每月、每日或每小时。

root@kitploit:~
services:
  lazywarden:
    container_name: lazywarden
    hostname: lazywarden
    image: querylab/lazywarden:latest
    env_file:
      - .env
    environment:
      UNLOCK_VAULT: "true"
    volumes:
      - /root/lazywarden/config:/root/lazywarden/config
      - /root/lazywarden/backup-drive:/root/lazywarden/backup-drive/
      - /root/lazywarden/.env:/app/.env
    restart: unless-stopped

运行 Docker Compose

  • 运行 Docker 容器
root@kitploit:~
docker compose up -d

Dockerfile

  • Dockerfile 设置环境、安装依赖并将必要文件复制到容器中。

docker-compose.yml

  • docker-compose.yml 文件定义了 lazywarden 服务,并设置了环境变量和持久化存储卷。

安全建议:在本地环境中运行

  • 为了安全,请仅在个人网络内的本地环境中运行此项目。这能显著降低外部攻击风险,确保敏感数据和凭据在受控环境中得到保护。

📢 警告

重要说明
  • Bitwarden 帐户中的大附件(例如 MP4 视频、MP3 文件、高分辨率照片)可能导致备份过程耗时更长。将这些较大的备份上传到云服务也会更慢。相比之下,本地存储和数据导入要快得多。
  • 附件数量多会显著延长总备份时间。将文件发送到 Dropbox、Google Drive、pCloud、MEGA、Seafile、Nextcloud、Storj、Cloudflare R2、Backblaze B2 或 Filebase 时,可能会出现上传错误。如果出现错误,重试备份通常可以解决问题。
  • 程序正常运行需要配置 Bitwarden Secret Manager。即使你没有帐户,也必须设置一个随机变量以确保正常运行。
  • 该程序兼容自托管 Bitwarden 和 Vaultwarden 实例。
  • Vaultwarden 和自托管 Bitwarden 的导入功能尚未在 Bitwarden API 中实现。
  • CalDAV 日历集成仅在以下提供商上测试过:Baikal、Fruux、Memotoo、Posteo 和 SOGo。
  • 定期轮换存储在 Bitwarden Secret Manager 中的密钥以增强安全性。
  • 若切换 Bitwarden 帐户,请先运行 bw logout 命令后再登录新帐户。
  • 我使用 root 用户运行程序。

动机

  • 我创建 Lazywarden 是为了自动进行 Bitwarden 备份,无需手动操作或暴露敏感数据。在尝试了复杂的工具之后,我利用 Bitwarden Secret Manager 安全地管理密钥。Lazywarden 自动备份并上传到多个云服务(Google Drive、Dropbox、pCloud、MEGA、Seafile、Nextcloud、Filebase、Storj、Cloudflare R2、Backblaze B2),并与 Telegram、Discord、Ntfy、Slack、Todoist、Vikunja 和 CalDAV 集成,用于通知和跟踪。其突出功能是能够将加密备份还原回 Bitwarden,使备份管理变得简单、安全且高效。

  • 如果你喜欢这个项目,请考虑给它一个 ⭐