Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #8865 > unrolled thread

How detect a Virtual Machine

Started bydengler <dewo001@hotmail.com>
First post2016-01-04 20:44 +0100
Last post2016-01-10 12:46 +0100
Articles 5 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  How detect a Virtual Machine dengler <dewo001@hotmail.com> - 2016-01-04 20:44 +0100
    Re: How detect a Virtual Machine dlzc <dlzc1@cox.net> - 2016-01-04 14:53 -0800
    Re: How detect a Virtual Machine Mathias <mathias.hakansson@consultec.se> - 2016-01-05 00:40 -0800
    Re: How detect a Virtual Machine "Karl-Heinz" <invalid@invalid.invalid> - 2016-01-06 13:49 +0100
    Re: How detect a Virtual Machine "Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it> - 2016-01-10 12:46 +0100

#8865 — How detect a Virtual Machine

Fromdengler <dewo001@hotmail.com>
Date2016-01-04 20:44 +0100
SubjectHow detect a Virtual Machine
Message-ID<2hfl8bd08o8bt3f7gsp9jni7ejg1or45oq@4ax.com>
Hi!
Has anyone tried to test programmatically by "visual objects", if a
program is running in a virtual enviroment?

I want that my program runs only on a real machine and i want prevent
that it is running in a virtual machine.

I found an article: "Detect if your program is running inside a
Virtual Machine" on codeproject. In the download i found a windows dll
i tried to use. But it does not contain exported functions.  I tried
to  use this dll.

I have created a  dll-lib in vo "VM" with:
_dll Function IsInsideVMWare() as LOGIC
PASCAL:VMDetectLibrary.IsInsideVMWare
_dll Function IsInsideVPC() as LOGIC
PASCAL:VMDetectLibrary.IsInsideVPC

and I included in my program this vm library. But this does not work!
If i want to use the line "?IsInsideVMWare()", I get the message:
"The application was unable to start correctly (0x000007b). Click OK
to close the application!"

Has anyone tried things like this to protect the own software? 

Or has anyone an other solution like to find virtual hardware or other
things you can find in the www to prevent running programs in VMs.

Thanks
Wolfgang
 

[toc] | [next] | [standalone]


#8866

Fromdlzc <dlzc1@cox.net>
Date2016-01-04 14:53 -0800
Message-ID<f04d2e0c-8e4f-4d3b-a282-d00d065c8c0c@googlegroups.com>
In reply to#8865
Dear dengler

On Monday, January 4, 2016 at 12:44:51 PM UTC-7, dengler wrote:
...
> Has anyone tried to test programmatically by
> "visual objects", if a program is running in
> a virtual enviroment?
...
> Or has anyone an other solution like to find
> virtual hardware or other things you can find
> in the www to prevent running programs in VMs.

Since the methods you seek, are used by malware (go figure), you might see if this gives you hints:
http://handlers.sans.org/tliston/ThwartingVMDetection_Liston_Skoudis.pdf

David A. Smith

[toc] | [prev] | [next] | [standalone]


#8867

FromMathias <mathias.hakansson@consultec.se>
Date2016-01-05 00:40 -0800
Message-ID<edf61177-7018-40eb-b1fb-cee611ffad67@googlegroups.com>
In reply to#8865
What about GetSystemMetrics(SM_REMOTESESSION)

https://msdn.microsoft.com/en-us/library/windows/desktop/ms724385(v=vs.85).aspx

/MathiasH

