Skip to content

Fix library-load snippet compilation - #600

Open
journaltraces wants to merge 1 commit into
GTFOBins:masterfrom
journaltraces:fix-588
Open

Fix library-load snippet compilation#600
journaltraces wants to merge 1 commit into
GTFOBins:masterfrom
journaltraces:fix-588

Conversation

@journaltraces

Copy link
Copy Markdown

The library-load example currently fails to compile with modern GCC versions.

This updates the snippet to:

  • explicitly declare init() as returning void
  • include <unistd.h> for the execl() declaration

Tested against the compilation errors reported in #588
Fixes #588

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

Successfully merging this pull request may close these issues.

Code snipped is not compiling

1 participant