none
C# Scan String in Memory of Process RRS feed

  • Question

  • Sorry, English (google translate)

        Wanted function that returns memory in the process ram or a "BOOL" function if a given string is in that memory in the RAM of that process

    I already have PROCESS ID (PID)

    I will be very grateful if someone will provide code for me

    thanks

    Thursday, April 18, 2019 11:58 AM

Answers

  • Thursday, April 18, 2019 6:06 PM
  • Hi

    Thank you for posting here.

    For your question, you want to scan a process' memory by using c#.

    The following link could be helpful for you.

    http://www.codingvision.net/security/c-how-to-scan-a-process-memory

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, April 19, 2019 6:04 AM
    Moderator

All replies

  • You cannot do this in C#. It would require access to process memory and C# will only have access to managed memory of the current process. What you're asking for is either something that can be used to build malicious software (which we won't support) or a debugger. In either case the C# forums is not appropriate for this question.

    Michael Taylor http://www.michaeltaylorp3.net

    Thursday, April 18, 2019 2:00 PM
    Moderator
  • Thursday, April 18, 2019 6:06 PM
  • Hi

    Thank you for posting here.

    For your question, you want to scan a process' memory by using c#.

    The following link could be helpful for you.

    http://www.codingvision.net/security/c-how-to-scan-a-process-memory

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, April 19, 2019 6:04 AM
    Moderator
  • No, my intention is not to create malicious program.
    I want to create anti-cheater, which reads memory through injections in memory.
    How to ProcessHacker software (very use screenshare hacker in the game)
    Saturday, April 20, 2019 11:07 PM
  • Hi 

    Is your problem solved? If so, please post "Mark as answer" to the appropriate answer, so that it will help other members to find the solution quickly if they face a similar issue.

    Best Regards,

    Jack


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Tuesday, April 23, 2019 9:24 AM
    Moderator