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

update ssh-keygen with exploit code #437

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Zeeshan12340
Copy link

Added exploit code to ssh-keygen in the description section. Built the project with addition locally and this is how it looks:

image

@Siddhartha2300032769
Copy link

+The C_GetFunctionList() function contains the code you want to execute when the library is loaded. In this case, it executes /bin/sh with root privileges.
We're using the setuid(0) function to set the effective UID to root before executing the command. This is done to ensure the command executes with root privileges.
+The attribute((constructor)) directive is used to define a constructor function that will be executed when the library is loaded. In this case, it's used to call C_GetFunctionList() when the library is loaded.

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.

None yet

2 participants