Skip to content

Commit

Permalink
Rename METERPRETER_TRANSPORT_SSL to ..._TCP
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
RageLtMan committed Sep 17, 2017
1 parent 6985469 commit 271bd4c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rex/post/meterpreter/client_core.rb
Expand Up @@ -37,7 +37,7 @@ class ClientCore < Extension
UNIX_PATH_MAX = 108
DEFAULT_SOCK_PATH = "/tmp/meterpreter.sock"

METERPRETER_TRANSPORT_SSL = 0
METERPRETER_TRANSPORT_TCP = 0
METERPRETER_TRANSPORT_HTTP = 1
METERPRETER_TRANSPORT_HTTPS = 2

Expand All @@ -47,10 +47,10 @@ class ClientCore < Extension
TIMEOUT_RETRY_WAIT = 10 # 10 seconds

VALID_TRANSPORTS = {
'reverse_tcp' => METERPRETER_TRANSPORT_SSL,
'reverse_tcp' => METERPRETER_TRANSPORT_TCP,
'reverse_http' => METERPRETER_TRANSPORT_HTTP,
'reverse_https' => METERPRETER_TRANSPORT_HTTPS,
'bind_tcp' => METERPRETER_TRANSPORT_SSL
'bind_tcp' => METERPRETER_TRANSPORT_TCP
}

include Rex::Payloads::Meterpreter::UriChecksum
Expand Down

0 comments on commit 271bd4c

Please sign in to comment.