Results 1 to 5 of 5
Thread: Scan Running Processess's Bytes
- 07-06-2013, 11:08 PM #1
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.
- 07-07-2013, 12:44 AM #2
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.
- 07-07-2013, 02:42 AM #3
Senior Member
- Join Date
- Jan 2013
- Location
- Northern Virginia, United States
- Posts
- 6,168
- Rep Power
- 12
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,
JimThe JavaTM Tutorials | SSCCE | Java Naming Conventions
Poor planning on your part does not constitute an emergency on my part
- 07-07-2013, 05:04 AM #4
Re: Scan Running Processess's Bytes
- 07-07-2013, 05:09 AM #5
Re: Scan Running Processess's Bytes
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
-
Runtime Processes
By egran001 in forum Advanced JavaReplies: 1Last Post: 05-15-2012, 01:44 PM -
Q> about "scan.nextLine();" and "scan.next();" i cant understand..
By boblingwide in forum New To JavaReplies: 6Last Post: 04-06-2012, 08:29 AM -
Monitoring processes
By scamiolo in forum New To JavaReplies: 3Last Post: 07-20-2011, 01:38 PM -
how to run parallel processes ?
By mapred.learn in forum New To JavaReplies: 2Last Post: 03-02-2011, 12:45 AM -
netbeans processes don´t die
By karlen in forum NetBeansReplies: 0Last Post: 06-11-2007, 09:55 PM
Bookmarks