mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 09:52:28 +00:00
feat(binana): add check command for profiles
This commit is contained in:
parent
b5ddafb89a
commit
ebf88595d9
11 changed files with 151 additions and 39 deletions
|
|
@ -23,17 +23,19 @@ var (
|
|||
)
|
||||
|
||||
type info_schema struct {
|
||||
OS string `json:"os"`
|
||||
Arch string `json:"arch"`
|
||||
ModuleName string `json:"module_name"`
|
||||
ModuleBase string `json:"module_base"`
|
||||
OS string `json:"os"`
|
||||
Arch string `json:"arch"`
|
||||
ModuleName string `json:"module_name"`
|
||||
ModuleBase string `json:"module_base"`
|
||||
FunctionCount uint64 `json:"function_count"`
|
||||
}
|
||||
|
||||
type Info struct {
|
||||
OS string
|
||||
Arch string
|
||||
ModuleName string
|
||||
ModuleBase uint64
|
||||
OS string
|
||||
Arch string
|
||||
ModuleName string
|
||||
ModuleBase uint64
|
||||
FunctionCount uint64
|
||||
}
|
||||
|
||||
func read_info(filename string, info *Info) (err error) {
|
||||
|
|
@ -68,5 +70,7 @@ func read_info(filename string, info *Info) (err error) {
|
|||
return
|
||||
}
|
||||
|
||||
info.FunctionCount = is.FunctionCount
|
||||
|
||||
return
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ func (profile *Profile) generate_x64dbg_database(compress bool) (err error) {
|
|||
relative_end_address -= 1
|
||||
}
|
||||
|
||||
if relative_end_address < relative_start_address || relative_end_address-relative_start_address >= 10000 {
|
||||
if relative_end_address < relative_start_address || relative_end_address-relative_start_address >= 50000 {
|
||||
fmt.Printf("Strange symbol %s %08x %08x (offset %d)\n", entry.Name, relative_start_address, relative_end_address, relative_end_address-relative_start_address)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue