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 /
web /
[ HOME SHELL ]
Name
Size
Permission
Action
api.go
7.09
KB
-rw-r--r--
bootstrap.go
635
B
-rw-r--r--
file_test.go
1.13
KB
-rw-r--r--
http.go
6.07
KB
-rw-r--r--
url.go
2.05
KB
-rw-r--r--
url_other.go
445
B
-rw-r--r--
url_other_test.go
827
B
-rw-r--r--
url_test.go
1.67
KB
-rw-r--r--
url_windows.go
1.52
KB
-rw-r--r--
url_windows_test.go
3.08
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : file_test.go
// Copyright 2019 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 web import ( "errors" "io/ioutil" "os" "path/filepath" "testing" ) func TestGetFileURL(t *testing.T) { const content = "Hello, file!\n" f, err := ioutil.TempFile("", "web-TestGetFileURL") if err != nil { t.Fatal(err) } defer os.Remove(f.Name()) if _, err := f.WriteString(content); err != nil { t.Error(err) } if err := f.Close(); err != nil { t.Fatal(err) } u, err := urlFromFilePath(f.Name()) if err != nil { t.Fatal(err) } b, err := GetBytes(u) if err != nil { t.Fatalf("GetBytes(%v) = _, %v", u, err) } if string(b) != content { t.Fatalf("after writing %q to %s, GetBytes(%v) read %q", content, f.Name(), u, b) } } func TestGetNonexistentFile(t *testing.T) { path, err := filepath.Abs("nonexistent") if err != nil { t.Fatal(err) } u, err := urlFromFilePath(path) if err != nil { t.Fatal(err) } b, err := GetBytes(u) if !errors.Is(err, os.ErrNotExist) { t.Fatalf("GetBytes(%v) = %q, %v; want _, os.ErrNotExist", u, b, err) } }
Close