Documentation ¶
Index ¶
- Constants
- type Conf
- func (c *Conf) CredFileLoc() (string, bool)
- func (c *Conf) Mode() uint8
- func (c *Conf) Parse() error
- func (c *Conf) RandCredentials() (user, password bool)
- func (c *Conf) SSTLSLoc() (string, bool)
- func (c *Conf) SetFlags(cmd *cobra.Command)
- func (c *Conf) SetupCertAndKey(fs *pflag.FlagSet) (location string, err error)
- func (c *Conf) SetupCredentials() error
- func (c *Conf) SetupServer(srvr *server.Server, args []string, ips []string) error
- func (c *Conf) StdinBufferLocation() string
Constants ¶
View Source
const ( DownloadMode uint8 = iota UploadMode CGIMode RedirectMode )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type Conf struct { NoInfo bool NoError bool Port string Host string Timeout time.Duration NoDownload bool Upload bool UploadFile bool UploadInput bool ExitOnFail bool ArchiveMethod string Mdns bool FileName string FileExt string FileMime string CertFile string KeyFile string Sstls bool Username string Password string PasswordFile string PasswordHidden bool RawHeaders []string Cgi bool CgiStrict bool // only valid if cgi is true ShellCommand bool Shell string // only used if shellCommand != "" Redirect bool RedirectStatus int ReplaceHeaders bool // only valid if cgi is true or shellCommand != "" EnvVars []string // only used if cgi is true or shellCommand != "" CgiStderr string // only used if cgi is true or shellCommand != "" Dir string // only used if cgi is true or shellCommand != "" NoUnixNorm bool WaitForEOF bool AllowBots bool NoCSRFToken bool CustomCSRFToken string UploadHTML string // contains filtered or unexported fields }
func (*Conf) CredFileLoc ¶
CredFileLoc returns an empty string and false if randomly generated were never written to disk
func (*Conf) RandCredentials ¶
func (*Conf) SSTLSLoc ¶
SSTLSLoc returns an empty string and false if self signed tls cert is not being used
func (*Conf) SetupCertAndKey ¶
setupCertAndKey checks to see if we need to self-sign any certificates, and if so it returns their location
func (*Conf) SetupCredentials ¶
func (*Conf) SetupServer ¶
func (*Conf) StdinBufferLocation ¶
Click to show internal directories.
Click to hide internal directories.