We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8e9cc9 commit 5f2d33aCopy full SHA for 5f2d33a
src/memory_analysis/memory_analysis.py
@@ -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
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