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 /
mod@v0.14.0 /
sumdb /
[ HOME SHELL ]
Name
Size
Permission
Action
dirhash
[ DIR ]
dr-xr-xr-x
note
[ DIR ]
dr-xr-xr-x
storage
[ DIR ]
dr-xr-xr-x
tlog
[ DIR ]
dr-xr-xr-x
cache.go
1.46
KB
-r--r--r--
client.go
20.16
KB
-r--r--r--
client_test.go
13.38
KB
-r--r--r--
server.go
4.87
KB
-r--r--r--
test.go
2.82
KB
-r--r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : 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 sumdb import ( "context" "fmt" "sync" "golang.org/x/mod/module" "golang.org/x/mod/sumdb/note" "golang.org/x/mod/sumdb/tlog" ) // NewTestServer constructs a new [TestServer] // that will sign its tree with the given signer key // (see [golang.org/x/mod/sumdb/note]) // and fetch new records as needed by calling gosum. func NewTestServer(signer string, gosum func(path, vers string) ([]byte, error)) *TestServer { return &TestServer{signer: signer, gosum: gosum} } // A TestServer is an in-memory implementation of [ServerOps] for testing. type TestServer struct { signer string gosum func(path, vers string) ([]byte, error) mu sync.Mutex hashes testHashes records [][]byte lookup map[string]int64 } // testHashes implements tlog.HashReader, reading from a slice. type testHashes []tlog.Hash func (h testHashes) ReadHashes(indexes []int64) ([]tlog.Hash, error) { var list []tlog.Hash for _, id := range indexes { list = append(list, h[id]) } return list, nil } func (s *TestServer) Signed(ctx context.Context) ([]byte, error) { s.mu.Lock() defer s.mu.Unlock() size := int64(len(s.records)) h, err := tlog.TreeHash(size, s.hashes) if err != nil { return nil, err } text := tlog.FormatTree(tlog.Tree{N: size, Hash: h}) signer, err := note.NewSigner(s.signer) if err != nil { return nil, err } return note.Sign(¬e.Note{Text: string(text)}, signer) } func (s *TestServer) ReadRecords(ctx context.Context, id, n int64) ([][]byte, error) { s.mu.Lock() defer s.mu.Unlock() var list [][]byte for i := int64(0); i < n; i++ { if id+i >= int64(len(s.records)) { return nil, fmt.Errorf("missing records") } list = append(list, s.records[id+i]) } return list, nil } func (s *TestServer) Lookup(ctx context.Context, m module.Version) (int64, error) { key := m.String() s.mu.Lock() id, ok := s.lookup[key] s.mu.Unlock() if ok { return id, nil } // Look up module and compute go.sum lines. data, err := s.gosum(m.Path, m.Version) if err != nil { return 0, err } s.mu.Lock() defer s.mu.Unlock() // We ran the fetch without the lock. // If another fetch happened and committed, use it instead. id, ok = s.lookup[key] if ok { return id, nil } // Add record. id = int64(len(s.records)) s.records = append(s.records, data) if s.lookup == nil { s.lookup = make(map[string]int64) } s.lookup[key] = id hashes, err := tlog.StoredHashesForRecordHash(id, tlog.RecordHash(data), s.hashes) if err != nil { panic(err) } s.hashes = append(s.hashes, hashes...) return id, nil } func (s *TestServer) ReadTileData(ctx context.Context, t tlog.Tile) ([]byte, error) { s.mu.Lock() defer s.mu.Unlock() return tlog.ReadTileData(t, s.hashes) }
Close