recovering-deleted-files-with-photorec

Featured

Recover deleted files from disk images and storage media using PhotoRec's file signature-based carving engine regardless of file system damage.

AI & Automation 36,355 stars 4443 forks Updated 2 months ago Apache-2.0

Install

View on GitHub

Quality Score: 94/100

Stars 20%
100
Recency 20%
75
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Recovering Deleted Files with PhotoRec ## When to Use - When recovering deleted files from a forensic disk image or storage device - When the file system is corrupted, formatted, or overwritten - During investigations requiring recovery of documents, images, videos, or databases - When file system metadata is unavailable but raw data sectors remain intact - For recovering files from memory cards, USB drives, and hard drives ## Prerequisites - PhotoRec installed (part of TestDisk suite) - Forensic disk image or direct device access (read-only) - Sufficient output storage space (potentially larger than source) - Write-blocker if working with original media - Root/sudo privileges for device access - Knowledge of target file types for focused recovery ## Workflow ### Step 1: Install PhotoRec and Prepare the Environment ```bash # Install TestDisk (includes PhotoRec) on Debian/Ubuntu sudo apt-get install testdisk # On RHEL/CentOS sudo yum install testdisk # On macOS brew install testdisk # Verify installation photorec --version # Create output directory structure mkdir -p /cases/case-2024-001/recovered/{all,documents,images,databases} # Verify the forensic image file /cases/case-2024-001/images/evidence.dd ls -lh /cases/case-2024-001/images/evidence.dd ``` ### Step 2: Run PhotoRec in Interactive Mode ```bash # Launch PhotoRec against a forensic image photorec /cases/case-2024-001/images/evidence.dd # Interactive menu steps: # 1. Select the disk image: evidence.dd # 2...

Details

Author
mukul975
Repository
mukul975/Anthropic-Cybersecurity-Skills
Created
8 months ago
Last Updated
2 months ago
Language
Python
License
Apache-2.0

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category