Update cseyewittness

changed from splitting on just spaces to splitting on any white space when reading the proxychains config, should be better now.
This commit is contained in:
Pyro57000
2023-11-20 11:00:56 -06:00
committed by GitHub
parent 1c1a9bc368
commit 7cafd012e7

View File

@@ -49,7 +49,7 @@ note if you have errors parsing your proxychains config file make sure its space
let mut proxy_port = String::new(); let mut proxy_port = String::new();
for line in lines{ for line in lines{
if line.contains("socks"){ if line.contains("socks"){
let split_line:Vec<&str> = line.split(" ").collect(); let split_line:Vec<&str> = line.split_whitespace().collect();
proxy_type = split_line[0].to_owned(); proxy_type = split_line[0].to_owned();
proxy_address = split_line[1].to_owned(); proxy_address = split_line[1].to_owned();
proxy_port = split_line[2].to_owned(); proxy_port = split_line[2].to_owned();