File tree 1 file changed +3
-4
lines changed 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,8 +17,7 @@ use std::path::PathBuf;
17
17
use std:: sync:: Arc ;
18
18
use std:: thread;
19
19
use regex:: Regex ;
20
- use rand:: seq:: SliceRandom ;
21
-
20
+ use rand:: prelude:: IndexedRandom ;
22
21
23
22
#[ derive( Debug , StructOpt ) ]
24
23
#[ structopt( name = "pulse" , about = "Red Team fast and efficient target detection tool." ) ]
@@ -366,11 +365,11 @@ async fn main() -> Result<()> {
366
365
// Determine User-Agent
367
366
let ua: & str = match ua_option. as_str ( ) {
368
367
"random" => {
369
- let mut rng = rand:: thread_rng ( ) ;
368
+ let mut rng = rand:: rng ( ) ;
370
369
http_uas_clone. choose ( & mut rng) . expect ( "No User-Agents available" )
371
370
} ,
372
371
"android" => {
373
- let mut rng = rand:: thread_rng ( ) ;
372
+ let mut rng = rand:: rng ( ) ;
374
373
android_uas_clone. choose ( & mut rng) . expect ( "No Android User-Agents available" )
375
374
} ,
376
375
_ => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3" , // default UA
You can’t perform that action at this time.
0 commit comments