-
Notifications
You must be signed in to change notification settings - Fork 17
The Big Picture
The core part of a logic bomb is logic bomb function. Hence, we separate the logic function from the irrelevant parts, which may varies from compiler and test tools. To generate a complete source code that can be compiled, we use a template to describe other parts needed to build a full program. While compiling, the whole process are controlled by a json config file, which indicates all parameters needed. The framework will parse template and combine these codes. After that, the whole text stream will be fed into compiler through pipe. Then we get our binary code. To run an automated test on these test cases, an extra script file is needed for describing how to manipulate a specific test tool. Generally, this script should try to analyse binary code and generate test cases, then script should try to validate results and return a specific value to show if the tool passes or fails the test.