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/mips/   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:     insn-casesi.c (1.63 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* { dg-do run } */
/* { dg-options "-mips16 -mcode-readable=yes" } */

int __attribute__ ((noinline))
frob (int i)
{
  switch (i)
    {
    case -5:
      return -2;
    case -3:
      return -1;
    case 0:
      return 0;
    case 3:
      return 1;
    case 5:
      break;
    default:
      __builtin_unreachable ();
    }
  return i;
}

int
main (int argc, char **argv)
{
  asm ("" : "+r" (argc));
  argc = frob ((argc & 10) - 5);
  asm ("" : "+r" (argc));
  return !argc;
}

/* This will result in assembly like:

    .text
    .align    2
    .globl    frob
    .set    mips16
    .set    nomicromips
    .ent    frob
    .type    frob, @function
frob:
    .frame    $sp,0,$31        # vars= 0, regs= 0/0, args= 0, gp= 0
    .mask    0x00000000,0
    .fmask    0x00000000,0
    addiu    $2,$4,5
    sltu    $2,11
    bteqz    $L2
    sll    $3,$2,1
    la    $2,$L4
    addu    $3,$2,$3
    lh    $3,0($3)
    addu    $2,$2,$3
    j    $2
    .align    1
    .align    2
$L4:
    .half    $L3-$L4
    .half    $L2-$L4
    .half    $L9-$L4
    .half    $L2-$L4
    .half    $L2-$L4
    .half    $L8-$L4
    .half    $L2-$L4
    .half    $L2-$L4
    .half    $L7-$L4
    .half    $L2-$L4
    .half    $L8-$L4
$L8:
    .set    noreorder
    .set    nomacro
    jr    $31
    move    $2,$4
    .set    macro
    .set    reorder

$L9:
    li    $2,1
    .set    noreorder
    .set    nomacro
    jr    $31
    neg    $2,$2
    .set    macro
    .set    reorder

$L3:
    li    $2,2
    .set    noreorder
    .set    nomacro
    jr    $31
    neg    $2,$2
    .set    macro
    .set    reorder

$L7:
    .set    noreorder
    .set    nomacro
    jr    $31
    li    $2,1
    .set    macro
    .set    reorder

$L2:
    .insn
    .end    frob
    .size    frob, .-frob

  for `frob' and we want to make sure it links correctly owing to the
  `.insn' pseudo-op which needs to be there at `$L2' as there's no
  code following and the label is a MIPS16 branch target (even though
  the branch is never taken.  See also insn-tablejump.c.  */

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