File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -187,13 +187,6 @@ def create_mdm_session_from_session(opts)
187
187
via_payload : session . via_payload ,
188
188
}
189
189
190
- if session . exploit_task and session . exploit_task . record
191
- session_task = session . exploit_task . record
192
- if session_task . class == Mdm ::Task
193
- Mdm ::TaskSession . create ( task : session_task , session : s )
194
- end
195
- end
196
-
197
190
# In the case of multi handler we cannot yet determine the true
198
191
# exploit responsible. But we can at least show the parent versus
199
192
# just the generic handler:
@@ -202,6 +195,14 @@ def create_mdm_session_from_session(opts)
202
195
end
203
196
204
197
s = ::Mdm ::Session . create! ( sess_data )
198
+
199
+ if session . exploit_task and session . exploit_task . record
200
+ session_task = session . exploit_task . record
201
+ if session_task . class == Mdm ::Task
202
+ Mdm ::TaskSession . create ( task : session_task , session : s )
203
+ end
204
+ end
205
+
205
206
s
206
207
}
207
208
end
You can’t perform that action at this time.
0 commit comments