Skip to content

Commit

Permalink
Merge pull request #12 from pwnwriter/v0.1.5
Browse files Browse the repository at this point in the history
V0.1.5
  • Loading branch information
pwnwriter authored Apr 21, 2023
2 parents b491dc4 + 0e5f305 commit 313e95e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 22 deletions.
14 changes: 7 additions & 7 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[package]
name = "hxn"
version = "0.1.4"
version = "0.1.5"
edition = "2021"
authors = [ "PwnWriter < [email protected] >" ]
description = "Blazingly fast tool to grab screenshots of url/webpages from terminal."
readme = "README.md"
repository = "https://github.com/bytehunt/haylxon"
homepage = "https://github.com/bytehunt/haylxon.git"
repository = "https://github.com/pwnwriter/haylxon"
homepage = "https://github.com/pwnwriter/haylxon.git"
license = "MIT"
keywords = ["screenshots", "bug-bounty", "recon", "pwn", "OSINT" ]
categories = ["accessibility", "web-programming", "command-line" ]
Expand All @@ -15,11 +15,11 @@ categories = ["accessibility", "web-programming", "command-line" ]

[dependencies]
url = "2.3.1"
reqwest = "0.11.14"
tokio = { version = "1.26.0", features = ["full"] }
reqwest = "0.11.16"
tokio = { version = "1.27.0", features = ["full"] }
chromiumoxide = { version = "0.5.0", features = ["tokio-runtime"], default-features = false }
futures = "0.3.27"
clap = { version = "4.1.11", features = ["derive"] }
futures = "0.3.28"
clap = { version = "4.2.4", features = ["derive"] }
columns = "0.1.0"

[profile.dev]
Expand Down
12 changes: 6 additions & 6 deletions src/ascii.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ pub const BAR: &str = r"
";

pub const HXN: &str = r"
╦ ╦╔═╗╦ ╦╦ ╔═╗╔╗╔
╠═╣╠═╣╚╦╝║ 𝖃║ ║║║║
╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.4
 Shoot before the blink 
by @PwnWriter
";
╦ ╦╔═╗╦ ╦╦ ╔═╗╔╗╔
╠═╣╠═╣╚╦╝║ 𝖃║ ║║║║
╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.5
 Shoot before the blink 
by @PwnWriter
";
17 changes: 8 additions & 9 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,29 +41,26 @@ struct Cli {
/// Maximum number of parallel tabs
tabs: Option<usize>,

#[arg(short, long, default_value = "/usr/bin/chrome")]
#[arg(short, long, default_value = "/usr/bin/google-chrome")]
/// Browser binary path
binary_path: String,

#[arg(short='x', long, default_value = "1440")]
#[arg(short = 'x', long, default_value = "1440")]
/// Width of the website // URL
width: Option<u32>,

#[arg( short='y', long, default_value = "900")]
#[arg(short = 'y', long, default_value = "900")]
/// Height of the website // URL
height: Option<u32>,

#[arg(short,long)]
#[arg(short, long)]
/// Silent mode (suppress all console output)
silent: bool,
}
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
println!("{CYAN}{}{RESET}", HXN);
let cli = Cli::parse();
if !cli.silent {
// Show the banner if silent mode is not enabled
println!("{CYAN}{}{RESET}", HXN);
}
run(
cli.url,
Some(cli.outdir),
Expand Down Expand Up @@ -173,7 +170,9 @@ async fn run(
.expect("Something went wrong while waiting for taking screenshot and saving to file");
}

println!("{RED}♥ {GREEN} {YELLOW_BRIGHT}Screenshots saved in dir {outdir}{RED} ♥ {GREEN}{RESET} ");
println!(
"{RED}♥ {GREEN} {YELLOW_BRIGHT}Screenshots saved in dir {outdir}{RED} ♥ {GREEN}{RESET} "
);

Ok(())
}
Expand Down

0 comments on commit 313e95e

Please sign in to comment.