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 /
load /
[ HOME SHELL ]
Name
Size
Permission
Action
flag.go
2.62
KB
-rw-r--r--
flag_test.go
3.92
KB
-rw-r--r--
path.go
374
B
-rw-r--r--
pkg.go
75.18
KB
-rw-r--r--
pkg_test.go
2.24
KB
-rw-r--r--
search.go
1.68
KB
-rw-r--r--
test.go
20.86
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : search.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 load import ( "path/filepath" "strings" "cmd/go/internal/search" ) // MatchPackage(pattern, cwd)(p) reports whether package p matches pattern in the working directory cwd. func MatchPackage(pattern, cwd string) func(*Package) bool { switch { case search.IsRelativePath(pattern): // Split pattern into leading pattern-free directory path // (including all . and .. elements) and the final pattern. var dir string i := strings.Index(pattern, "...") if i < 0 { dir, pattern = pattern, "" } else { j := strings.LastIndex(pattern[:i], "/") dir, pattern = pattern[:j], pattern[j+1:] } dir = filepath.Join(cwd, dir) if pattern == "" { return func(p *Package) bool { return p.Dir == dir } } matchPath := search.MatchPattern(pattern) return func(p *Package) bool { // Compute relative path to dir and see if it matches the pattern. rel, err := filepath.Rel(dir, p.Dir) if err != nil { // Cannot make relative - e.g. different drive letters on Windows. return false } rel = filepath.ToSlash(rel) if rel == ".." || strings.HasPrefix(rel, "../") { return false } return matchPath(rel) } case pattern == "all": return func(p *Package) bool { return true } case pattern == "std": return func(p *Package) bool { return p.Standard } case pattern == "cmd": return func(p *Package) bool { return p.Standard && strings.HasPrefix(p.ImportPath, "cmd/") } default: matchPath := search.MatchPattern(pattern) return func(p *Package) bool { return matchPath(p.ImportPath) } } }
Close