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
+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 {