Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.31
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
local /
go /
src /
go /
internal /
gccgoimporter /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
ar.go
4.4
KB
-rw-r--r--
gccgoinstallation.go
2.41
KB
-rw-r--r--
gccgoinstallation_test.go
3.95
KB
-rw-r--r--
importer.go
6.74
KB
-rw-r--r--
importer_test.go
7.28
KB
-rw-r--r--
parser.go
31.14
KB
-rw-r--r--
parser_test.go
2.77
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : gccgoinstallation.go
// Copyright 2013 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. package gccgoimporter import ( "bufio" "go/types" "os" "os/exec" "path/filepath" "strings" ) // Information about a specific installation of gccgo. type GccgoInstallation struct { // Version of gcc (e.g. 4.8.0). GccVersion string // Target triple (e.g. x86_64-unknown-linux-gnu). TargetTriple string // Built-in library paths used by this installation. LibPaths []string } // Ask the driver at the given path for information for this GccgoInstallation. // The given arguments are passed directly to the call of the driver. func (inst *GccgoInstallation) InitFromDriver(gccgoPath string, args ...string) (err error) { argv := append([]string{"-###", "-S", "-x", "go", "-"}, args...) cmd := exec.Command(gccgoPath, argv...) stderr, err := cmd.StderrPipe() if err != nil { return } err = cmd.Start() if err != nil { return } scanner := bufio.NewScanner(stderr) for scanner.Scan() { line := scanner.Text() switch { case strings.HasPrefix(line, "Target: "): inst.TargetTriple = line[8:] case line[0] == ' ': args := strings.Fields(line) for _, arg := range args[1:] { if strings.HasPrefix(arg, "-L") { inst.LibPaths = append(inst.LibPaths, arg[2:]) } } } } argv = append([]string{"-dumpversion"}, args...) stdout, err := exec.Command(gccgoPath, argv...).Output() if err != nil { return } inst.GccVersion = strings.TrimSpace(string(stdout)) return } // Return the list of export search paths for this GccgoInstallation. func (inst *GccgoInstallation) SearchPaths() (paths []string) { for _, lpath := range inst.LibPaths { spath := filepath.Join(lpath, "go", inst.GccVersion) fi, err := os.Stat(spath) if err != nil || !fi.IsDir() { continue } paths = append(paths, spath) spath = filepath.Join(spath, inst.TargetTriple) fi, err = os.Stat(spath) if err != nil || !fi.IsDir() { continue } paths = append(paths, spath) } paths = append(paths, inst.LibPaths...) return } // Return an importer that searches incpaths followed by the gcc installation's // built-in search paths and the current directory. func (inst *GccgoInstallation) GetImporter(incpaths []string, initmap map[*types.Package]InitData) Importer { return GetImporter(append(append(incpaths, inst.SearchPaths()...), "."), initmap) }
Close