Skip to content

Commit

Permalink
Update cs_makekeystrokespath.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
OG-Sadpanda authored Jul 19, 2024
1 parent 1ed283e commit 18c5ef4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ def filter(event)
desktop_session = event.get("[keystrokes][desktop_session]")
temppath = logpath.split('/cobaltstrike/server')
temppath2 = temppath[1].split(/\/([^\/]*)$/)
keystrokespath = "/c2logs/" + "#{host}" + "/cobaltstrike" + "#{temppath2[0]}" + "/keystrokes_" + "#{implant_id}" + "." + "#{desktop_session}" + ".txt"
filename = temppath2[1]
keystrokespath = "/c2logs/" + "#{host}" + "/cobaltstrike" + "#{temppath2[0]}" + "/" + "#{filename}"
event.tag("_rubyparseok")
event.set("[keystrokes][url]", keystrokespath)
return [event]
Expand Down

0 comments on commit 18c5ef4

Please sign in to comment.