Showing banner again after finish scan management menu

This commit is contained in:
Aan 2023-03-06 19:47:33 +07:00
parent 52d08e504d
commit aec083ea58
No known key found for this signature in database
GPG Key ID: 6EAB0E2374156E98

View File

@ -8,7 +8,8 @@ use crate::filters::{
use crate::traits::FeroxFilter;
use crate::Command::AddFilter;
use crate::{
config::OutputLevel,
banner::Banner,
config::{Configuration, OutputLevel},
progress::PROGRESS_PRINTER,
progress::{add_bar, BarType},
scan_manager::{MenuCmd, MenuCmdResult},
@ -24,7 +25,7 @@ use std::{
collections::HashSet,
convert::TryInto,
fs::File,
io::BufReader,
io::{BufReader, stderr},
ops::Index,
sync::{
atomic::{AtomicBool, AtomicUsize, Ordering},
@ -446,6 +447,12 @@ impl FeroxScans {
};
self.menu.clear_screen();
let config = Configuration::new().unwrap();
let target = &config.target_url;
let banner = Banner::new(&[String::from(target)], &config);
banner.print_to(stderr(), Arc::new(config)).unwrap();
self.menu.show_progress_bars();
result