Reverse Engineering File Formats

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,349
Trophies
3
XP
27,317
Country
United Kingdom
Making a file format from scratch is a pain in the arse so most programmers do not, and if they do then they are likely very basic and thus very limited (it is not impossible for a project to devolve into pointless complexity but often times the complexity is there because it is necessary).
C/C++ is good as many things are made by such programmers so when you can read something as a series of shorts and longs or similar it helps. It is not the be all though -- I don't doubt some around here could plough through a ROM hacking session and figure stuff out despite being barely able to make things compile from the command line.
You can try hackmes, though most of those are not file formats as much as a broad spectrum of hacking.
You can try finding out something about a format -- you need not learn everything. Consider say the old binary microsoft word documents, the whole thing with tables and forms and macros and charts and embeddable objects and all that jazz was a long and hard project to reverse engineer, however you could probably figure out how to text is made bold or italic in fairly short order (it is the classic cheat making thing where you take a file, make a small change and then compare to see what goes).
Find a conversion tool and rewrite it. Python has been called the glue that sticks modern computing together and the way it does that is by making interface programs for a lot of things so they can speak to each other.

Alternatively things will be very close to what they appear in the hardware because why not. Learn the hardware things go to. By similar token APIs and database lookups will probably resemble the final form in many cases.
 
  • Like
Reactions: Deleted User
General chit-chat
Help Users
  • K3N1 @ K3N1:
    Ask @x65943 he's trained for that stuff
  • JuanMena @ JuanMena:
    Kissing random dudes choking in celery? Really? Need to study for that?
  • K3N1 @ K3N1:
    Yes it requires a degree
  • K3N1 @ K3N1:
    I could also yank out the rest of my teeth but theirs professionals for that
  • x65943 @ x65943:
    If your throat closes, putting oxygen in your mouth will not solve anything - as you will be introducing oxygen prior to the area of obstruction
  • JuanMena @ JuanMena:
    Just kiss me Kyle.
  • x65943 @ x65943:
    You either need to be intubated to bypass obstruction or create a stoma inferior to the the area of obstruction to survive
  • x65943 @ x65943:
    "Just kiss me Kyle." And I thought all the godreborn gay stuff was a smear campaign
  • JuanMena @ JuanMena:
    If I die, tell my momma I won't be carrying Baby Jesus this christmas :sad::cry:
  • K3N1 @ K3N1:
    Smear campaigns are in The political section now?
  • JuanMena @ JuanMena:
    Chary! Chary! Chary, Chary, Chary!
  • Sonic Angel Knight @ Sonic Angel Knight:
    Pork Provolone :P
  • Psionic Roshambo @ Psionic Roshambo:
    Sounds yummy
  • K3N1 @ K3N1:
    Sweet found my Wii u PSU right after I ordered a new one :tpi:
  • JuanMena @ JuanMena:
    It was waiting for you to order another one.
    Seems like, your PSU was waiting for a partner.
  • JuanMena @ JuanMena:
    Keep them both
    separated or you'll have more PSUs each year.
  • K3N1 @ K3N1:
    Well one you insert one PSU into the other one you get power
  • JuanMena @ JuanMena:
    It literally turns it on.
  • K3N1 @ K3N1:
    Yeah power supplies are filthy perverts
  • K3N1 @ K3N1:
    @Psionic Roshambo has a new friend
    +1
  • JuanMena @ JuanMena:
    It's Kyle, the guy that went to school to be a Certified man Kisser.
  • Psionic Roshambo @ Psionic Roshambo:
    Cartmans hand has taco flavored kisses
  • A @ abraarukuk:
    hi guys
  • Iron_Masuku @ Iron_Masuku:
    Hello
    Iron_Masuku @ Iron_Masuku: Hello