From 8d5e3b4d0597ab00bf4b5b00ecb04bbfe6012433 Mon Sep 17 00:00:00 2001 From: pyro Date: Wed, 13 May 2026 13:54:15 -0500 Subject: [PATCH] added url encoding for the dirctory bruteforcer. --- Cargo.toml | 1 + src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 38b8d4a..12fc821 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,3 +11,4 @@ dns-lookup = "2.0.4" rayon = "1.12.0" reqwest = { version = "0.12.4", features = ["blocking"] } trust-dns-resolver = "0.23.2" +urlencoding = "2.1.3" diff --git a/src/main.rs b/src/main.rs index 3624eea..f4e77a9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,6 +12,7 @@ use std::thread; use std::{collections::HashMap, fs}; use trust_dns_resolver::config::*; use trust_dns_resolver::Resolver; +use urlencoding::encode; enum OutputMessage { UrlResult(String), @@ -102,7 +103,7 @@ fn try_sub( } fn try_dir(url: String, tx: Sender, output: bool) { - let resp_stat = reqwest::blocking::get(&url); + let resp_stat = reqwest::blocking::get(&encode(&url).to_string()); if resp_stat.is_ok() { let resp = resp_stat.unwrap().status(); match resp {