panda-re/lava

bash: ./toy: No such file or directory

98hq opened this issue · 1 comments

98hq commented

Hello,I have been trying to use lava , but when I test the buggy program, I got the following error:

  1. According the setup.md,I successfully installed lava
  2. run python2 init-host.py generate the host.json
  3. ./scripts/lava.sh toy
    image
  4. test the buggy program:
    cd ~/Desktop/lava/target_injections/toy/bugs/0/toy/lava-install/bin
    ./toy ~/Desktop/lava/target_injections/toy/inputs/testsmall.bin
    but i meet the following error:
    bash: ./toy: No such file or directory

Then I test toy programs in other paths, however, the following error can still occur.
The following picture shows the process of the test:
image

Source code

Also, based on the previous question #44 ,The source code that injected the vulnerability was in the local git repository
I looked at the branches in the buggy program directory,
The following image shows the results. which branch should I look at to see the source code for the injection vulnerability?
image

Controls the number and type of injection vulnerabilities

image

The above figure above shows the number of vulnerabilities inserted into the program, i want to know how to control the number and type of insertion vulnerabilities, and which scripts need to be modified

98hq commented

The first error has been resolved and was caused by a lack of packages in the system. The error is unrelated to lava.

A question about ”Controls the number and type of injection vulnerabilities",
I know that we can control the option of lava.sh to do this, but is there any other way?