Den måndag 4 januari 2016 kl. 20:44:51 UTC+1 skrev dengler:
> Hi!
> Has anyone tried to test programmatically by "visual objects", if a
> program is running in a virtual enviroment?
> 
> I want that my program runs only on a real machine and i want prevent
> that it is running in a virtual machine.
> 
> I found an article: "Detect if your program is running inside a
> Virtual Machine" on codeproject. In the download i found a windows dll
> i tried to use. But it does not contain exported functions.  I tried
> to  use this dll.
> 
> I have created a  dll-lib in vo "VM" with:
> _dll Function IsInsideVMWare() as LOGIC
> PASCAL:VMDetectLibrary.IsInsideVMWare
> _dll Function IsInsideVPC() as LOGIC
> PASCAL:VMDetectLibrary.IsInsideVPC
> 
> and I included in my program this vm library. But this does not work!
> If i want to use the line "?IsInsideVMWare()", I get the message:
> "The application was unable to start correctly (0x000007b). Click OK
> to close the application!"
> 
> Has anyone tried things like this to protect the own software? 
> 
> Or has anyone an other solution like to find virtual hardware or other
> things you can find in the www to prevent running programs in VMs.
> 
> Thanks
> Wolfgang

[toc] | [prev] | [next] | [standalone]


#8870

From"Karl-Heinz" <invalid@invalid.invalid>
Date2016-01-06 13:49 +0100
Message-ID<df4h2pFalmhU1@mid.individual.net>
In reply to#8865
Hi Wolfgang,

>  I found an article: "Detect if your program is running inside a
>  Virtual Machine" on codeproject. In the download i found a windows dll
>  i tried to use. But it does not contain exported functions.  I tried
>  to  use this dll.
>
> I have created a  dll-lib in vo "VM" with:
> _dll Function IsInsideVMWare() as LOGIC
> PASCAL:VMDetectLibrary.IsInsideVMWare
> _dll Function IsInsideVPC() as LOGIC
> PASCAL:VMDetectLibrary.IsInsideVPC

the mentioned dll is a .net assembly, so you can´t use it  in VO.

regards
Karl-Heinz

[toc] | [prev] | [next] | [standalone]


#8876

From"Arne Ortlinghaus" <Arne.Ortlinghaus@acs.it>
Date2016-01-10 12:46 +0100
Message-ID<n6tg4s$ftd$1@dont-email.me>
In reply to#8865
Hi Wolfgang,

(sorry for speaking like this, I can't hesitate)

Why can it be still necessary nowadays to know if a programm is running on a 
virtual machine or not? If your customer owns an Apple MAC for example and 
runs a Windows virtually to be able to run your program - what is the 
problem?

If you do this for licence control reasons that you should find other 
possibilties. If tthis is because of some technical limitations you expect 
you should test for the existance of these technical limitations and not if 
it is a virtual machine in general.

We have now many installations with one big real machine and several virtual 
servers or PCs inside working on a VMWare ESX host. And everythings works 
well if the Internet/network connections are good. So it should not be the 
question if virtual or not.

Arne Ortlinghaus
ACS Data Systems

"dengler" <dewo001@hotmail.com> schrieb im Newsbeitrag 
news:2hfl8bd08o8bt3f7gsp9jni7ejg1or45oq@4ax.com...
> Hi!
> Has anyone tried to test programmatically by "visual objects", if a
> program is running in a virtual enviroment?
>
> I want that my program runs only on a real machine and i want prevent
> that it is running in a virtual machine.
>
> I found an article: "Detect if your program is running inside a
> Virtual Machine" on codeproject. In the download i found a windows dll
> i tried to use. But it does not contain exported functions.  I tried
> to  use this dll.
>
> I have created a  dll-lib in vo "VM" with:
> _dll Function IsInsideVMWare() as LOGIC
> PASCAL:VMDetectLibrary.IsInsideVMWare
> _dll Function IsInsideVPC() as LOGIC
> PASCAL:VMDetectLibrary.IsInsideVPC
>
> and I included in my program this vm library. But this does not work!
> If i want to use the line "?IsInsideVMWare()", I get the message:
> "The application was unable to start correctly (0x000007b). Click OK
> to close the application!"
>
> Has anyone tried things like this to protect the own software?
>
> Or has anyone an other solution like to find virtual hardware or other
> things you can find in the www to prevent running programs in VMs.
>
> Thanks
> Wolfgang
> 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web