Skip to content

Instantly share code, notes, and snippets.

@picatz
Last active May 12, 2018 06:23
Show Gist options
  • Save picatz/b486fcbb748c33b1b7d5c9d243f96fd8 to your computer and use it in GitHub Desktop.
Save picatz/b486fcbb748c33b1b7d5c9d243f96fd8 to your computer and use it in GitHub Desktop.
package main
import (
"debug/pe"
"fmt"
)
func main() {
f, _ := pe.Open("sample.exe")
for _, section := range f.Sections {
fmt.Printf("%+v\n", section.SectionHeader.Name)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment