Skip to content

Commit 271bd4c

Browse files
author
RageLtMan
committed
Rename METERPRETER_TRANSPORT_SSL to ..._TCP
Since OpenSSL is no longer packages with meterpreter, and transport secrecy is handled at L7, the SSL cons name doesn't apply anymore. Rename METERPRETER_TRANSPORT_SSL to METERPRETER_TRANSPORT_TCP for consistency with wire-level implementation.
1 parent 6985469 commit 271bd4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/rex/post/meterpreter/client_core.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class ClientCore < Extension
3737
UNIX_PATH_MAX = 108
3838
DEFAULT_SOCK_PATH = "/tmp/meterpreter.sock"
3939

40-
METERPRETER_TRANSPORT_SSL = 0
40+
METERPRETER_TRANSPORT_TCP = 0
4141
METERPRETER_TRANSPORT_HTTP = 1
4242
METERPRETER_TRANSPORT_HTTPS = 2
4343

@@ -47,10 +47,10 @@ class ClientCore < Extension
4747
TIMEOUT_RETRY_WAIT = 10 # 10 seconds
4848

4949
VALID_TRANSPORTS = {
50-
'reverse_tcp' => METERPRETER_TRANSPORT_SSL,
50+
'reverse_tcp' => METERPRETER_TRANSPORT_TCP,
5151
'reverse_http' => METERPRETER_TRANSPORT_HTTP,
5252
'reverse_https' => METERPRETER_TRANSPORT_HTTPS,
53-
'bind_tcp' => METERPRETER_TRANSPORT_SSL
53+
'bind_tcp' => METERPRETER_TRANSPORT_TCP
5454
}
5555

5656
include Rex::Payloads::Meterpreter::UriChecksum

0 commit comments

Comments
 (0)