pe-cert-reader

module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2020 License: Apache-2.0

README

pe-cert-reader

Go Report Card GoDoc

A library and tool to read certs of PE file.

Command

$ ./pe-cert-reader -h
Usage of pe-cert-reader:
  -V	show Version
  -d	dump certs

-d option dump cert(s) from PE file. The suffix of cert file is .certX.

Example

package main

import (
	"flag"
	"fmt"
	"github.com/nokute78/pe-cert-reader/pkg/pecert"
)

func main() {
	flag.Parse()
	for _, file := range flag.Args() {
		attrs, err := pecert.GetAttributeCertificatesFromPath(file)
		if err != nil {
			fmt.Printf("%s\n", err)
		}
		for i, attr := range attrs {
			fmt.Printf("%d: %v\n",i, attr)
		}
	}
}

Reference

PE Format Specification

License

Apache License v2.0

Directories

Path Synopsis
cmd
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL