Skip to content

habitualdev/richdiff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RichDiff

Easy to use Library for extracting and parsing PE Rich Signatures

Performs easy to use operations on PE Rich Signatures. Supports outputing the signature in a human readable table, as as a JSON object (with the option to save it to a file).

Example image output:

Example image output

Example usage:

package main

import (
    "github.com/roaldi/richdiff"
    "fmt"
)

func main(){

// Read from filesystem. Does rich sig extraction, parsing, and byte image creation
results, err := richdiff.RichFileExtraction("sample.exe")

// richdiff.RichExtraction() alternatively uses []byte as an input

// Sorts the results by product ID
results.Sort()

// Saves json to file
results.WriteToFile("sample.json")

// Prints json to the console
fmt.Println(results.String())

// prints the results in a table
results.RichTable()

// Diff the results with another richdiff results object, returns percentage of similarity
changelog, numberOfDiffs, err := results.Diff(richdiff.RichResults{})

fmt.Println(err.Error())

}

About

Rich Signature analysis module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages