ooovenenoso/BadUSB-GPT
关于
此仓库包含集成 OpenAI GPT 的 Rubber Ducky 脚本,面向道德黑客和研究人员,将快速执行 Ducky 脚本与 GPT 的智能结合起来。请始终负责任地使用,并确保获得适当授权。
人工智能与机器学习实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- +1
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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 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— experimentalgpt-4o-minivariant.unconfirmed_experiments/PentestGPT_4o.txt— experimentalgpt-4ovariant.unconfirmed_experiments/PentestGPT_4Turbo.txt— experimentalgpt-4-turbovariant.
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
- Review a payload before running it.
- Test only in a VM or dedicated authorized lab machine.
- Record OS version, device/encoder used, model, and results.
- Move scripts from
unconfirmed_experiments/toconfirmed_experiments/only after validation.
Supporters and donations
If this project helps you, caffeine is appreciated: Buy Me a Coffee.
探索相关项目
加载中…