{"id":28943089,"url":"https://github.com/cristianzsh/foremost-ng","last_synced_at":"2025-08-23T10:32:09.730Z","repository":{"id":294970566,"uuid":"988669882","full_name":"cristianzsh/foremost-ng","owner":"cristianzsh","description":"My fork of Foremost","archived":false,"fork":false,"pushed_at":"2025-07-08T19:00:27.000Z","size":7447,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-08T20:19:37.098Z","etag":null,"topics":["data-carving","dfir","foremost","forensics","incident-response"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cristianzsh.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-22T22:37:42.000Z","updated_at":"2025-07-08T19:00:30.000Z","dependencies_parsed_at":"2025-06-14T23:29:06.831Z","dependency_job_id":null,"html_url":"https://github.com/cristianzsh/foremost-ng","commit_stats":null,"previous_names":["cristianzsh/foremost-ng"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/cristianzsh/foremost-ng","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Fforemost-ng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Fforemost-ng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Fforemost-ng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Fforemost-ng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristianzsh","download_url":"https://codeload.github.com/cristianzsh/foremost-ng/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Fforemost-ng/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271746655,"owners_count":24813575,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data-carving","dfir","foremost","forensics","incident-response"],"created_at":"2025-06-23T04:41:05.378Z","updated_at":"2025-08-23T10:32:09.725Z","avatar_url":"https://github.com/cristianzsh.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# foremost-ng\n\n`foremost-ng` is a Linux-based file recovery tool that extracts files from disk images or devices by scanning for configurable file headers and footers. It supports common forensic formats (e.g., `.dd`, Safeback, Encase) and can operate on both image files and live devices.\n\u003e ⚡ This fork aims to modernize the codebase, improve terminal output with ANSI styling, and introduce new features for forensic analysis and data recovery.\n\n\u003cimg src=\"screenshots/foremost-ng-01.png\"/\u003e\n\u003cimg src=\"screenshots/foremost-ng-02.png\"/\u003e\n\n---\n\n## Features\n\n- 🧩 Recover files based on headers and footers.\n- ⚙️ Configurable file signatures via a plain-text configuration file.\n- 🪛 Supports header-only or header–footer scans.\n- 🧱 Works on forensic images or live drives.\n- 🦠 VirusTotal lookup by file hash (requires a VT API key).\n\n---\n\n## Installation\n\nClone or download the `foremost-ng` archive, then build and install according to your platform:\n\n```bash\n# Common steps\ntar xzvf foremost-ng-\u003cversion\u003e.tar.gz\ncd foremost-ng-\u003cversion\u003e/src\n```\n\n### Linux\n```bash\nmake\nsudo make install\n```\n\n### BSD\n\nMake sure ```curl``` is installed:\n```bash\npkg_add curl # OpenBSD\npkg install curl # FreeBSD\n```\n\n```bash\nmake unix\nsudo gmake install\n```\n\n### macOS\n\nInstall OpenSSL:\n```bash\nbrew install openssl@3\n```\n\n```bash\nmake mac\nsudo make macinstall\n```\n\n### Cross compiling for Windows\n\nInstall MinGW in your Linux distribution and cross-compile:\n```bash\nmake cross\n```\n**Required DLLs can be found in the [windows_dlls](windows_dlls) directory of this repository.**\n\n\u003e **Note:** On systems with glibc \u003c 2.2.0, you may see harmless warnings about `ftello` and `fseeko`. These can be safely ignored.\n\n---\n\n## Usage\n\nRun `foremost-ng` with the appropriate command-line options. For full details, refer to the manual page:\n\n```bash\nman foremost-ng\n```\n\nBasic syntax:\n```bash\nforemost-ng [options] [image_or_device]\n```\n\n---\n\n## VirusTotal API\n\n`foremost-ng` supports automatic file reputation checks using the VirusTotal API via the ```-x``` command-line option. This allows you to analyze recovered files for potential threats by submitting their hashes to VirusTotal.\n\nTo enable this feature, follow these steps:\n\n1. [Create a free VirusTotal account](https://www.virustotal.com/gui/join-us).\n2. Obtain your personal **API key**.\n3. Set the key as an environment variable named `VT_API_KEY`.\n\n```bash\n# Unix-like systems\nexport VT_API_KEY=yourkey\n\n# Windows CMD\nset VT_API_KEY=yourkey\n\n# Windows PowerShell\n$env:VT_API_KEY=\"yourkey\"\n```\n\n---\n\n## Uninstallation\n\nTo remove `foremost-ng` from your system:\n\n```bash\ncd foremost-ng-\u003cversion\u003e/src\nsudo make uninstall\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianzsh%2Fforemost-ng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristianzsh%2Fforemost-ng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianzsh%2Fforemost-ng/lists"}