We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c73c19 commit c07ff70Copy full SHA for c07ff70
lib/msf/core/payload/stager.rb
@@ -156,11 +156,13 @@ def handle_connection(conn, opts={})
156
# If the stage should be sent over the client connection that is
157
# established (which is the default), then go ahead and transmit it.
158
if (stage_over_connection?)
159
- uuid_raw = conn.get_once(16, 1)
160
-
161
opts = {}
162
- if uuid_raw
163
- opts[:uuid] = Msf::Payload::UUID.new({raw: uuid_raw})
+
+ if include_send_uuid
+ uuid_raw = conn.get_once(16, 1)
+ if uuid_raw
164
+ opts[:uuid] = Msf::Payload::UUID.new({raw: uuid_raw})
165
+ end
166
end
167
168
p = generate_stage(opts)
0 commit comments