Skip to content

Latest commit

 

History

History
30 lines (19 loc) · 604 Bytes

README.md

File metadata and controls

30 lines (19 loc) · 604 Bytes

go-vba

This package implements the VBA decompression code in Go. It follows the Golang standards for Reader/Writer model.

Example:

import {
  "github/phaag/ole-vba"
)
  
rfd, _ = os.OpenFile(inFile)
wfd, _ = os.OpenFile(outFile, os.O_RDWR|os.O_CREATE, 0755)
vba := vba.NewWriter(wfd)
_, err = io.Copy(vba, rfd)
vba.Close()

If you prefer a function call, you may use the integrated wrapper:

func DecompressFile(inFile, outFile string) (bool, error)

The code follows basically olevba from oletools. The outFile is a simple .txt file containing the decompressed VBA code.