Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

KarpelesLab/gzscan

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gzip file scanner

This scans for gzip files in a file or disk image, and can do so with multiple threads (useful if source is SSD/NVMe).

Installation

go install github.com/KarpelesLab/gzscan@latest

Usage

gzscan /dev/sda

Note that it is quite likely that any large gzip file found this way will not be readable, as other files may be written in the middle of this file. Finding the header however greatly helps recovering the rest of the file.

output

When a likely gzip file is found, it is shown as follows:

2022/04/21 12:21:09 found likely gzip: pos=934375424 stamp=2019-03-23 00:00:01 +0900 JST os=Unix filename=xxxxx.log

False positives will also appear, however if for example the filename is shown, this is very likely a good match.

Gzip will not store the filename if the input was piped (ie. getlog | gzip >file.gz), in this case you may try to decode the file manually.

About

Scanner for gzip files into blobs (disk images, etc)

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.