Restructure repository: organize tools by purpose, create what search tool
- Move single-file tools to tools/ organized by category (security, forensics, data, etc.) - Move multi-file projects to projects/ (go-tools, puzzlebox, timesketch, rust-tools) - Move system scripts to scripts/ (proxy, display, setup, windows) - Organize config files in config/ (shell, visidata, applications) - Move experimental tools to archive/experimental - Create 'what' fuzzy search tool with progressive enhancement (ollama->fzf->grep) - Add initial metadata database for intelligent tool discovery - Preserve git history using 'git mv' commands
This commit is contained in:
15
tools/hashing/hashzip.py
Normal file
15
tools/hashing/hashzip.py
Normal file
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env python3
|
||||
import zipfile
|
||||
import sys
|
||||
import hashlib
|
||||
|
||||
zip_file_name = sys.argv[1]
|
||||
|
||||
with zipfile.ZipFile(zip_file_name, 'r') as zf:
|
||||
print(f"======== Filelisting for {zip_file_name} ========")
|
||||
for file_info in zf.filelist:
|
||||
date_time = file_info.date_time
|
||||
with zf.open(file_info) as zip_file:
|
||||
content = zip_file.read()
|
||||
md5 = hashlib.md5(content).hexdigest()
|
||||
print(f"{file_info.filename} ({file_info.file_size}) {md5} {date_time[0]}/{date_time[1]:02}/{date_time[2]:02} {date_time[3]:02}:{date_time[4]:02}:{date_time[5]:02}")
|
||||
Reference in New Issue
Block a user