From be3227ed24eca9affb29d8674c4e8fbabd825f94 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Thu, 20 Apr 2023 07:38:12 +0545 Subject: [PATCH 1/2] =?UTF-8?q?update:=20clap=20v=20=F0=9F=91=8F=20//=20fo?= =?UTF-8?q?rmatting=20code?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 8 ++++---- src/ascii.rs | 2 +- src/main.rs | 17 ++++++++--------- 3 files changed, 13 insertions(+), 14 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3320b3d..87b14e2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,12 +1,12 @@ [package] name = "hxn" -version = "0.1.4" +version = "0.1.5" edition = "2021" authors = [ "PwnWriter < hey@pwnwriter.xyz >" ] 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" ] @@ -19,7 +19,7 @@ reqwest = "0.11.14" tokio = { version = "1.26.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"] } +clap = { version = "4.2.4", features = ["derive"] } columns = "0.1.0" [profile.dev] diff --git a/src/ascii.rs b/src/ascii.rs index bd811c5..5fbdabb 100644 --- a/src/ascii.rs +++ b/src/ascii.rs @@ -5,7 +5,7 @@ pub const BAR: &str = r" pub const HXN: &str = r" ╦ ╦╔═╗╦ ╦╦ ╔═╗╔╗╔ ╠═╣╠═╣╚╦╝║ 𝖃║ ║║║║ -╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.4 +╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.5  Shoot before the blink  by @PwnWriter "; diff --git a/src/main.rs b/src/main.rs index c80497f..851e0e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -41,29 +41,26 @@ struct Cli { /// Maximum number of parallel tabs tabs: Option, - #[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, - #[arg( short='y', long, default_value = "900")] + #[arg(short = 'y', long, default_value = "900")] /// Height of the website // URL height: Option, - #[arg(short,long)] + #[arg(short, long)] /// Silent mode (suppress all console output) silent: bool, } #[tokio::main] async fn main() -> Result<(), Box> { + 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), @@ -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(()) } From 0e5f305c1adaf877bf07bc1a972261b563d1cf81 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Fri, 21 Apr 2023 08:39:45 +0545 Subject: [PATCH 2/2] =?UTF-8?q?update:=20=F0=9F=93=A6=20crates=20to=20late?= =?UTF-8?q?st=20//=20fix:=20=F0=9F=8E=A8=20ascii=20art?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 6 +++--- src/ascii.rs | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 87b14e2..5f84d6a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,10 +15,10 @@ 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" +futures = "0.3.28" clap = { version = "4.2.4", features = ["derive"] } columns = "0.1.0" diff --git a/src/ascii.rs b/src/ascii.rs index 5fbdabb..62b8e78 100644 --- a/src/ascii.rs +++ b/src/ascii.rs @@ -3,9 +3,9 @@ pub const BAR: &str = r" "; pub const HXN: &str = r" -╦ ╦╔═╗╦ ╦╦ ╔═╗╔╗╔ -╠═╣╠═╣╚╦╝║ 𝖃║ ║║║║ -╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.5 - Shoot before the blink  - by @PwnWriter -"; + ╦ ╦╔═╗╦ ╦╦ ╔═╗╔╗╔ + ╠═╣╠═╣╚╦╝║ 𝖃║ ║║║║ + ╩ ╩╩ ╩ ╩ ╩═╝ ╚═╝╝╚╝v0.1.5 +  Shoot before the blink  + by @PwnWriter + ";