Exploit databaseDownload repository ZIP
GH-5bd7c4684546865950808f274a4c83a9
adblox/test
Sources for CVE-2018-1002103
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files39
adblox/testRevision 825666529bd6
- ↑..Parent directory
- ufs/
- .gitignore
- LICENSE
- README.md
- clnt_clnt.go
- clnt_close.go
- clnt_mount.go
- clnt_open.go
- clnt_pool.go
- clnt_read.go
- clnt_remove.go
- clnt_stat.go
- clnt_stats_http.go
- clnt_tag.go
- clnt_walk.go
- clnt_write.go
- debug.go
- fmt.go
- log.go
- osusers.go
- p9.go
- packr.go
- packt.go
- srv_conn.go
- srv_fcall.go
- srv_file.go
- srv_pipe.go
- srv_pipe_darwin.go
- srv_pipe_linux.go
- srv_pipe_windows.go
- srv_respond.go
- srv_srv.go
- srv_stats_http.go
- stats.go
- ufs.go
- ufs_darwin.go
- ufs_linux.go
- ufs_windows.go
- unpack.go
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
third_party/go9p/clnt_remove.go
Go · 722 bytes// Copyright 2009 The Go9p 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 go9p
// Removes the file associated with the Fid. Returns nil if the
// operation is successful.
func (clnt *Clnt) Remove(fid *Fid) error {
tc := clnt.NewFcall()
err := PackTremove(tc, fid.Fid)
if err != nil {
return err
}
_, err = clnt.Rpc(tc)
clnt.fidpool.putId(fid.Fid)
fid.Fid = NOFID
return err
}
// Removes the named file. Returns nil if the operation is successful.
func (clnt *Clnt) FRemove(path string) error {
var err error
fid, err := clnt.FWalk(path)
if err != nil {
return err
}
err = clnt.Remove(fid)
return err
}