cap_sys_module privilege
In a docker environment, we may find a privilege named cap_sys_module. Here are the steps to exploit it:
On the target machine:
1) Create a Makefile
nano Makefilels -la /lib/modules2) Create a reverse-shell.c (Edit your IP and port accordingly)
nano reverse-shell.c3) Compile
make4) Pwned!
insmod reverse-shell.ko Scripts are added in this repository under the scripts folder
Last updated