Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.

Commit 7c0e805

Browse files
committed
detect smear in bash artifact enumeration
1 parent fa1c0b9 commit 7c0e805

File tree

1 file changed

+5
-0
lines changed
  • volatility/plugins/overlays/mac

1 file changed

+5
-0
lines changed

volatility/plugins/overlays/mac/mac.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,10 +564,15 @@ def bash_hash_entries(self):
564564

565565
if htable.is_valid():
566566
bucket_array = obj.Object(theType="Array", targetType=addr_type, offset = htable.bucket_array, vm = htable.nbuckets.obj_vm, count = 64)
567+
seen = set()
567568

568569
for bucket_ptr in bucket_array:
569570
bucket = obj.Object(bucket_contents_type, offset = bucket_ptr, vm = htable.nbuckets.obj_vm)
570571
while bucket != None and bucket.times_found > 0:
572+
if bucket.v() in seen:
573+
break
574+
seen.add(bucket.v())
575+
571576
pdata = bucket.data
572577

573578
if pdata == None:

0 commit comments

Comments
 (0)