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.85
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 : ssh_gss_test.go
package ssh import ( "fmt" "testing" ) func TestParseGSSAPIPayload(t *testing.T) { payload := []byte{0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x0b, 0x06, 0x09, 0x2a, 0x86, 0x48, 0x86, 0xf7, 0x12, 0x01, 0x02, 0x02} res, err := parseGSSAPIPayload(payload) if err != nil { t.Fatal(err) } if ok := res.OIDS[0].Equal(krb5Mesh); !ok { t.Fatalf("got %v, want %v", res, krb5Mesh) } } func TestBuildMIC(t *testing.T) { sessionID := []byte{134, 180, 134, 194, 62, 145, 171, 82, 119, 149, 254, 196, 125, 173, 177, 145, 187, 85, 53, 183, 44, 150, 219, 129, 166, 195, 19, 33, 209, 246, 175, 121} username := "testuser" service := "ssh-connection" authMethod := "gssapi-with-mic" expected := []byte{0, 0, 0, 32, 134, 180, 134, 194, 62, 145, 171, 82, 119, 149, 254, 196, 125, 173, 177, 145, 187, 85, 53, 183, 44, 150, 219, 129, 166, 195, 19, 33, 209, 246, 175, 121, 50, 0, 0, 0, 8, 116, 101, 115, 116, 117, 115, 101, 114, 0, 0, 0, 14, 115, 115, 104, 45, 99, 111, 110, 110, 101, 99, 116, 105, 111, 110, 0, 0, 0, 15, 103, 115, 115, 97, 112, 105, 45, 119, 105, 116, 104, 45, 109, 105, 99} result := buildMIC(string(sessionID), username, service, authMethod) if string(result) != string(expected) { t.Fatalf("buildMic: got %v, want %v", result, expected) } } type exchange struct { outToken string expectedToken string } type FakeClient struct { exchanges []*exchange round int mic []byte maxRound int } func (f *FakeClient) InitSecContext(target string, token []byte, isGSSDelegCreds bool) (outputToken []byte, needContinue bool, err error) { if token == nil { if f.exchanges[f.round].expectedToken != "" { err = fmt.Errorf("got empty token, want %q", f.exchanges[f.round].expectedToken) } else { outputToken = []byte(f.exchanges[f.round].outToken) } } else { if string(token) != string(f.exchanges[f.round].expectedToken) { err = fmt.Errorf("got %q, want token %q", token, f.exchanges[f.round].expectedToken) } else { outputToken = []byte(f.exchanges[f.round].outToken) } } f.round++ needContinue = f.round < f.maxRound return } func (f *FakeClient) GetMIC(micField []byte) ([]byte, error) { return f.mic, nil } func (f *FakeClient) DeleteSecContext() error { return nil } type FakeServer struct { exchanges []*exchange round int expectedMIC []byte srcName string maxRound int } func (f *FakeServer) AcceptSecContext(token []byte) (outputToken []byte, srcName string, needContinue bool, err error) { if token == nil { if f.exchanges[f.round].expectedToken != "" { err = fmt.Errorf("got empty token, want %q", f.exchanges[f.round].expectedToken) } else { outputToken = []byte(f.exchanges[f.round].outToken) } } else { if string(token) != string(f.exchanges[f.round].expectedToken) { err = fmt.Errorf("got %q, want token %q", token, f.exchanges[f.round].expectedToken) } else { outputToken = []byte(f.exchanges[f.round].outToken) } } f.round++ needContinue = f.round < f.maxRound srcName = f.srcName return } func (f *FakeServer) VerifyMIC(micField []byte, micToken []byte) error { if string(micToken) != string(f.expectedMIC) { return fmt.Errorf("got MICToken %q, want %q", micToken, f.expectedMIC) } return nil } func (f *FakeServer) DeleteSecContext() error { return nil }
Close