added url encoding for the dirctory bruteforcer.

This commit is contained in:
2026-05-13 13:54:15 -05:00
parent dd6b7668d6
commit 8d5e3b4d05
2 changed files with 3 additions and 1 deletions
+1
View File
@@ -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"
+2 -1
View File
@@ -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<OutputMessage>, 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 {