Results 1 to 5 of 5
  1. #1
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    135
    Rep Power
    0

    Default Scan Running Processess's Bytes

    Scan Running Processes's Bytes

    Hello, I have been working on a trying to build a method to scan a running processes's bytes. The program I'm working on is somewhat superfluous, but over the last few years I've been trying to progress my knowledge in all fields of computer science, and I've currently never really done much with data collection and modifications of external processes. The method that I need would be somewhat similar to the methods used in both "IHaxGames" and "CheatEngine". I have attempted to approach this in several ways; I was thinking I could try and see if the information is stored in some directory, but I don't think it is, I could see if I could decode the bytes using command line (since I found the processes through command line), or I could see if their is an actually java method to access some sort of inputstream of these processes, but when I've attempted to do so it only returns "-1" (nonexistent byte). So, if anyone knows a way to do this I would throughly appreciate your help. Thanks in advance -Alec

    Edit: It doesn't seem like I'm going to get an answer, but just for anyone who is curious about this, I think I'm going to use JMI to access the processes's memory through C.
    Last edited by anthropamorphic; 07-07-2013 at 12:35 AM.

  2. #2
    JavaProphet's Avatar
    JavaProphet is offline Comma Freak
    Join Date
    Jun 2013
    Posts
    2
    Rep Power
    0

    Default Re: Scan Running Processess's Bytes

    As for getting a process' memory, I would use JNA w/ the platform api provided by it. It's a wrapper made for JNI that can do things like read/write memory, etc.

  3. #3
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    3,610
    Rep Power
    5

    Default Re: Scan Running Processess's Bytes

    It's been less than 90 minutes since you posted your original question and you are frustrated that you don't have an answer. Sometimes it can take days (and that's during the week when the forum is more active). You should have more patience.

    Regards,
    Jim
    The Java™ Tutorial | SSCCE | Java Naming Conventions
    Poor planning our your part does not constitute an emergency on my part.

  4. #4
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    135
    Rep Power
    0

    Default Re: Scan Running Processess's Bytes

    Quote Originally Posted by JavaProphet View Post
    As for getting a process' memory, I would use JNA w/ the platform api provided by it. It's a wrapper made for JNI that can do things like read/write memory, etc.
    Thank you for the advice, I've been looking into JNA, but I'm currently having a little bit of difficulty with it since most of the tutorials for it are tailored to Window's computers. That being said, I think it's definitely the best way to go about reading memory.

  5. #5
    anthropamorphic's Avatar
    anthropamorphic is offline Senior Member
    Join Date
    Jun 2011
    Posts
    135
    Rep Power
    0

    Default Re: Scan Running Processess's Bytes

    Quote Originally Posted by jim829 View Post
    It's been less than 90 minutes since you posted your original question and you are frustrated that you don't have an answer. Sometimes it can take days (and that's during the week when the forum is more active). You should have more patience.

    Regards,
    Jim
    Tone can sometimes be difficult to convey through text since people will generally add their own emotions into it, but I wasn't frustrated. I edited it because I had been searching the internet for hours and hadn't found a better answer than using JNI, so I added that bit in to help anyone else who was having a similar problem.

Similar Threads

  1. Runtime Processes
    By egran001 in forum Advanced Java
    Replies: 1
    Last Post: 05-15-2012, 01:44 PM
  2. Replies: 6
    Last Post: 04-06-2012, 08:29 AM
  3. Monitoring processes
    By scamiolo in forum New To Java
    Replies: 3
    Last Post: 07-20-2011, 01:38 PM
  4. how to run parallel processes ?
    By mapred.learn in forum New To Java
    Replies: 2
    Last Post: 03-02-2011, 12:45 AM
  5. netbeans processes don´t die
    By karlen in forum NetBeans
    Replies: 0
    Last Post: 06-11-2007, 09:55 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •