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. General Programming
  3. C / C++ / MFC
  4. scan literal string in a process

scan literal string in a process

Scheduled Pinned Locked Moved C / C++ / MFC
questioncomhelp
4 Posts 4 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.
  • Z Offline
    Z Offline
    Zyoyo
    wrote on last edited by
    #1

    how can i archieve this? i want to scan all the strings in a process. http://www.iarsn.com/taskinfo/help/dialog\_search\_printable\_strings\_in\_executable.htm

    F stefanmihaimogaS 2 Replies Last reply
    0
    • Z Zyoyo

      how can i archieve this? i want to scan all the strings in a process. http://www.iarsn.com/taskinfo/help/dialog\_search\_printable\_strings\_in\_executable.htm

      F Offline
      F Offline
      Fundoo7
      wrote on last edited by
      #2

      Though a time consuming process but effective.Follow the steps:- 1) Open the binary (.exe's) files in binary mode. 2) Read each bytes till EOF 3) Check each bytes whether it is a char or not by using the Character Classification methods in MSDN.Like IsAlpha() ..etc 4) Store the chars and do what ever you want! 5) Last but not least close the file. Best regards, Deepu Abraham K

      T 1 Reply Last reply
      0
      • F Fundoo7

        Though a time consuming process but effective.Follow the steps:- 1) Open the binary (.exe's) files in binary mode. 2) Read each bytes till EOF 3) Check each bytes whether it is a char or not by using the Character Classification methods in MSDN.Like IsAlpha() ..etc 4) Store the chars and do what ever you want! 5) Last but not least close the file. Best regards, Deepu Abraham K

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

        that is not efficient way, as you can find ascii chars when then don't represent a string, and when then strings are in UNICODE charset, then you'll get in trouble...

        1 Reply Last reply
        0
        • Z Zyoyo

          how can i archieve this? i want to scan all the strings in a process. http://www.iarsn.com/taskinfo/help/dialog\_search\_printable\_strings\_in\_executable.htm

          stefanmihaimogaS Offline
          stefanmihaimogaS Offline
          stefanmihaimoga
          wrote on last edited by
          #4

          A good point to start to is CTextFileDocument[^] where you select what you need. Good luck!

          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