Crabby is a tool developed to generate webshells written in - insert your desired webshell language -. It is designed to be used by red teams to aid in lateral movement, privilege escalation, and data exfiltration.
usestd::collections::HashSet;useregex::Regex;/// Extract unique strings from the input using the provided pattern
pubfnextract_unique_strings(input:&str, pattern:&str)->Vec<String>{let re =Regex::new(pattern).unwrap();letmut unique_strings =HashSet::new();for mat in re.find_iter(input){
unique_strings.insert(mat.as_str().to_string());}
unique_strings.into_iter().collect()}