diff --git a/modules/api_rest/api_rest.go b/modules/api_rest/api_rest.go index b0c8a069..b4590e18 100644 --- a/modules/api_rest/api_rest.go +++ b/modules/api_rest/api_rest.go @@ -90,12 +90,12 @@ func NewRestAPI(s *session.Session) *RestAPI { "Value of the Access-Control-Allow-Origin header of the API server.")) mod.AddParam(session.NewStringParameter("api.rest.username", - "", + "user", "", "API authentication username.")) mod.AddParam(session.NewStringParameter("api.rest.password", - "", + "pass", "", "API authentication password.")) diff --git a/modules/http_server/http_server.go b/modules/http_server/http_server.go index 25cd7802..da309d3d 100644 --- a/modules/http_server/http_server.go +++ b/modules/http_server/http_server.go @@ -31,20 +31,20 @@ func NewHttpServer(s *session.Session) *HttpServer { mod.AddParam(session.NewStringParameter("http.server.address", session.ParamIfaceAddress, session.IPv4Validator, - "Address to bind the http server to.")) + "Address to bind the HTTP server to.")) mod.AddParam(session.NewIntParameter("http.server.port", "80", - "Port to bind the http server to.")) + "Port to bind the HTTP server to.")) mod.AddHandler(session.NewModuleHandler("http.server on", "", - "Start httpd server.", + "Start HTTP server.", func(args []string) error { return mod.Start() })) mod.AddHandler(session.NewModuleHandler("http.server off", "", - "Stop httpd server.", + "Stop HTTP server.", func(args []string) error { return mod.Stop() })) diff --git a/modules/https_server/https_server.go b/modules/https_server/https_server.go index 8e547fa7..2f3fd0a6 100644 --- a/modules/https_server/https_server.go +++ b/modules/https_server/https_server.go @@ -35,11 +35,11 @@ func NewHttpsServer(s *session.Session) *HttpsServer { mod.AddParam(session.NewStringParameter("https.server.address", session.ParamIfaceAddress, session.IPv4Validator, - "Address to bind the http server to.")) + "Address to bind the HTTPS server to.")) mod.AddParam(session.NewIntParameter("https.server.port", "443", - "Port to bind the http server to.")) + "Port to bind the HTTPS server to.")) mod.AddParam(session.NewStringParameter("https.server.certificate", "~/.bettercap-httpd.cert.pem", @@ -54,13 +54,13 @@ func NewHttpsServer(s *session.Session) *HttpsServer { tls.CertConfigToModule("https.server", &mod.SessionModule, tls.DefaultLegitConfig) mod.AddHandler(session.NewModuleHandler("https.server on", "", - "Start https server.", + "Start HTTPS server.", func(args []string) error { return mod.Start() })) mod.AddHandler(session.NewModuleHandler("https.server off", "", - "Stop https server.", + "Stop HTTPS server.", func(args []string) error { return mod.Stop() }))