Skip to content

Commit 5b1dc39

Browse files
committed
Filler task dropped, login results in task assoc
MSP-10683 * Task constraint now optional, so no need for filler * Task ID now in service_data so it's passed to the core and the login creation methods
1 parent 87e6ede commit 5b1dc39

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

lib/msf/core/db.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3452,11 +3452,7 @@ def inspect_single_packet_http(pkt,wspace,args)
34523452
protocol: 'tcp',
34533453
workspace_id: wspace.id
34543454
}
3455-
3456-
if task.nil?
3457-
task = wspace.tasks.create
3458-
end
3459-
task_id = task.id
3455+
service_data[:task_id] = task.id if task
34603456

34613457
filename = args[:filename]
34623458

@@ -3465,7 +3461,6 @@ def inspect_single_packet_http(pkt,wspace,args)
34653461
private_data: pass,
34663462
private_type: :password,
34673463
username: user,
3468-
task_id: task_id,
34693464
filename: filename
34703465
}
34713466
credential_data.merge!(service_data)

0 commit comments

Comments
 (0)