/CutFileDichotomy

This tool cuts a target file recursively.

Primary LanguageGoGNU General Public License v3.0GPL-3.0

CutFileDichotomy logo

CutFileDichotomy

Description

This tool cuts a target file recursively.

I used this script to identify malware in archive file without any compression.

I didn't know the algorithm to extract files from a very large archive containing a virus. So I cut the archive file several times with this script to scan the smallest file containing the malware. The antivirus detected all the files containing the virus, so I analysed the smallest file and reversed the malware.

Requirements

Download binary

  • No requirements

Compilation

  • Go
  • Go Standard library

Installation

Download

Download the executable from Github.

Compilation

git clone https://github.com/mauricelambert/CutFileDichotomy.git
cd CutFileDichotomy
go build CutFileDichotomy.go

Usages

CutFileDichotomy [filename] (size)
CutFileDichotomy malware.bin
CutFileDichotomy malware.bin 2048

Links

Licence

Licensed under the GPL, version 3.