Baseer 0.2.0
Baseer is an advanced binary analysis tool designed to provide deep insights into any file.
Loading...
Searching...
No Matches
bx_binhead.h
Go to the documentation of this file.
1
9
10
11#ifndef BX_DEFAULT_H
12#define BX_DEFAULT_H
13#include <stdbool.h>
14// #include <elf.h>
15#include "../../baseer.h"
16#include "../bparser/bparser.h"
17
18#define ELF_MAGIC 0x7F454C46 // https://en.wikipedia.org/wiki/Executable_and_Linkable_Format
19#define PNG_MAGIC 0x89504e470d0a1a0a // https://www.libpng.org/pub/png/spec/1.2/PNG-Structure.html
20#define ZIP_MAGIC 0x504B
21#define PDF_MAGIC 0x255044462D
22#define MACHO_MAGIC 0xCEFAEDFE
23#define TAR_MAGIC 0x7573746172
24 // 00 30 30
25 // 20 20 00
26#define BYTE 8
27
28typedef struct{
29 char* name;
30 unsigned long long int number;
31 unsigned long long int rnumber;
32 bparser_callback_t parser;
33 unsigned int pos;
34} bmagic;
35
36bool bx_binhead(baseer_target_t *target, void *arg);
37
38#endif
Core file handling and execution API for Baseer.
Binary parser abstraction supporting memory and streaming files.
bool(* bparser_callback_t)(bparser *parser, void *arg)
Callback for bparser tools.
Definition bparser.h:33
Struct representing a file target in memory or streaming mode.
Definition baseer.h:113
Definition bx_binhead.h:28