Skip to content

[SUGGESTION] add 32 or 64 bit architecture to (or aside) BinaryMagic function #8

Description

@nkxxll

func BinaryMagic(buf []byte) (int, error) {

So here is my suggestion if you like it I am happy to implement it and make a PR:
My suggestion is to look for the architecture type 32 or 64 bit in the magic header in addition to the file type.

After looking at this three sites I am confident that this is an very easy task:

I think because of backwards compatibility it is not a viable option to extend the BinaryMagic function therefor I would implement this feature in a new function ArchType or so.
I got to this issue because I read the injection code for executable files in the backdoorfactory repo and stumbled upon a todo-comment with the arch type.
I will fix that too just thought I can start here to make it a nicer fix 😄.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions