C0deH4cker / PwnableHarness

Manage building and deploying exploitation challenges with ease
MIT License
57 stars 4 forks source link

Build challenges inside a Docker container #3

Closed C0deH4cker closed 2 years ago

C0deH4cker commented 5 years ago

By performing builds inside of a Docker container, it would ensure consistent builds that don't depend on environment external to the repo, and challenges can be built on platforms other than Linux.

C0deH4cker commented 3 years ago

As of #6, challenges can now be built and run on macOS. This is different than the goal of this issue, however there is some overlap in the use cases.

C0deH4cker commented 2 years ago

This is now more important. When challenges are compiled on newer versions of Ubuntu like 22.04, then we try to run them in this Ubuntu 16.04 container, it fails with this error message:

/usr/local/bin/pwnableserver: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /usr/local/bin/pwnableserver)

This is because the glibc version outside of the container that the challenge binary was linked against is much newer than the version present in the container, resulting in a version mismatch error.

C0deH4cker commented 2 years ago

Implemented in #16