--- tags: comp-decomp title: Perturbing Manually --- # Environment Use the `perturb_manually.py` to initiate the perturbation environment. It uses `initial.pyc` as the target pyc file. While it utilizes the `temp.py` in `test` folder as where you can manually perturb. Usage: ``` python bin/perturb_manually.py ``` For each iteration, it generates two files: 1. `initial.png`: This will be the cfg of the target file 2. `temp.png`: This will be the cfg for the perturbed file Setup the windows as follows for effective testing: ![](https://i.imgur.com/BYlAF5c.png) # Reading supporting Data: Additionally the script loads the data from previous data and finds closest matching for remaining of the target binary. It outputs the meta data in file `temp.log`. It first contains the closest matching code (seed): Example: ![](https://i.imgur.com/igN6APY.png) And then following it, it contains code for each offset in target binary as follows: ![](https://i.imgur.com/CKe8B07.png)