MIT License

项目介绍

ooovenenoso/BadUSB-GPT 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 274 个 Star、21 次 Fork。

仓库全名
ooovenenoso/BadUSB-GPT
开源许可证
MIT License
Star 数
274
Fork 数
21

README 摘要

BadUSB-GPT: Rubber Ducky Meets GPT BadUSB-GPT contains USB Rubber Ducky payload experiments that generate an AI-assisted defensive assessment report from basic Windows system inventory. Ethical-use only: run these payloads only on systems you own or where you have explicit written permission. The project is intended for lab work, security education, and authorized defensive assessments. Current build Restores the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

BadUSB-GPT 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 274 个 Star。

BadUSB-GPT 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 BadUSB-GPT 的源码?

可以直接克隆仓库:git clone https://github.com/ooovenenoso/BadUSB-GPT.git;安装与运行步骤见仓库 README。

BadUSB-GPT 最近还在维护吗?

仓库最近一次更新为 5月25日,当前没有未关闭的 Issue;Star 数为 274,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

This repo houses Rubber Ducky scripts integrated with OpenAI's GPT. Designed for ethical hackers and researchers, it merges quick Ducky executions with GPT's intelligence. Always use responsibly and with proper permissions.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
590
价值分
198
活跃状态
活跃

语言占比

Python

README

BadUSB-GPT: Rubber Ducky Meets GPT

BadUSB x GPT

BadUSB-GPT contains USB Rubber Ducky payload experiments that generate an AI-assisted defensive assessment report from basic Windows system inventory.

Ethical-use only: run these payloads only on systems you own or where you have explicit written permission. The project is intended for lab work, security education, and authorized defensive assessments.

Current build

  • Restores the original plug-and-play style: API key, OpenAI base URL, and model are hardcoded directly in each payload.
  • Keeps the committed API key as the safe placeholder PASTE_OPENAI_API_KEY_HERE; replace it privately before authorized lab use.
  • Uses the hardcoded OpenAI-compatible base URL https://api.openai.com/v1.
  • Keeps safer report generation: AI output and inventory are HTML-escaped before being written to disk.
  • Maintained as an owner-controlled project by ooovenenoso.

Payloads

  • PentestGPT.txt — main demo payload, default model: gpt-4.1-mini.
  • unconfirmed_experiments/PentestGPT_4oMini.txt — experimental gpt-4o-mini variant.
  • unconfirmed_experiments/PentestGPT_4o.txt — experimental gpt-4o variant.
  • unconfirmed_experiments/PentestGPT_4Turbo.txt — experimental gpt-4-turbo variant.

Requirements

  • Authorized Windows test machine or VM.
  • USB Rubber Ducky-compatible device/encoder.
  • PowerShell available on the test machine.
  • A valid OpenAI API key inserted directly in the payload before use.

Edit the payload line:

$apiKey = 'PASTE_OPENAI_API_KEY_HERE'

Replace only the placeholder value locally/private. Do not commit a real API key.

The base URL and model are also hardcoded in the payload:

$baseUrl = 'https://api.openai.com/v1'
$model = 'gpt-4.1-mini'

What the payload collects

The payload gathers a compact defensive inventory:

  • OS caption, version, architecture, computer name, and last boot time.
  • Five most recent hotfix IDs.
  • Enabled network adapter descriptions.
  • Enabled firewall profiles.
  • Enabled local user names.
  • Top five process names by CPU.

The inventory is sent to OpenAI to generate a defensive hardening report. Review your organization’s data-handling policy before use.

Local maintenance

Regenerate all payload variants:

python scripts/generate_payloads.py

Validate payload syntax and placeholder safety:

python scripts/validate_payloads.py

Confirmation workflow

  1. Review a payload before running it.
  2. Test only in a VM or dedicated authorized lab machine.
  3. Record OS version, device/encoder used, model, and results.
  4. Move scripts from unconfirmed_experiments/ to confirmed_experiments/ only after validation.

Supporters and donations

If this project helps you, caffeine is appreciated: Buy Me a Coffee.

评论

暂无评论