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 /
internal /
obj /
x86 /
[ HOME SHELL ]
Name
Size
Permission
Action
a.out.go
6.53
KB
-rw-r--r--
aenum.go
16.25
KB
-rw-r--r--
anames.go
19.07
KB
-rw-r--r--
asm6.go
139.71
KB
-rw-r--r--
asm_test.go
7.84
KB
-rw-r--r--
avx_optabs.go
260.28
KB
-rw-r--r--
evex.go
9.26
KB
-rw-r--r--
list6.go
4.06
KB
-rw-r--r--
obj6.go
33.33
KB
-rw-r--r--
obj6_test.go
4.41
KB
-rw-r--r--
pcrelative_test.go
2.32
KB
-rw-r--r--
ytab.go
1.19
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : pcrelative_test.go
// Copyright 2017 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 x86_test import ( "bytes" "fmt" "internal/testenv" "io/ioutil" "os" "os/exec" "path/filepath" "testing" ) const asmData = ` GLOBL zeros<>(SB),8,$64 TEXT ·testASM(SB),4,$0 VMOVUPS zeros<>(SB), %s // PC relative relocation is off by 1, for Y8-Y15, Z8-15 and Z24-Z31 RET ` const goData = ` package main func testASM() func main() { testASM() } ` func objdumpOutput(t *testing.T, mname, source string) []byte { tmpdir, err := ioutil.TempDir("", mname) if err != nil { t.Fatal(err) } defer os.RemoveAll(tmpdir) err = ioutil.WriteFile(filepath.Join(tmpdir, "go.mod"), []byte(fmt.Sprintf("module %s\n", mname)), 0666) if err != nil { t.Fatal(err) } tmpfile, err := os.Create(filepath.Join(tmpdir, "input.s")) if err != nil { t.Fatal(err) } defer tmpfile.Close() _, err = tmpfile.WriteString(source) if err != nil { t.Fatal(err) } tmpfile2, err := os.Create(filepath.Join(tmpdir, "input.go")) if err != nil { t.Fatal(err) } defer tmpfile2.Close() _, err = tmpfile2.WriteString(goData) if err != nil { t.Fatal(err) } cmd := exec.Command( testenv.GoToolPath(t), "build", "-o", filepath.Join(tmpdir, "output")) cmd.Env = append(os.Environ(), "GOARCH=amd64", "GOOS=linux", "GOPATH="+filepath.Join(tmpdir, "_gopath")) cmd.Dir = tmpdir out, err := cmd.CombinedOutput() if err != nil { t.Fatalf("error %s output %s", err, out) } cmd2 := exec.Command( testenv.GoToolPath(t), "tool", "objdump", "-s", "testASM", filepath.Join(tmpdir, "output")) cmd2.Env = cmd.Env cmd2.Dir = tmpdir objout, err := cmd2.CombinedOutput() if err != nil { t.Fatalf("error %s output %s", err, objout) } return objout } func TestVexEvexPCrelative(t *testing.T) { testenv.MustHaveGoBuild(t) LOOP: for _, reg := range []string{"Y0", "Y8", "Z0", "Z8", "Z16", "Z24"} { asm := fmt.Sprintf(asmData, reg) objout := objdumpOutput(t, "pcrelative", asm) data := bytes.Split(objout, []byte("\n")) for idx := len(data) - 1; idx >= 0; idx-- { // check that RET wasn't overwritten. if bytes.Index(data[idx], []byte("RET")) != -1 { if testing.Short() { break LOOP } continue LOOP } } t.Errorf("VMOVUPS zeros<>(SB), %s overwrote RET", reg) } }
Close