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 /
go /
internal /
base /
[ HOME SHELL ]
Name
Size
Permission
Action
base.go
4.62
KB
-rw-r--r--
env.go
588
B
-rw-r--r--
flag.go
958
B
-rw-r--r--
goflags.go
4.4
KB
-rw-r--r--
path.go
1.24
KB
-rw-r--r--
signal.go
660
B
-rw-r--r--
signal_notunix.go
415
B
-rw-r--r--
signal_unix.go
472
B
-rw-r--r--
tool.go
1021
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : path.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 base import ( "os" "path/filepath" "strings" ) func getwd() string { wd, err := os.Getwd() if err != nil { Fatalf("cannot determine current directory: %v", err) } return wd } var Cwd = getwd() // ShortPath returns an absolute or relative name for path, whatever is shorter. func ShortPath(path string) string { if rel, err := filepath.Rel(Cwd, path); err == nil && len(rel) < len(path) { return rel } return path } // RelPaths returns a copy of paths with absolute paths // made relative to the current directory if they would be shorter. func RelPaths(paths []string) []string { var out []string // TODO(rsc): Can this use Cwd from above? pwd, _ := os.Getwd() for _, p := range paths { rel, err := filepath.Rel(pwd, p) if err == nil && len(rel) < len(p) { p = rel } out = append(out, p) } return out } // IsTestFile reports whether the source file is a set of tests and should therefore // be excluded from coverage analysis. func IsTestFile(file string) bool { // We don't cover tests, only the code they test. return strings.HasSuffix(file, "_test.go") }
Close