File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
lib/rex/payloads/meterpreter Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -66,12 +66,12 @@ def transport_block(opts)
66
66
67
67
# if the transport URI is for a HTTP payload we need to add a stack
68
68
# of other stuff
69
- pack = 'VVVA* '
69
+ pack = 'A*VVV '
70
70
transport_data = [
71
+ to_wchar_t ( url , URL_SIZE ) , # transport URL
71
72
opts [ :comm_timeout ] , # communications timeout
72
73
opts [ :retry_total ] , # retry total time
73
- opts [ :retry_wait ] , # retry wait time
74
- to_wchar_t ( url , URL_SIZE ) # transport URL
74
+ opts [ :retry_wait ] # retry wait time
75
75
]
76
76
77
77
if url . start_with? ( 'http' )
@@ -116,10 +116,11 @@ def config_block
116
116
config << transport_block ( t )
117
117
end
118
118
119
- # terminate the transports with a single NULL byte
120
- config << "\x00 "
119
+ # terminate the transports with NULL (wchar)
120
+ config << "\x00 \x00 "
121
121
122
- # configure the extensions
122
+ # configure the extensions - this will have to change when posix comes
123
+ # into play.
123
124
file_extension = 'x86.dll'
124
125
file_extension = 'x64.dll' unless is_x86?
125
126
You can’t perform that action at this time.
0 commit comments