Login Register






Detecting Virtual Machine using Java filter_list
Author
Message
Detecting Virtual Machine using Java #1
Hello there, I'm new on this forum and that will be my first thread here ^^

Do you have in mind any way to detect if the Java Application is running inside a Virtual Machine?
I could as well code using languages for Windows, Mac, Linux and run using JNI, but that'd be a lot of work.

But what's the principle of detecting the Virtual Machine?
From my studies, the windows has some non used input op-codes that are reused by the Virtual Machine,
so if by using those op-codes no error is returned, means that the software is running inside a Virtual Machine environment?

There's a process which is always being executed on VMWare and PC Box?

Thanks.
(This post was last modified: 03-17-2014, 12:02 AM by v33x.)

Reply

RE: Detecting Virtual Machine using Java #2
I don't think this is possible without JNI.
Have a look at this: https://stackoverflow.com/questions/1812...al-machine
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]

Reply

RE: Detecting Virtual Machine using Java #3
Google gave me this link :- http://www.codeproject.com/Articles/9823...-a-Virtual and it might be useful to you. But for this kind of purpose you need to use the JNA library that can access the shared libraries.

I don't have much experience with JNA and hence cannot provide you more details or code samples. I am following the JNA project on github and its under development and everyday or two new patches are coming.

Well if you do something nice then please share it with us.

Thank you.
[Image: OilyCostlyEwe.gif]

Reply