_____/\\\\\\\\\\\___________________________________________________________________________________________/\\\\\_____________________________________________________________________________________________________________________________
___/\\\/////////\\\_______________________________________________________________________________________/\\\///\\\___________________________________________________________________________________________________________________________
__\//\\\______\///______________________________________________________________________________________/\\\/__\///\\\____/\\\\\\\\\__________________________________________________/\\\_______/\\\__________________________________________
___\////\\\_____________/\\\\\\\\______/\\\\\\\\__/\\\____/\\\__/\\/\\\\\\\______/\\\\\\\\_____________/\\\______\//\\\__/\\\/////\\\_____/\\\\\\\\___/\\/\\\\\\\___/\\\\\\\\\_____/\\\\\\\\\\\_\///______/\\\\\_____/\\/\\\\\\____/\\\\\\\\\\_
______\////\\\________/\\\/////\\\___/\\\//////__\/\\\___\/\\\_\/\\\/////\\\___/\\\/////\\\___________\/\\\_______\/\\\_\/\\\\\\\\\\____/\\\/////\\\_\/\\\/////\\\_\////////\\\___\////\\\////___/\\\___/\\\///\\\__\/\\\////\\\__\/\\\//////__
_________\////\\\____/\\\\\\\\\\\___/\\\_________\/\\\___\/\\\_\/\\\___\///___/\\\\\\\\\\\____________\//\\\______/\\\__\/\\\//////____/\\\\\\\\\\\__\/\\\___\///____/\\\\\\\\\\_____\/\\\______\/\\\__/\\\__\//\\\_\/\\\__\//\\\_\/\\\\\\\\\\_
__/\\\______\//\\\__\//\\///////___\//\\\________\/\\\___\/\\\_\/\\\_________\//\\///////______________\///\\\__/\\\____\/\\\_________\//\\///////___\/\\\__________/\\\/////\\\_____\/\\\_/\\__\/\\\_\//\\\__/\\\__\/\\\___\/\\\_\////////\\\_
_\///\\\\\\\\\\\/____\//\\\\\\\\\\__\///\\\\\\\\_\//\\\\\\\\\__\/\\\__________\//\\\\\\\\\\______________\///\\\\\/_____\/\\\__________\//\\\\\\\\\\_\/\\\_________\//\\\\\\\\/\\____\//\\\\\___\/\\\__\///\\\\\/___\/\\\___\/\\\__/\\\\\\\\\\_
___\///////////_______\//////////_____\////////___\/////////___\///____________\//////////_________________\/////_______\///____________\//////////__\///___________\////////\//______\/////____\///_____\/////_____\///____\///__\//////////__
A very simple, lightweight C++ header file for securely executing commands. Useable on linux, windows, bsd and MACOSX
- Include the header file
ExecutionEngine.hpp
- Use it
#include "ExecutionEngine.hpp"
int main(int argc, char** argv) {
ExecutionEngine::Execution Engine;
std::cout << "Tree " << std::endl;
std::cout << "====================" << std::endl;
if (argv[1] != NULL) {
std::string path = argv[1];
std::cout << "--- " << Engine.EngineExec(path).o << std::endl;
}
return 0;
}