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 /
internal /
poll /
[ HOME SHELL ]
Name
Size
Permission
Action
errno_unix.go
738
B
-rw-r--r--
errno_windows.go
724
B
-rw-r--r--
error_linux_test.go
748
B
-rw-r--r--
error_stub_test.go
412
B
-rw-r--r--
error_test.go
1.04
KB
-rw-r--r--
export_posix_test.go
481
B
-rw-r--r--
export_test.go
708
B
-rw-r--r--
export_windows_test.go
431
B
-rw-r--r--
fcntl_js.go
325
B
-rw-r--r--
fcntl_libc.go
365
B
-rw-r--r--
fcntl_syscall.go
484
B
-rw-r--r--
fd.go
2.1
KB
-rw-r--r--
fd_fsync_darwin.go
535
B
-rw-r--r--
fd_fsync_posix.go
428
B
-rw-r--r--
fd_fsync_windows.go
358
B
-rw-r--r--
fd_io_plan9.go
2.1
KB
-rw-r--r--
fd_mutex.go
6.42
KB
-rw-r--r--
fd_mutex_test.go
3.88
KB
-rw-r--r--
fd_opendir_darwin.go
847
B
-rw-r--r--
fd_plan9.go
4.97
KB
-rw-r--r--
fd_poll_js.go
2.27
KB
-rw-r--r--
fd_poll_runtime.go
3.74
KB
-rw-r--r--
fd_posix.go
1.05
KB
-rw-r--r--
fd_posix_test.go
1.27
KB
-rw-r--r--
fd_unix.go
13.51
KB
-rw-r--r--
fd_windows.go
28.75
KB
-rw-r--r--
fd_windows_test.go
2.25
KB
-rw-r--r--
fd_writev_darwin.go
388
B
-rw-r--r--
fd_writev_unix.go
502
B
-rw-r--r--
hook_cloexec.go
371
B
-rw-r--r--
hook_unix.go
481
B
-rw-r--r--
hook_windows.go
668
B
-rw-r--r--
read_test.go
1.07
KB
-rw-r--r--
sendfile_bsd.go
1.17
KB
-rw-r--r--
sendfile_linux.go
1.1
KB
-rw-r--r--
sendfile_solaris.go
1.46
KB
-rw-r--r--
sendfile_windows.go
2.01
KB
-rw-r--r--
sock_cloexec.go
1.76
KB
-rw-r--r--
sockopt.go
1.08
KB
-rw-r--r--
sockopt_linux.go
490
B
-rw-r--r--
sockopt_unix.go
532
B
-rw-r--r--
sockopt_windows.go
862
B
-rw-r--r--
sockoptip.go
866
B
-rw-r--r--
splice_linux.go
5.66
KB
-rw-r--r--
strconv.go
946
B
-rw-r--r--
sys_cloexec.go
1.1
KB
-rw-r--r--
writev.go
1.76
KB
-rw-r--r--
writev_test.go
1.31
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : fd_windows_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 poll_test import ( "fmt" "internal/poll" "os" "sync" "syscall" "testing" ) type loggedFD struct { Net string FD *poll.FD Err error } var ( logMu sync.Mutex loggedFDs map[syscall.Handle]*loggedFD ) func logFD(net string, fd *poll.FD, err error) { logMu.Lock() defer logMu.Unlock() loggedFDs[fd.Sysfd] = &loggedFD{ Net: net, FD: fd, Err: err, } } func init() { loggedFDs = make(map[syscall.Handle]*loggedFD) *poll.LogInitFD = logFD } func findLoggedFD(h syscall.Handle) (lfd *loggedFD, found bool) { logMu.Lock() defer logMu.Unlock() lfd, found = loggedFDs[h] return lfd, found } // checkFileIsNotPartOfNetpoll verifies that f is not managed by netpoll. // It returns error, if check fails. func checkFileIsNotPartOfNetpoll(f *os.File) error { lfd, found := findLoggedFD(syscall.Handle(f.Fd())) if !found { return fmt.Errorf("%v fd=%v: is not found in the log", f.Name(), f.Fd()) } if lfd.FD.IsPartOfNetpoll() { return fmt.Errorf("%v fd=%v: is part of netpoll, but should not be (logged: net=%v err=%v)", f.Name(), f.Fd(), lfd.Net, lfd.Err) } return nil } func TestFileFdsAreInitialised(t *testing.T) { exe, err := os.Executable() if err != nil { t.Fatal(err) } f, err := os.Open(exe) if err != nil { t.Fatal(err) } defer f.Close() err = checkFileIsNotPartOfNetpoll(f) if err != nil { t.Fatal(err) } } func TestSerialFdsAreInitialised(t *testing.T) { for _, name := range []string{"COM1", "COM2", "COM3", "COM4"} { t.Run(name, func(t *testing.T) { h, err := syscall.CreateFile(syscall.StringToUTF16Ptr(name), syscall.GENERIC_READ|syscall.GENERIC_WRITE, 0, nil, syscall.OPEN_EXISTING, syscall.FILE_ATTRIBUTE_NORMAL|syscall.FILE_FLAG_OVERLAPPED, 0) if err != nil { if errno, ok := err.(syscall.Errno); ok { switch errno { case syscall.ERROR_FILE_NOT_FOUND, syscall.ERROR_ACCESS_DENIED: t.Log("Skipping: ", err) return } } t.Fatal(err) } f := os.NewFile(uintptr(h), name) defer f.Close() err = checkFileIsNotPartOfNetpoll(f) if err != nil { t.Fatal(err) } }) } }
Close