Documentation
¶
Index ¶
Constants ¶
View Source
const TokenExpireTime = 20 // second
TokenExpireTime is used to prevent repeat execute payload.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Logger is used to set server logger writer.
Logger io.Writer
// Hostname can be set IP address or domain name,
// If enable AutoCert, must set domain name.
Hostname string
// PayloadDir contains Java class files.
PayloadDir string
// about servers network and address.
HTTPNetwork string
HTTPAddress string
LDAPNetwork string
LDAPAddress string
// AutoCert is used to ACME client to sign
// certificate automatically, don't need to
// set EnableTLS true again.
AutoCert bool
// EnableTLS is used to enable ldaps and
// https server, must set TLS certificate.
EnableTLS bool
// TLSCert is used to for ldaps and https.
TLSCert tls.Certificate
}
Config contains configurations about log4shell server.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is used to create an exploit server that contain a http server and ldap server(can wrap tls), it used to check and exploit Apache Log4j2 vulnerability easily.
func (*Server) HTTPAddress ¶ added in v1.0.2
HTTPAddress is used to get the http listener address.
func (*Server) IsEnableTLS ¶ added in v1.0.2
IsEnableTLS is used to get the log4shell server is enabled TLS.
func (*Server) LDAPAddress ¶ added in v1.0.2
LDAPAddress is used to get the ldap listener address.
Click to show internal directories.
Click to hide internal directories.
