-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
45 lines (38 loc) · 1.14 KB
/
main.py
File metadata and controls
45 lines (38 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import sys
import os
from browser_artifact_scanning import main as artifact_main
from file_metadata_scanning import main as meta_main
# clear screen helper function
def clear_screen():
os.system("cls" if os.name=="nt" else "clear")
# wait for input helper function
def wait():
input("Press any key")
def exit_script():
print("Exiting...")
sys.exit(0)
def main():
menu_actions = {
"1": artifact_main.main,
"2": meta_main.main,
"3": print("3"), #lambda: analyze_form_history(browser_files),
"4": print("4"), #lambda: analyze_history(browser_files),
"5": exit_script
}
while True:
print("\nBen's Forensic CLI Toolkit")
print("1. Browser Artifact Analysis")
print("2. File Metadata Analysis")
print("3. System Artifact Analysis")
print("4. Memory Analysis")
print("5. Exit")
choice = input("Enter choice: ").strip()
clear_screen()
action = menu_actions.get(choice)
if action:
action()
else:
print("Invalid Choice, try again.")
wait()
if __name__ == "__main__":
main()