Skip to content

Commit

Permalink
guard mres
Browse files Browse the repository at this point in the history
  • Loading branch information
ynadji committed Apr 14, 2022
1 parent f21077d commit 35dff83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/main.zeek
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ event dce_rpc_request_stub(c: connection, fid: count, ctx_id: count,
function correct_frag_length(data: string, regex: pattern): bool
{
local mres = match_pattern(data, regex);
if ( ! mres$matched )
return F;
print data[mres$off - 1:];
# mres$off - 1 is the offset to the start of the DCERPC section
# 8 bytes until we hit frag length
Expand Down

0 comments on commit 35dff83

Please sign in to comment.