__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
// SPDX-License-Identifier: GPL-2.0
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <elf.h>
int
main(int argc, char **argv)
{
unsigned char ei[EI_NIDENT];
if (fread(ei, 1, EI_NIDENT, stdin) != EI_NIDENT) {
fprintf(stderr, "Error: input truncated\n");
return 1;
}
if (memcmp(ei, ELFMAG, SELFMAG) != 0) {
fprintf(stderr, "Error: not ELF\n");
return 1;
}
switch (ei[EI_CLASS]) {
case ELFCLASS32:
printf("#define KERNEL_ELFCLASS ELFCLASS32\n");
break;
case ELFCLASS64:
printf("#define KERNEL_ELFCLASS ELFCLASS64\n");
break;
default:
exit(1);
}
return 0;
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| .gitignore | File | 99 B | 0644 |
|
| Makefile | File | 861 B | 0644 |
|
| devicetable-offsets.c | File | 7.85 KB | 0644 |
|
| empty.c | File | 54 B | 0644 |
|
| file2alias.c | File | 44.03 KB | 0644 |
|
| mk_elfconfig.c | File | 604 B | 0644 |
|
| modpost.c | File | 57.6 KB | 0644 |
|
| modpost.h | File | 6.53 KB | 0644 |
|
| sumversion.c | File | 9.47 KB | 0644 |
|
| symsearch.c | File | 5.77 KB | 0644 |
|