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:     pr90553.c (1.93 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run } */

__attribute__((__noipa__))
void f1(int x, void (*p1 []) (int, int))
{
  int i;
  for (i = 0; i < x; i++)
    p1[i](42, 666);
}

int z1_called = 0;
int w1_called = 0;

__attribute__((__noipa__))
void z1(int a, int b)
{
  if (w1_called || z1_called)
    __builtin_abort();
  z1_called++;
}

__attribute__((__noipa__))
void w1(int a, int b)
{
  if (w1_called || !z1_called)
    __builtin_abort();
  w1_called++;
}

int z2_called = 0;
int w2_called = 0;

__attribute__((__noipa__))
void z2(void)
{
  if (w2_called || z2_called)
    __builtin_abort();
  z2_called++;
}

__attribute__((__noipa__))
void w2(void)
{
  if (w2_called || !z2_called)
    __builtin_abort();
  w2_called++;
}

void (*p2 []) () = { w2, z2 };

__attribute__((__noipa__))
void f2(int x)
{
  void (**q) (void) = p2 + x;
  int i;
  for (i = 0; i < x; i++)
    (*(--q))();
}

__attribute__((__noipa__))
void f3(int x, int (*p3 []) (int))
{
  int i;
  int next = x;
  for (i = 0; i < x; i++)
    next = p3[i](next);
}

int z3_called = 0;
int w3_called = 0;

__attribute__((__noipa__))
int z3(int a)
{
  if (w3_called || z3_called || a != 2)
    __builtin_abort();
  z3_called++;
  return 42;
}

__attribute__((__noipa__))
int w3(int a)
{
  if (w3_called || !z3_called || a != 42)
    __builtin_abort();
  w3_called++;
  return 4096;
}

int (*p4 []) (int) = { z3, w3 };

__attribute__((__noipa__))
void f4(int x)
{
  int (**q) (int) = p4;
  int (**r) (int) = p4 + x;

  int next = x;
  for (; q < r; q++)
    next = (*q)(next);
}

int main(void)
{
  static int (*p3 []) (int) = { z3, w3 };

  static void (*p1 []) (int, int) = { z1, w1 };

  f1(2, p1);
  if (z1_called != 1 || w1_called != 1)
    __builtin_abort();

  f2(2);
  if (z2_called != 1 || w2_called != 1)
    __builtin_abort();

  f3(2, p3);
  if (z3_called != 1 || w3_called != 1)
    __builtin_abort();

  z3_called = 0;
  w3_called = 0;
  f4(2);
  if (z3_called != 1 || w3_called != 1)
    __builtin_abort();

  __builtin_exit(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.0066 ]--