You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Separate SSL and SRVSSL options for client and server connections
This commit introduces a clear separation between SSL options for client
connections (SSL) and server connections (SRVSSL) to prevent accidental
HTTPS server activation and improve module clarity.
Changes:
- Add SRVSSL option in SocketServer mixin (default: false)
- Remove SSL option from TcpServer (now uses SRVSSL from SocketServer)
- Update HttpServer.start_service to accept opts['Ssl'] as override
- Update all modules to use SRVSSL for server-side SSL configuration
- Update modules that used 'ssl' => false to use 'Ssl' => false
- Update documentation to reflect SRVSSL usage
- Update msftidy to recognize SRVSSL as universal option
This ensures that server and client SSL configurations are independent,
preventing unintended HTTPS server activation when SSL is enabled for
client connections.
Copy file name to clipboardExpand all lines: documentation/modules/auxiliary/server/capture/mysql.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,9 +24,9 @@ This module creates a mock MySQL server which accepts credentials. Upon receivi
24
24
25
25
The MySQL version to print in the login banner. Default is `5.5.16`.
26
26
27
-
### SSL
27
+
### SRVSSL
28
28
29
-
Boolean if SSL should be used. Default is `False`.
29
+
Boolean if SSL/TLS should be used for the server. Default is `False`. Note: This option is separate from the `SSL` option which controls client connections.
Copy file name to clipboardExpand all lines: documentation/modules/auxiliary/server/capture/postgresql.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,9 @@ This module creates a mock PostgreSQL server which accepts credentials. Upon re
9
9
10
10
## Options
11
11
12
-
### SSL
12
+
### SRVSSL
13
13
14
-
Boolean if SSL should be used. Default is `False`.
14
+
Boolean if SSL/TLS should be used for the server. Default is `False`. Note: This option is separate from the `SSL` option which controls client connections.
Copy file name to clipboardExpand all lines: documentation/modules/auxiliary/server/capture/telnet.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ This module creates a mock telnet server which accepts credentials. Upon receiv
12
12
13
13
The Banner which should be displayed. Default is empty, which will display `Welcome`.
14
14
15
-
### SSL
15
+
### SRVSSL
16
16
17
-
Boolean if SSL should be used. Default is `False`.
17
+
Boolean if SSL/TLS should be used for the server. Default is `False`. Note: This option is separate from the `SSL` option which controls client connections.
Copy file name to clipboardExpand all lines: documentation/modules/auxiliary/server/capture/vnc.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,9 +16,9 @@ This module creates a mock VNC server which accepts credentials. Upon receiving
16
16
17
17
Write a file containing a John the Ripper format for cracking the credentials. Default is ``.
18
18
19
-
### SSL
19
+
### SRVSSL
20
20
21
-
Boolean if SSL should be used. Default is `False`.
21
+
Boolean if SSL/TLS should be used for the server. Default is `False`. Note: This option is separate from the `SSL` option which controls client connections.
Copy file name to clipboardExpand all lines: lib/msf/core/exploit/remote/socket_server.rb
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@ def initialize(info = {})
20
20
[
21
21
OptAddressLocal.new('SRVHOST',[true,'The local host or network interface to listen on. This must be an address on the local machine or 0.0.0.0 to listen on all addresses.','0.0.0.0']),
22
22
OptPort.new('SRVPORT',[true,"The local port to listen on.",8080]),
23
+
OptBool.new('SRVSSL',[false,'Negotiate SSL/TLS for the server (overrides SSL option for server-side connections)',false])
0 commit comments