Skip to content

Commit 5f2d33a

Browse files
Add files via upload
1 parent a8e9cc9 commit 5f2d33a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import os
2+
3+
def analyze_memory_dump(dump_path):
4+
if not os.path.exists(dump_path):
5+
print(f"Error: Memory dump not found at {dump_path}")
6+
return
7+
8+
try:
9+
with open(dump_path, 'r') as dump:
10+
suspicious_strings = [line for line in dump if "suspicious" in line]
11+
except IOError as e:
12+
print(f"Error reading memory dump: {e}")
13+
return
14+
15+
if suspicious_strings:
16+
print("Suspicious data found:")
17+
for s in suspicious_strings:
18+
print(s)
19+
else:
20+
print("No suspicious data detected.")
21+
22+
if __name__ == "__main__":
23+
analyze_memory_dump("memory_dump.txt")

0 commit comments

Comments
 (0)