Linux id-dci-web1412.main-hosting.eu 5.14.0-611.20.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 14 06:35:04 EST 2026 x86_64
LiteSpeed
: 2a02:4780:6:1512:0:19fc:adf1:2 | : 216.73.216.184
Cant Read [ /etc/named.conf ]
8.1.34
u435990001
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
opt /
go /
pkg /
mod /
golang.org /
x /
crypto@v0.18.0 /
ssh /
[ HOME SHELL ]
Name
Size
Permission
Action
agent
[ DIR ]
dr-xr-xr-x
internal
[ DIR ]
dr-xr-xr-x
knownhosts
[ DIR ]
dr-xr-xr-x
terminal
[ DIR ]
dr-xr-xr-x
test
[ DIR ]
dr-xr-xr-x
testdata
[ DIR ]
dr-xr-xr-x
benchmark_test.go
2.33
KB
-r--r--r--
buffer.go
2.13
KB
-r--r--r--
buffer_test.go
2.17
KB
-r--r--r--
certs.go
17.5
KB
-r--r--r--
certs_test.go
13.67
KB
-r--r--r--
channel.go
16.12
KB
-r--r--r--
cipher.go
21.25
KB
-r--r--r--
cipher_test.go
6.13
KB
-r--r--r--
client.go
8.58
KB
-r--r--r--
client_auth.go
23.27
KB
-r--r--r--
client_auth_test.go
32.46
KB
-r--r--r--
client_test.go
8.62
KB
-r--r--r--
common.go
13.2
KB
-r--r--r--
common_test.go
3.71
KB
-r--r--r--
connection.go
3.33
KB
-r--r--r--
doc.go
1007
B
-r--r--r--
example_test.go
10.79
KB
-r--r--r--
handshake.go
21.73
KB
-r--r--r--
handshake_test.go
26.84
KB
-r--r--r--
kex.go
22.18
KB
-r--r--r--
kex_test.go
2.45
KB
-r--r--r--
keys.go
44.73
KB
-r--r--r--
keys_test.go
19.62
KB
-r--r--r--
mac.go
1.54
KB
-r--r--r--
mempipe_test.go
2.3
KB
-r--r--r--
messages.go
20.28
KB
-r--r--r--
messages_test.go
6.05
KB
-r--r--r--
mux.go
7.88
KB
-r--r--r--
mux_test.go
18.06
KB
-r--r--r--
server.go
25.93
KB
-r--r--r--
server_test.go
3.33
KB
-r--r--r--
session.go
15.08
KB
-r--r--r--
session_test.go
21.29
KB
-r--r--r--
ssh_gss.go
5.44
KB
-r--r--r--
ssh_gss_test.go
3.23
KB
-r--r--r--
streamlocal.go
2.87
KB
-r--r--r--
tcpip.go
12.84
KB
-r--r--r--
tcpip_test.go
1.45
KB
-r--r--r--
testdata_test.go
2.11
KB
-r--r--r--
transport.go
9.76
KB
-r--r--r--
transport_test.go
2.73
KB
-r--r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : buffer_test.go
// Copyright 2011 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 ssh import ( "io" "testing" ) var alphabet = []byte("abcdefghijklmnopqrstuvwxyz") func TestBufferReadwrite(t *testing.T) { b := newBuffer() b.write(alphabet[:10]) r, _ := b.Read(make([]byte, 10)) if r != 10 { t.Fatalf("Expected written == read == 10, written: 10, read %d", r) } b = newBuffer() b.write(alphabet[:5]) r, _ = b.Read(make([]byte, 10)) if r != 5 { t.Fatalf("Expected written == read == 5, written: 5, read %d", r) } b = newBuffer() b.write(alphabet[:10]) r, _ = b.Read(make([]byte, 5)) if r != 5 { t.Fatalf("Expected written == 10, read == 5, written: 10, read %d", r) } b = newBuffer() b.write(alphabet[:5]) b.write(alphabet[5:15]) r, _ = b.Read(make([]byte, 10)) r2, _ := b.Read(make([]byte, 10)) if r != 10 || r2 != 5 || 15 != r+r2 { t.Fatal("Expected written == read == 15") } } func TestBufferClose(t *testing.T) { b := newBuffer() b.write(alphabet[:10]) b.eof() _, err := b.Read(make([]byte, 5)) if err != nil { t.Fatal("expected read of 5 to not return EOF") } b = newBuffer() b.write(alphabet[:10]) b.eof() r, err := b.Read(make([]byte, 5)) r2, err2 := b.Read(make([]byte, 10)) if r != 5 || r2 != 5 || err != nil || err2 != nil { t.Fatal("expected reads of 5 and 5") } b = newBuffer() b.write(alphabet[:10]) b.eof() r, err = b.Read(make([]byte, 5)) r2, err2 = b.Read(make([]byte, 10)) r3, err3 := b.Read(make([]byte, 10)) if r != 5 || r2 != 5 || r3 != 0 || err != nil || err2 != nil || err3 != io.EOF { t.Fatal("expected reads of 5 and 5 and 0, with EOF") } b = newBuffer() b.write(make([]byte, 5)) b.write(make([]byte, 10)) b.eof() r, err = b.Read(make([]byte, 9)) r2, err2 = b.Read(make([]byte, 3)) r3, err3 = b.Read(make([]byte, 3)) r4, err4 := b.Read(make([]byte, 10)) if err != nil || err2 != nil || err3 != nil || err4 != io.EOF { t.Fatalf("Expected EOF on forth read only, err=%v, err2=%v, err3=%v, err4=%v", err, err2, err3, err4) } if r != 9 || r2 != 3 || r3 != 3 || r4 != 0 { t.Fatal("Expected written == read == 15", r, r2, r3, r4) } }
Close