crabby-webshell-generator 2.0.0

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.
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::{env, io};
use std::path::Path;

/// Check if a folder exists
///
/// # Arguments
/// - folder_name: &str - The name of the folder to check
pub fn folder_exists(folder_name: &str) -> io::Result<bool> {
	let mut path = env::current_dir()?;
	path.push(folder_name);

	Ok(Path::new(&path).exists())
}