Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chapters/mitigations-and-defensive-strategies: Add Dockerfile for 02-rwslotmachine2 #49

Open
gabrielmocanu opened this issue Nov 16, 2024 · 3 comments

Comments

@gabrielmocanu
Copy link
Collaborator

Description:

Create a Dockerfile for 02-rwslotmachine2 exercise.

Requirements:

  1. Use a multi-stage Dockerfile:
  • Build Stage:
    - Compile the provided C code into an executable.
  • Runtime Stage:
    - Run the compiled executable and ensure it listens or operates on port 31345.
  1. Verify the functionality of the solution to ensure that it works as expected after building and running the Dockerfile.

  2. Ensure the Dockerfile is optimized and avoids unnecessary layers.

Expected Outcome:

A fully working Dockerfile that can be built and executed in two separate stages, satisfying the above requirements.

@Bianca964
Copy link

Hi, @gabrielmocanu! I am eager to take care of this issue. I am already on to it, I have managed to create the Dockerfile environment by now, but I am still working on the solution, I still need to find the flag. I have noticed there is a problem with the overwrite functions and I assume it is because of the addresses, but I will take a deeper look.

@gabrielmocanu
Copy link
Collaborator Author

Hi, @Bianca964.
Please open the pull request to be able to review the Dockerfile first, if you need help with solution let me know. I already have the solution on a private repository.

@Bianca964
Copy link

@gabrielmocanu ,I opened the pull request, I am not sure any notificationwas sent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants