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 /
cmd /
link /
internal /
ld /
[ HOME SHELL ]
Name
Size
Permission
Action
testdata
[ DIR ]
drwxr-xr-x
ar.go
5.1
KB
-rw-r--r--
config.go
6.24
KB
-rw-r--r--
data.go
72.8
KB
-rw-r--r--
deadcode.go
11.54
KB
-rw-r--r--
deadcode2.go
13.53
KB
-rw-r--r--
decodesym.go
10.94
KB
-rw-r--r--
dwarf.go
64.28
KB
-rw-r--r--
dwarf_test.go
33.2
KB
-rw-r--r--
elf.go
58.16
KB
-rw-r--r--
elf_test.go
1.56
KB
-rw-r--r--
execarchive.go
872
B
-rw-r--r--
execarchive_noexec.go
316
B
-rw-r--r--
go.go
9.29
KB
-rw-r--r--
issue33808_test.go
922
B
-rw-r--r--
ld.go
6.31
KB
-rw-r--r--
ld_test.go
3.11
KB
-rw-r--r--
lib.go
75.67
KB
-rw-r--r--
link.go
5.84
KB
-rw-r--r--
macho.go
28.6
KB
-rw-r--r--
macho_combine_dwarf.go
14.55
KB
-rw-r--r--
main.go
10.9
KB
-rw-r--r--
nooptcgolink_test.go
851
B
-rw-r--r--
outbuf.go
4.12
KB
-rw-r--r--
outbuf_mmap.go
1.14
KB
-rw-r--r--
outbuf_nommap.go
527
B
-rw-r--r--
outbuf_windows.go
1.21
KB
-rw-r--r--
pcln.go
15.26
KB
-rw-r--r--
pe.go
42.01
KB
-rw-r--r--
sym.go
3.73
KB
-rw-r--r--
symtab.go
22.75
KB
-rw-r--r--
typelink.go
1.33
KB
-rw-r--r--
util.go
2
KB
-rw-r--r--
xcoff.go
47.1
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : ld_test.go
// 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. package ld import ( "fmt" "internal/testenv" "io/ioutil" "os" "os/exec" "path/filepath" "runtime" "strings" "testing" ) func TestUndefinedRelocErrors(t *testing.T) { t.Parallel() testenv.MustHaveGoBuild(t) dir, err := ioutil.TempDir("", "go-build") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) out, err := exec.Command(testenv.GoToolPath(t), "build", "./testdata/issue10978").CombinedOutput() if err == nil { t.Fatal("expected build to fail") } wantErrors := map[string]int{ // Main function has dedicated error message. "function main is undeclared in the main package": 1, // Single error reporting per each symbol. // This way, duplicated messages are not reported for // multiple relocations with a same name. "main.defined1: relocation target main.undefined not defined": 1, "main.defined2: relocation target main.undefined not defined": 1, } unexpectedErrors := map[string]int{} for _, l := range strings.Split(string(out), "\n") { if strings.HasPrefix(l, "#") || l == "" { continue } matched := "" for want := range wantErrors { if strings.Contains(l, want) { matched = want break } } if matched != "" { wantErrors[matched]-- } else { unexpectedErrors[l]++ } } for want, n := range wantErrors { switch { case n > 0: t.Errorf("unmatched error: %s (x%d)", want, n) case n < 0: t.Errorf("extra errors: %s (x%d)", want, -n) } } for unexpected, n := range unexpectedErrors { t.Errorf("unexpected error: %s (x%d)", unexpected, n) } } const carchiveSrcText = ` package main //export GoFunc func GoFunc() { println(42) } func main() { } ` func TestArchiveBuildInvokeWithExec(t *testing.T) { t.Parallel() testenv.MustHaveGoBuild(t) testenv.MustHaveCGO(t) // run this test on just a small set of platforms (no need to test it // across the board given the nature of the test). pair := runtime.GOOS + "-" + runtime.GOARCH switch pair { case "darwin-amd64", "darwin-arm64", "linux-amd64", "freebsd-amd64": default: t.Skip("no need for test on " + pair) } switch runtime.GOOS { case "openbsd", "windows": t.Skip("c-archive unsupported") } dir, err := ioutil.TempDir("", "go-build") if err != nil { t.Fatal(err) } defer os.RemoveAll(dir) srcfile := filepath.Join(dir, "test.go") arfile := filepath.Join(dir, "test.a") if err := ioutil.WriteFile(srcfile, []byte(carchiveSrcText), 0666); err != nil { t.Fatal(err) } ldf := fmt.Sprintf("-ldflags=-v -tmpdir=%s", dir) argv := []string{"build", "-buildmode=c-archive", "-o", arfile, ldf, srcfile} out, err := exec.Command(testenv.GoToolPath(t), argv...).CombinedOutput() if err != nil { t.Fatalf("build failure: %s\n%s\n", err, string(out)) } found := false const want = "invoking archiver with syscall.Exec" for _, l := range strings.Split(string(out), "\n") { if strings.HasPrefix(l, want) { found = true break } } if !found { t.Errorf("expected '%s' in -v output, got:\n%s\n", want, string(out)) } }
Close