Ubuntu20.04 # Other Ubuntu Long-Term Support (LTS) versions are also acceptable.
sudo apt install build-essential # install gcc, g++ and make
sudo apt install cmake # install cmake
EvilStrGen/
├── regex_set #dataset
├── src # source code
├── attack_string # OutputDirectory
└── EvilStrGen.cpp #main code
cd EvilStrGen # Enter the root directory of the project
mkdir build && cd build # create build directory
cmake .. # load cmakelist file
make # compile into .exe file
./EvilStrGen [RegexFile] [OutputDirectory] [EngineType] [Attack String Length] [Is the number of RegexFile in the file greater than one] # running command
./EvilStrGen -h # Use the command to obtain specific parameter information of the command.
./EvilStrGen "../regex_set/SET736535.txt" "../attack_string" 1 100000 1 # take SET736535 dataset as input, and output the corresponding attack strings which will be store in attack_string directory.