Documentation ¶
Index ¶
- Constants
- Variables
- func GenerateTLSCertificate(common string) (*tls.Certificate, error)
- func LoadTLSCertificate(pub_path string, pkey_path string) (*tls.Certificate, error)
- type BlacklistItem
- type CertDb
- type Http
- type Nameserver
- type Server
- type Service
- type WebDav
- type WebDavFS
- func (fs *WebDavFS) Mkdir(ctx context.Context, name string, perm os.FileMode) error
- func (fs *WebDavFS) OpenFile(ctx context.Context, name string, flag int, perm os.FileMode) (webdav.File, error)
- func (fs *WebDavFS) RemoveAll(ctx context.Context, name string) error
- func (fs *WebDavFS) Rename(ctx context.Context, oldName, newName string) error
- func (fs *WebDavFS) Stat(ctx context.Context, name string) (os.FileInfo, error)
- type WebDavFile
- func (f *WebDavFile) Close() error
- func (f *WebDavFile) Read(p []byte) (n int, err error)
- func (f *WebDavFile) Readdir(count int) ([]os.FileInfo, error)
- func (f *WebDavFile) Seek(offset int64, whence int) (int64, error)
- func (f *WebDavFile) Stat() (os.FileInfo, error)
- func (f *WebDavFile) Write(p []byte) (n int, err error)
- type WebDavFileInfo
Constants ¶
View Source
const ADMIN_DIR = "admin"
View Source
const (
API_PATH = "api/v1"
)
View Source
const BLACKLIST_HITS_LIMIT = 10
View Source
const BLACKLIST_JAIL_TIME_SECS = 10 * 60
View Source
const EXEC_NAME = "pwndrop"
View Source
const INSTALL_DIR = "/usr/local/pwndrop"
Variables ¶
View Source
var Cfg *config.Config
Functions ¶
func GenerateTLSCertificate ¶
func GenerateTLSCertificate(common string) (*tls.Certificate, error)
func LoadTLSCertificate ¶
func LoadTLSCertificate(pub_path string, pkey_path string) (*tls.Certificate, error)
Types ¶
type BlacklistItem ¶
type BlacklistItem struct {
// contains filtered or unexported fields
}
type CertDb ¶
func (*CertDb) SetManagedHostnames ¶
type Nameserver ¶
type Nameserver struct {
// contains filtered or unexported fields
}
func NewNameserver ¶
func NewNameserver(ch_exit *chan bool) (*Nameserver, error)
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) FileExists ¶
type WebDavFS ¶
type WebDavFS struct {
// contains filtered or unexported fields
}
type WebDavFile ¶
func (*WebDavFile) Close ¶
func (f *WebDavFile) Close() error
type WebDavFileInfo ¶
func (*WebDavFileInfo) IsDir ¶
func (fi *WebDavFileInfo) IsDir() bool
func (*WebDavFileInfo) ModTime ¶
func (fi *WebDavFileInfo) ModTime() time.Time
func (*WebDavFileInfo) Mode ¶
func (fi *WebDavFileInfo) Mode() os.FileMode
func (*WebDavFileInfo) Name ¶
func (fi *WebDavFileInfo) Name() string
func (*WebDavFileInfo) Size ¶
func (fi *WebDavFileInfo) Size() int64
func (*WebDavFileInfo) Sys ¶
func (fi *WebDavFileInfo) Sys() interface{}
Click to show internal directories.
Click to hide internal directories.