Skip to content

Commit 313e95e

Browse files
authored
Merge pull request #12 from pwnwriter/v0.1.5
V0.1.5
2 parents b491dc4 + 0e5f305 commit 313e95e

File tree

3 files changed

+21
-22
lines changed

3 files changed

+21
-22
lines changed

Cargo.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
[package]
22
name = "hxn"
3-
version = "0.1.4"
3+
version = "0.1.5"
44
edition = "2021"
55
authors = [ "PwnWriter < [email protected] >" ]
66
description = "Blazingly fast tool to grab screenshots of url/webpages from terminal."
77
readme = "README.md"
8-
repository = "https://github.com/bytehunt/haylxon"
9-
homepage = "https://github.com/bytehunt/haylxon.git"
8+
repository = "https://github.com/pwnwriter/haylxon"
9+
homepage = "https://github.com/pwnwriter/haylxon.git"
1010
license = "MIT"
1111
keywords = ["screenshots", "bug-bounty", "recon", "pwn", "OSINT" ]
1212
categories = ["accessibility", "web-programming", "command-line" ]
@@ -15,11 +15,11 @@ categories = ["accessibility", "web-programming", "command-line" ]
1515

1616
[dependencies]
1717
url = "2.3.1"
18-
reqwest = "0.11.14"
19-
tokio = { version = "1.26.0", features = ["full"] }
18+
reqwest = "0.11.16"
19+
tokio = { version = "1.27.0", features = ["full"] }
2020
chromiumoxide = { version = "0.5.0", features = ["tokio-runtime"], default-features = false }
21-
futures = "0.3.27"
22-
clap = { version = "4.1.11", features = ["derive"] }
21+
futures = "0.3.28"
22+
clap = { version = "4.2.4", features = ["derive"] }
2323
columns = "0.1.0"
2424

2525
[profile.dev]

src/ascii.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ pub const BAR: &str = r"
33
";
44

55
pub const HXN: &str = r"
6-
╦ ╦╔═╗╦ ╦╦ ╔═╗╔╗╔
7-
╠═╣╠═╣╚╦╝║ 𝖃║ ║║║║
8-
╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.4
9-
 Shoot before the blink 
10-
by @PwnWriter
11-
";
6+
╦ ╦╔═╗╦ ╦╦ ╔═╗╔╗╔
7+
╠═╣╠═╣╚╦╝║ 𝖃║ ║║║║
8+
╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.5
9+
 Shoot before the blink 
10+
by @PwnWriter
11+
";

src/main.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -41,29 +41,26 @@ struct Cli {
4141
/// Maximum number of parallel tabs
4242
tabs: Option<usize>,
4343

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

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

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

56-
#[arg(short,long)]
56+
#[arg(short, long)]
5757
/// Silent mode (suppress all console output)
5858
silent: bool,
5959
}
6060
#[tokio::main]
6161
async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
62+
println!("{CYAN}{}{RESET}", HXN);
6263
let cli = Cli::parse();
63-
if !cli.silent {
64-
// Show the banner if silent mode is not enabled
65-
println!("{CYAN}{}{RESET}", HXN);
66-
}
6764
run(
6865
cli.url,
6966
Some(cli.outdir),
@@ -173,7 +170,9 @@ async fn run(
173170
.expect("Something went wrong while waiting for taking screenshot and saving to file");
174171
}
175172

176-
println!("{RED}♥ {GREEN} {YELLOW_BRIGHT}Screenshots saved in dir {outdir}{RED} ♥ {GREEN}{RESET} ");
173+
println!(
174+
"{RED}♥ {GREEN} {YELLOW_BRIGHT}Screenshots saved in dir {outdir}{RED} ♥ {GREEN}{RESET} "
175+
);
177176

178177
Ok(())
179178
}

0 commit comments

Comments
 (0)