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 File Reference

Functions to handle and identify file types using magic numbers. More...

#include <stdbool.h>
#include "../../baseer.h"
#include "../bparser/bparser.h"

Go to the source code of this file.

Classes

struct  bmagic

Macros

#define ELF_MAGIC   0x7F454C46
#define PNG_MAGIC   0x89504e470d0a1a0a
#define ZIP_MAGIC   0x504B
#define PDF_MAGIC   0x255044462D
#define MACHO_MAGIC   0xCEFAEDFE
#define TAR_MAGIC   0x7573746172
#define BYTE   8

Functions

bool bx_binhead (baseer_target_t *target, void *arg)

Detailed Description

Functions to handle and identify file types using magic numbers.

This header defines the interface for checking a file's magic number and dispatching the appropriate parser/extension based on the file type (e.g., ELF, PNG, PDF).