added url encoding for the dirctory bruteforcer.
This commit is contained in:
+2
-1
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user