halilkirazkaya/arsenal-ng
关于
经典启动器的进化版。基于 Go 的高速命令库,内置 250 多份网络安全速查表。安装后即可开始进行安全测试。
安全与隐私可以做什么
- ⚡ Instant Startup - Single binary, no dependencies, launches in milliseconds
- 🔍 Smart Search - Multi-word fuzzy search across tool names, titles, tags, descriptions, and commands
- 🎨 Syntax Highlighting - Commands are color-coded with syntax highlighting for better readability
- 🏷️ Colored Tags - Each tag has a consistent, distinct color based on hash for quick visual identification
实测星标增长
- 24小时
- 0
- 7天
- +11
- 15天
- +11
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文arsenal-ng
🎯 Modern pentest command launcher written in Go!
Inspired by arsenal, rewritten from scratch with a focus on simplicity, speed and developer experience.
Installation
Option 1: Go Install
go install -v github.com/halilkirazkaya/arsenal-ng/cmd/arsenal-ng@latest
Requires Go 1.26.0 Ensure
$(go env GOPATH)/binis in your$PATH.
Option 2: Kali Linux (APT)
Kali Linux ships arsenal-ng in its official repositories. Package tracker
sudo apt install arsenal-ng
Option 3: Build from Source Code
git clone https://github.com/halilkirazkaya/arsenal-ng.git
cd arsenal-ng
make build
./bin/arsenal-ng
Alias (Optional)
You can create an alias for quick access (e.g., a):
Zsh:
echo "alias a='arsenal-ng'" >> ~/.zshrc
source ~/.zshrc
Bash:
echo "alias a='arsenal-ng'" >> ~/.bashrc
source ~/.bashrc
Platform Support
| Platform | Status | Notes |
|---|---|---|
| Linux | ✅ Fully Supported | Requires kernel 6.2+ configuration for terminal prefill (see Linux Configuration) |
| macOS | ✅ Fully Supported | Works out of the box, no additional configuration needed |
| Windows | ⚠️ WSL Only | Native (CMD/PowerShell) is unsupported. Use via WSL. |
Linux Configuration
Terminal Prefill Not Working (Linux kernel 6.2+)
arsenal-ng relies on this feature to prefill the terminal buffer. You have two options to enable this functionality, both of which come with security trade-offs.
Option 1: Enable TIOCSTI Globally
The TIOCSTI ioctl is disabled by default in newer Linux kernels for security reasons.
# Temporary (current session only)
sudo sysctl -w dev.tty.legacy_tiocsti=1
# Permanent (survives reboot)
echo "dev.tty.legacy_tiocsti=1" | sudo tee /etc/sysctl.d/99-tiocsti.conf
sudo sysctl --system
Option 2: Grant CAP_SYS_ADMIN Capability
Instead of modifying system-wide settings, you can grant the CAP_SYS_ADMIN capability specifically to the arsenal-ng binary.
CAP_SYS_ADMIN is powerful and virtually equivalent to root access. Use this method only if you fully understand the risks.
# Ensure 'setcap' is installed (Debian/Kali/Ubuntu)
sudo apt-get install libcap2-bin
# Grant the required capability to the binary
sudo setcap "cap_sys_admin+ep" $(which arsenal-ng)
Features
| Feature | Description |
|---|---|
| ⚡ Instant Startup | Single binary, no dependencies, launches in milliseconds |
| 🔍 Smart Search | Multi-word fuzzy search across tool names, titles, tags, descriptions, and commands |
| 🎨 Syntax Highlighting | Commands are color-coded with syntax highlighting for better readability |
| 🏷️ Colored Tags | Each tag has a consistent, distinct color based on hash for quick visual identification |
| 📝 Simple YAML Format | Easy to maintain and extend cheatsheets |
| 🔧 Argument System | Support for {{arg}} and {{arg|default}} placeholders with auto-completion |
| 🌐 Global Variables | Set once, use everywhere - variables auto-fill in all commands |
| 📊 Tools View | Browse all available tools with command counts in a paginated table |
| 💡 Command Hints | Interactive hints for special commands (set, unset, variables, tools) |
| ❓ Built-in Help | Press ? for comprehensive help screen with all shortcuts |
| 🖥️ Terminal Integration | Commands are written to terminal input buffer for easy editing before execution |
Usage
Quick Start
# Launch the application
arsenal-ng
# The TUI will open with all available commands
# Use arrow keys to navigate, type to search, Enter to select
The selected command will appear in your terminal input buffer, ready to edit and execute.
Basic Workflow
- Search for a command: Type keywords (e.g.,
nmap scan,ffuf) - Navigate results: Use arrow keys to browse matching commands
- Select command: Press Enter on the desired command
- Fill arguments: If the command has
{{placeholders}}, fill them in - Execute: Press Enter to write the command to your terminal
Example Session
# 1. Launch arsenal-ng
arsenal-ng
# 2. Set global variables (type in search box)
set target=10.10.10.10
# 3. Search for nmap commands
nmap
# 4. Select "nmap - syn stealth scan"
# The {{target}} placeholder is auto-filled with 10.10.10.10!
# 5. Command appears in terminal:
nmap -sS 10.10.10.10
# 6. Edit if needed, then press Enter to execute
Keyboard Shortcuts
Main Search View
| Key | Action |
|---|---|
↑ / ↓ |
Navigate up/down in the list |
Ctrl+P / Ctrl+N |
Navigate list (vim-style) |
PgUp / PgDown |
Jump one page up/down |
Enter |
Select highlighted command or execute special command |
Esc / Ctrl+C |
Exit application |
? |
Show help screen |
q |
Quit (in some views) |
Argument Input View
| Key | Action |
|---|---|
Tab |
Complete file path; with nothing to complete, move to next field |
↓ |
Move to next argument field |
Shift+Tab / ↑ |
Move to previous argument field |
Ctrl+N / Ctrl+P |
Cycle listed path completions |
Enter |
Execute command with filled arguments |
Esc |
Go back to search view |
Tools View
| Key | Action |
|---|---|
↑ / ↓ |
Navigate table rows |
← / → or h / l |
Change page (previous/next) |
Enter / Esc |
Go back to search view |
Help Views
| Key | Action |
|---|---|
Enter / Esc |
Go back to search view |
Global Variables
Set variables once and reuse them across all commands in your session. Variables automatically pre-fill argument fields in commands.
Special Commands
| Command | Description |
|---|---|
set key=value |
Set a global variable (e.g., set ip=10.10.10.10) |
unset key |
Remove a global variable |
variables |
List all currently set variables |
tools |
Show all available tools with command counts |
help |
Display comprehensive help screen |
How it works
- Type
set ip=10.10.10.10and press Enter - Select any command with
{{ip}}placeholder - The
ipfield will be pre-filled automatically with10.10.10.10 - You can still edit the pre-filled value if needed
- Variables persist throughout your session until you exit or unset them
Example Workflow
# Set common variables at the start of your session
set ip=10.10.10.10
set domain=corp.local
set user=administrator
# Now select any command - arguments will auto-fill!
# Before: nmap -sV {{ip}}
# After: nmap -sV 10.10.10.10 (auto-filled!)
# View all variables
variables
# Remove a variable when done
unset ip
Common Variables
| Variable | Description |
|---|---|
ip |
Target IP address |
domain |
Target domain |
user |
Username |
pass |
Password |
hash |
NTLM hash |
url |
Target URL |
port |
Port number |
lhost |
Local host (your IP) |
lport |
Local port |
wordlist |
Wordlist path |
output |
Output file name |
Cheat File Format
Add your own commands by creating YAML files in internal/loader/cheat-files/:
tool: mytool
tags: [recon, web, custom]
actions:
- title: mytool - basic scan
desc: Performs a basic scan against the target
command: "mytool scan {{target}}"
- title: mytool - scan with multiple arguments
desc: Advanced scan with IP, port, and output file
command: "mytool scan -t {{ip}} -p {{port|443}} -o {{output|scan.log}}"
Argument Syntax
| Syntax | Description | Example |
|---|---|---|
{{arg}} |
Required argument (user must fill) | {{ip}} |
{{arg|default}} |
Argument with default value (can be edited) | {{port|8080}} |
File Structure
- tool: Tool name (e.g.,
nmap,ffuf,gobuster) - tags: Array of tags for categorization (e.g.,
[recon, scan, network]) - actions: List of command entries
- title: Display name shown in the list
- desc: Optional description (shown in info box)
- command: Command template with
{{placeholders}}
Tips
- Use descriptive titles that make it easy to find commands
- Add relevant tags for better searchability
- Use default values for commonly used options
- Global variables will auto-fill matching argument names
Development
Prerequisites
- Go 1.26.0 or higher
- Make (optional, for using Makefile)
Building from Source
git clone https://github.com/halilkirazkaya/arsenal-ng.git
cd arsenal-ng
make build
# Binary will be in ./bin/arsenal-ng
Or build directly with Go:
go build -o bin/arsenal-ng ./cmd/arsenal-ng
Adding New Tools
- Create a new YAML file in
internal/loader/cheat-files/ - Follow the format above (see Cheat File Format)
- Rebuild:
make build
Testing
After making changes, rebuild and test:
make build
./bin/arsenal-ng
Contributing Guidelines
- Follow Go code style conventions
- Keep YAML files organized and well-documented
- Add descriptive titles and tags to commands
- Test your changes before submitting PRs
Features
This project is open source and contributions are welcome!
How to Contribute
- 🔧 Add a tool: Create a YAML file in
internal/loader/cheat-files/and submit a PR - 🐛 Report bugs: Open an issue with details about the problem
- 💡 Suggest features: Share your ideas for improvements
- 📝 Improve documentation: Help make the README and code comments better
- ⭐ Star the project: Show your support!
Adding Cheat Sheets
The easiest way to contribute is by adding new cheat sheet YAML files:
- Fork the repository
- Add your YAML file(s) to
internal/loader/cheat-files/ - Follow the existing format and style
- Test your changes locally
- Submit a pull request
See Cheat File Format for details.
Star History
Made with ❤️ and Bubble Tea
探索相关项目
加载中…