added url encoding for the dirctory bruteforcer.
This commit is contained in:
@@ -11,3 +11,4 @@ dns-lookup = "2.0.4"
|
|||||||
rayon = "1.12.0"
|
rayon = "1.12.0"
|
||||||
reqwest = { version = "0.12.4", features = ["blocking"] }
|
reqwest = { version = "0.12.4", features = ["blocking"] }
|
||||||
trust-dns-resolver = "0.23.2"
|
trust-dns-resolver = "0.23.2"
|
||||||
|
urlencoding = "2.1.3"
|
||||||
|
|||||||
+2
-1
@@ -12,6 +12,7 @@ use std::thread;
|
|||||||
use std::{collections::HashMap, fs};
|
use std::{collections::HashMap, fs};
|
||||||
use trust_dns_resolver::config::*;
|
use trust_dns_resolver::config::*;
|
||||||
use trust_dns_resolver::Resolver;
|
use trust_dns_resolver::Resolver;
|
||||||
|
use urlencoding::encode;
|
||||||
|
|
||||||
enum OutputMessage {
|
enum OutputMessage {
|
||||||
UrlResult(String),
|
UrlResult(String),
|
||||||
@@ -102,7 +103,7 @@ fn try_sub(
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn try_dir(url: String, tx: Sender<OutputMessage>, output: bool) {
|
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() {
|
if resp_stat.is_ok() {
|
||||||
let resp = resp_stat.unwrap().status();
|
let resp = resp_stat.unwrap().status();
|
||||||
match resp {
|
match resp {
|
||||||
|
|||||||
Reference in New Issue
Block a user