Ubuntu Pastebin

Paste from e at Sat, 6 Jun 2015 22:31:06 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <stdio.h>

int main(int argc, char *argv[]) {
char *pathbrightness = argv[1];
char command[128];

setuid(0);
setgid(0);
sprintf(command, "echo %d > %s", atoi(argv[2]), pathbrightness);
system(command);
}
Download as text