Skip to content
Ransomware model for Codebreaker 2018 walkthrough
C C++ CMake Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
CMakeLists.txt
CodeCoverage.cmake
Dockerfile
README.md
RunAllTests.cpp
RunAllTests.h
b32.c
cid.c
client.c
client.h
crack.c
crack.h
crypto.c
crypto.h
find_ips.c
mock_data.c
mock_data.h
mock_net.cpp
mock_net.h
run.sh
sim_types.h
stubs.c
stubs.h
support.c
support.h
transmit.c

README.md

CodeBreaker Challenge 2018 -- Model

This is a model of Ransomware. We only have two shared library files, so we need to stub / mock the rest of the system. This way we can observe the way our Ransomware is supposed to work and find it's weak points.

The setup is taken from this book https://amzn.to/2LQOeW4

The model is CMake + CppUTest project. The easiest setup is on Mac + HomeBrew. Just run commands below

brew install cmake
brew install cpputest
brew install openssl

Then we need to generate system specific Makefile for our project

cmake .

And now we can build

make

Once we built we can run the RunAllTests

./RunAllTests

if everything is working you should see output like this:

.......
OK (7 tests, 7 ran, 7 checks, 0 ignored, 0 filtered out, 1 ms)

You can’t perform that action at this time.