This project contains tests for kdhr project.
We prepare a docker image on baidu netdisk. Download this image, and execute the following commands to open the test environment:
gunzip kdhr-test.tar.gz
docker import kdhr-test.tar kdhr-test:latest
docker run -itd --privileged --name kdhr-test:latest /bin/bash
docker exec -it kdhr-test /bin/bash
su dhr # Password = 123456
cd ~/kdhr-test
Then run tests by sudo ./test.exp <test_name> [noprotect]
.
Example:
sudo ./test.exp test2.1
sudo ./test.exp test2.2/rop noprotect