pwnwriter/haylxon

GitHub: pwnwriter/haylxon

基于Rust和Chromium无头浏览器的高性能命令行网页截图工具,支持批量URL快速截图与丰富的自定义选项。

Stars: 430 | Forks: 20

# Haylxon 🔥🦀 `SHOOT BEFORE THE BLINK` || [`Haylxon`](https://github.com/pwnwriter/haylxon/),  一款体现 [`K1SS`](https://en.wikipedia.org/wiki/KISS_principle) 哲学的工具,利用 `chromes` 的 [`Headless`](https://en.wikipedia.org/wiki/Headless) 特性以闪电般的速度截取 `网页/URL` 的屏幕快照,这意味着你需要一个 [***`chromium based browser`***](https://en.wikipedia.org/wiki/Chromium_(web_browser) 才能使其工作。 从零开始构建,注重易用性、性能、美观的用户界面和便携性。 💖

GitHub Release Crate Release MIT LICENSE Twitter Share [![ko-fi](https://img.shields.io/badge/support-pwnwriter%20-pink?logo=kofi&logoColor=white)](https://ko-fi.com/pwnwriter) ![-----------------------------------------------------](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/902005de15020931.png) ## 目录 📔 * [`功能`](#features) * [`安装`](#installation) * [`Hxn 实战`](#action) * [`基准测试`](#benchmarking) * [`贡献`](#contribution) * [`支持`](#support) * [`另请参阅`](#see) * [`许可证`](#license) * [`常见问题`](#faq) ![-----------------------------------------------------](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/902005de15020931.png) ## 功能 🍙 - **快速**:[`Hxn`](https://github.com/pwnwriter/haylxon) 专为速度而设计,这完全归功于 [`rustlang`](https://rust-lang.org)。 🦀 - **便携**:你可以在 [`*nix`](https://en.wikipedia.org/wiki/Linux) 和 [`windows`](https://en.wikipedia.org/wiki/Microsoft_Windows) 上使用 [`haylxon`](https://github.com/pwnwriter/haylxon/)。 - **易用**:该工具设计非常人性化,选项很少,但能完成用户期望的所有必要工作。👨‍🎨 - **简单**:正如 always [`Keeping It Simple and Stupid`](https://en.wikipedia.org/wiki/KISS_principle) ## 安装 📩

🪄 Binary   - **手动**:你可以直接从 [**releases**](https://github.com/pwnwriter/haylxon/releases) 下载适合你架构的二进制文件并运行。 - **一行命令**:运行此单行脚本 ``` wget -qO- "$(curl -qfsSL "https://api.github.com/repos/pwnwriter/haylxon/releases/latest" | jq -r '.assets[].browser_download_url' | grep -Ei "$(uname -m).*$(uname -s).*musl" | grep -v "\.sha")" | tar -xzf - --strip-components=1 && ./hxn -h ```
🌼 源码   ``` git clone --depth=1 https://github.com/pwnwriter/haylxon --branch=main cd haylxon cargo build --release ``` 然后进入 `release` 目录并运行 `./hxn`,或者将 `binary` 移动到任何 `$PATH` 中以便从任何地方即时访问。
🎠 Cargo - 使用 [crates.io](https://crates.io/crates/hxn) cargo install hxn - 使用 [binstall](https://github.com/cargo-bins/cargo-binstall) cargo binstall hxn
🎠 METIS Linux   ``` sudo/doas pacman -Syyy hxn ```
💢 Arch user repository   ``` paru/yay -S haylxon-git ```
❄️ On Nix   ``` # 从源码构建并运行 nix run github:pwnwriter/haylxon # 不使用 flakes: nix-env -iA nixpkgs.haylxon # 使用 flakes: nix profile install nixpkgs#haylxon ```
![-----------------------------------------------------](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/902005de15020931.png) ## Hxn 实战 🚀 ***我在所有演示中都使用 brave 浏览器。你可以使用任何基于 chromium 的浏览器。***   -
单个 URL   hxn -b $(which brave) -u https://example.com
-
从文件读取多个 URL   hxn -b $(which brave) -f urls.txt
-
从 stdin 读取 URL   cat urls.txt | hxn -b $(which brave) --stdin
-
自定义尺寸   cat urls.txt | hxn -b $(which brave) -x 144 -y 400 --stdin
-
带端口   hxn -b $(which brave) -f urls.txt --ports 8080,8081
-
任意 JavaScript   hxn -b $(which brave) -u --javascript "javascript code here"
-
全页截图   hxn -b $(which brave) -u https://example.com --fullpage
-
截图格式   hxn -b $(which brave) -u https://example.com --screenshot-type jpeg
-
代理   hxn -b $(which brave) -u https://example.com --proxy socks5://127.0.0.1:9050
-
自定义 UA   hxn -b $(which brave) -f urls.txt --user-agent "random"
-
JSON 输出   hxn -b $(which brave) -f urls.txt --json
-
静默模式   hxn -b $(which brave) -f urls.txt --silent
-
超时和延迟   hxn -b $(which brave) -f urls.txt --timeout 200 --delay 5
-
并行标签页   hxn -b $(which brave) -f urls.txt --tabs 8
-
接受无效证书   hxn -b $(which brave) -f urls.txt --accept-invalid-certs
-
termux 中使用 hxn   安装依赖 -   pkg install tur-repo -y ; pkg install chromium -y ln -s "$PREFIX/bin/chromium-browser" "$PREFIX/bin/chromium"
## 基准测试 ⚡ 以下是与类似项目 [`gowitness`](https://github.com/sensepost/gowitness) 的比较,在我的 [**pentium processor**](https://raw.githubusercontent.com/pwnwriter/haylxon/showcase/conf.png) 上测试。 ![](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/b261c3657b020932.png) ![-----------------------------------------------------](https://static.pigsec.cn/wp-content/uploads/repos/2026/03/902005de15020931.png) ## 贡献 🤝 欢迎贡献!你可以通过 [issues](https://github.com/pwnwriter/haylxon/issues) 或 [pull requests](https://github.com/pwnwriter/haylxon/pulls) 提建议、报告 bug、修复问题。帮助编写代码文档和推广 `HAYLXON(hxn)` 都不胜感激! 😎 ## 支持 💌 我是一名正在上大学的学生。我喜欢在业余时间为 *Open Source* 工作。如果你觉得我的工具或工作对你有帮助,请考虑通过 [*KO-FI*](https://ko-fi.com/pwnwriter) 或 [*ESEWA*](https://metislinux.org/docs/donate)* (***仅限尼泊尔***) 支持我,或者留下一颗星 ⭐ ;我会非常感激你的举动 :) ## 另请参阅 👀 - [`Kanha`](https://github.com/pwnwriter/kanha) :- 一个用 rust 编写的 web-app 渗透测试套件 🦀 - [`gowitness`](https://github.com/sensepost/gowitness) :- 一个使用 Chrome Headless 的 golang 网页截图工具 ## 常见问题 🥶 - 你如何使用 `hxn`? - 我使用 hxn 来自动化任务。例如,在部署之前,我需要在 GitHub Actions 上测试一个网站。使用 hxn,我截取了屏幕截图并上传到 [`0x0.st`](https://0x0.st) 以验证其是否符合我的要求。 - 当我有一堆子__域名__需要测试时。 ## 许可证 🔐 根据 [**`MIT LICENSE`**](/LICENSE) 授权

Copyright © 2023 - present pwnwriter me ☘️

标签:Bug Bounty, Chromium, CLI, Github开源, Headless, KISS原则, Rust, WiFi技术, 可自定义解析器, 可视化界面, 域名列表, 密码管理, 截图工具, 漏洞扫描辅助, 网络安全, 网络流量审计, 网络调试, 网页截图, 自动化, 通知系统, 隐私保护