Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Linux, Apache, MySQL, PHP
  4. Hex editing a binary file - is this possible with PERL or VBS

Hex editing a binary file - is this possible with PERL or VBS

Scheduled Pinned Locked Moved Linux, Apache, MySQL, PHP
perlquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    danknugz
    wrote on last edited by
    #1

    I am looking to programmatically hex edit a binary file, I have searched all over and can only find freeware programs that are GUIs that enable you to view binary/hex and insert data, how is this done programmatically?? TIA

    D J 2 Replies Last reply
    0
    • D danknugz

      I am looking to programmatically hex edit a binary file, I have searched all over and can only find freeware programs that are GUIs that enable you to view binary/hex and insert data, how is this done programmatically?? TIA

      D Offline
      D Offline
      danknugz
      wrote on last edited by
      #2

      nm i figured it out (or one way of doing it at least), been a long time since i used perl just needed a kickstart :)

      T 1 Reply Last reply
      0
      • D danknugz

        nm i figured it out (or one way of doing it at least), been a long time since i used perl just needed a kickstart :)

        T Offline
        T Offline
        TiGuCo
        wrote on last edited by
        #3

        If you want to write a binary file, you must use the pack function. You can see a good tutorial at http://www.perlfect.com/articles/perlfile.shtml [^]. TiGuCo

        1 Reply Last reply
        0
        • D danknugz

          I am looking to programmatically hex edit a binary file, I have searched all over and can only find freeware programs that are GUIs that enable you to view binary/hex and insert data, how is this done programmatically?? TIA

          J Offline
          J Offline
          John 0
          wrote on last edited by
          #4

          How did you do it?

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups