File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
lib/rex/payloads/meterpreter Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def to_str(item, size)
39
39
end
40
40
41
41
def to_wchar_t ( item , size )
42
- to_ascii ( item , size ) . unpack ( "C*" ) . pack ( "v*" )
42
+ to_ascii ( item , size ) . unpack ( 'C*' ) . pack ( 'v*' )
43
43
end
44
44
45
45
def to_ascii ( item , size )
@@ -57,7 +57,7 @@ def session_block(opts)
57
57
uuid # the UUID
58
58
]
59
59
60
- session_data . pack ( " VVVA*" )
60
+ session_data . pack ( ' VVVA*' )
61
61
end
62
62
63
63
def transport_block ( opts )
@@ -117,7 +117,7 @@ def extension_block(ext_name, file_extension)
117
117
ext , o = load_rdi_dll ( MetasploitPayloads . meterpreter_path ( "ext_server_#{ ext_name } " ,
118
118
file_extension ) )
119
119
120
- extension_data = [ ext . length , ext ] . pack ( " VA*" )
120
+ extension_data = [ ext . length , ext ] . pack ( ' VA*' )
121
121
end
122
122
123
123
def config_block
@@ -143,9 +143,9 @@ def config_block
143
143
144
144
# terminate the extensions with a 0 size
145
145
if is_x86?
146
- config << [ 0 ] . pack ( "V" )
146
+ config << [ 0 ] . pack ( 'V' )
147
147
else
148
- config << [ 0 ] . pack ( "Q" )
148
+ config << [ 0 ] . pack ( 'Q<' )
149
149
end
150
150
151
151
# and we're done
You can’t perform that action at this time.
0 commit comments