Skip to content

Commit 4fdb54e

Browse files
RageLtManBrent Cook
authored andcommitted
Fixup transport to work with upstream
Differences in transport configuration and the actual payload do not allow a direct splice of the original files included. Clean up the payload generator to work with upstream handler, payload, and transport configuration implementation. Initial testing shows inbound sessions are created and SSL cert is now properly attaching to the handler.
1 parent a747099 commit 4fdb54e

File tree

1 file changed

+4
-11
lines changed

1 file changed

+4
-11
lines changed

lib/msf/core/payload/python/reverse_tcp_ssl.rb

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,28 @@
11
# -*- coding: binary -*-
22

33
require 'msf/core'
4-
require 'msf/core/payload/windows/verify_ssl'
54
require 'msf/core/payload/python/reverse_tcp'
65

76
module Msf
87

98
###
109
#
11-
# Complex reverse_tcp payload generation for Python
10+
# Complex reverse_tcp_ssl payload generation for Python
1211
#
1312
###
1413

1514
module Payload::Python::ReverseTcpSsl
1615

1716
include Msf::Payload::Python
1817
include Msf::Payload::Python::ReverseTcp
19-
include Msf::Payload::Windows::VerifySsl
2018

2119
#
2220
# Generate the first stage
2321
#
2422
def generate
25-
verify_cert_hash = get_ssl_cert_hash(datastore['StagerVerifySSLCert'],
26-
datastore['HandlerSSLCert'])
2723
conf = {
2824
port: datastore['LPORT'],
29-
host: datastore['LHOST'],
30-
retry_count: datastore['ReverseConnectRetries'],
31-
ssl: true,
32-
verify_cert_hash: verify_cert_hash
25+
host: datastore['LHOST']
3326
}
3427

3528
generate_reverse_tcp_ssl(conf)
@@ -43,8 +36,8 @@ def include_send_uuid
4336
false
4437
end
4538

46-
def transport_config(opts={})
47-
transport_config_reverse_tcp_ssl(opts)
39+
def supports_ssl?
40+
true
4841
end
4942

5043
def generate_reverse_tcp_ssl(opts={})

0 commit comments

Comments
 (0)