mirror of
https://github.com/epi052/feroxbuster.git
synced 2026-06-01 21:21:12 -03:00
simplified heuristics redirection printing
This commit is contained in:
@@ -226,35 +226,16 @@ async fn make_wildcard_request(
|
|||||||
if response.status().is_redirection() {
|
if response.status().is_redirection() {
|
||||||
// show where it goes, if possible
|
// show where it goes, if possible
|
||||||
if let Some(next_loc) = response.headers().get("Location") {
|
if let Some(next_loc) = response.headers().get("Location") {
|
||||||
if let Ok(next_loc_str) = next_loc.to_str() {
|
let next_loc_str = next_loc.to_str().unwrap_or("Unknown");
|
||||||
if !CONFIGURATION.quiet
|
if !CONFIGURATION.quiet
|
||||||
&& !should_filter_response(&content_len, &response.url())
|
|
||||||
{
|
|
||||||
let msg = format!(
|
|
||||||
"{} {:>10} {} redirects to => {}\n",
|
|
||||||
wildcard,
|
|
||||||
content_len,
|
|
||||||
response.url(),
|
|
||||||
next_loc_str
|
|
||||||
);
|
|
||||||
|
|
||||||
ferox_print(&msg, &PROGRESS_PRINTER);
|
|
||||||
|
|
||||||
try_send_message_to_file(
|
|
||||||
&msg,
|
|
||||||
tx_file.clone(),
|
|
||||||
!CONFIGURATION.output.is_empty(),
|
|
||||||
);
|
|
||||||
}
|
|
||||||
} else if !CONFIGURATION.quiet
|
|
||||||
&& !should_filter_response(&content_len, &response.url())
|
&& !should_filter_response(&content_len, &response.url())
|
||||||
{
|
{
|
||||||
let msg = format!(
|
let msg = format!(
|
||||||
"{} {:>10} {} redirects to => {:?}\n",
|
"{} {:>10} {} redirects to => {}\n",
|
||||||
wildcard,
|
wildcard,
|
||||||
content_len,
|
content_len,
|
||||||
response.url(),
|
response.url(),
|
||||||
next_loc
|
next_loc_str
|
||||||
);
|
);
|
||||||
|
|
||||||
ferox_print(&msg, &PROGRESS_PRINTER);
|
ferox_print(&msg, &PROGRESS_PRINTER);
|
||||||
|
|||||||
Reference in New Issue
Block a user