Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions volatility3/framework/plugins/windows/netstat.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,16 @@ def enumerate_structures_by_port(

# if the same port is used on different interfaces multiple objects are created
# those can be found by following the pointer within the object's `Next` field until it is empty
seen_addresses = set()
while next_obj_address:
if next_obj_address in seen_addresses:
vollog.warning(
"Cycle detected in Next pointer at %#x, stopping walk",
next_obj_address,
)
return
seen_addresses.add(next_obj_address)

try:
curr_obj = context.object(
obj_name,
Expand Down