#screenshot #bug-bounty #osint #recon #command-line #pwn #command-line-tool

app hxn

Blazingly fast tool to grab screenshots of url/webpages from terminal

12 releases (1 stable)

1.0.0 Jun 20, 2024
0.1.10 Jan 9, 2024
0.1.9 Nov 3, 2023
0.1.8 Oct 17, 2023
0.1.3 Mar 28, 2023

#79 in Operating systems

MIT license

33KB
552 lines

Haylxon 🔥🦀

SHOOT BEFORE THE BLINK || Haylxon,  A tool embodying the K1SS philosophy that allows you to take screenshots of webpages/URLs at lightning-fast speeds using chromes Headless feature, means, you'd be needing a chromium based browser for it to work.

Built from the ground up for ease of use, performance, beautiful ui and portability in mind. 💖

GitHub Release Crate Release MIT LICENSE Twitter Share ko-fi

-----------------------------------------------------

Table of contents 📔

-----------------------------------------------------

Features 🍙

  • Fast: Hxn is designed to be fast, all credits goes to the rustlang. 🦀
  • Portable: You can use haylxon on both *nix & windows.
  • Ease: This tool is designed to be very user friendly as there are very few options but does all the required works that one expects.👨‍🎨
  • Simple: As always Keeping It Simple and Stupid

Installation 📩

🪄 Binary  
  • Manual: You can directly download the binary from releases of your arch and run it.
  • One liner: Run this one liner script
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
🌼 Source  
git clone --depth=1 https://github.com/pwnwriter/haylxon --branch=main
cd haylxon
cargo build --release 

Then go to release dir and ./hxn or move the binary to your any $PATH for instant access from anywhere.

🎠 Cargo
  • Using crates.io

    cargo install hxn
    
  • Using binstall

    cargo binstall hxn
    

    Note ⚠️ This requires a working setup of rust/cargo & binstall.

🚩 METIS Linux  
sudo/doas pacman -Syyy hxn
💢 Arch user repository  
paru/yay -S haylxon-git

-----------------------------------------------------

Hxn in action 🚀

I'm using brave browser for all the demonstration. You can use any chromium based browsers.  

  • Take screenshots of single url 🔗  
    hxn -b $(which brave) -u https://example.com
    

    screenshot_2023-11-03_12-28-18

  • Take screenshots of multiple urls 📂  
    hxn -b $(which brave) -f urls.txt
    

    screenshot_2023-11-03_12-36-09

  • Show fancy output ⚙️  
    hxn -b $(which brave) -f urls.txt --verbose
    

    screenshot_2023-11-03_12-29-16

  • Read urls from stdin ⚓  
    cat urls.txt | hxn -b $(which brave) --stdin
    

    stdin

  • Define x/y dimentions 🐀  
    cat urls.txt | hxn -b $(which brave) -x 144 -y 400 --stdin
    

    dimention

  • Define your ports ✳️  
    hxn -b $(which brave) -f urls.txt --ports 8080,8081
    

    screenshot_2024-01-09_20-36-27

  • Arbitary javascript 🏺  
    hxn -b $(which brave) -u <url> --javascript "javascript code here". 
    
    
    Screenshot 2024-06-20 at 13 52 00
  • hxn in termux 🐤   Install dependencies -  
    pkg install tur-repo -y ; pkg install chromium -y
    ln -s "$PREFIX/bin/chromium-browser" "$PREFIX/bin/chromium"  
    

    screenshot_2023-11-16_12-11-55

Benchmarking ⚡

The below is a comparison between similar project gowitness, tested on my pentium processor.

-----------------------------------------------------

Contribution 🤝

Contributions are welcome! You can suggest features, report bugs, fix issues via issues or pull requests. Help with code documentation and spreading the word about HAYLXON(hxn) is appreciated! 😎

Support 💌

I am a student currently attending university. I like working for Open Source in my free time. If you find my tool or work beneficial, please consider supporting me via KO-FI or ESEWA* (Nepal only), Or by leaving a star ⭐ ; I'll appreciate your action :)

Also see 👀

  • Kanha :- A web-app pentesting suite written in rust 🦀
  • gowitness :- A golang, web screenshot utility using Chrome Headless

FAQ 🥶

  • How do you use hxn?
    • I use hxn to automate tasks. For example, I needed to test a website on GitHub Actions before deploying. Using hxn, I took screenshots and uploaded it to 0x0.st to verify it met my requirements.
    • When i have a list of sub(domains) to test.

License 🔐

Licensed under the MIT LICENSE

Copyright © 2023 - present pwnwriter xyz ☘️

Dependencies

~18–36MB
~528K SLoC