-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRunningInVM
More file actions
296 lines (253 loc) · 9.63 KB
/
Copy pathRunningInVM
File metadata and controls
296 lines (253 loc) · 9.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
Ubutu VM:
In terminal
Command: dmesg | grep -i hypervisor
Output: [0.00000] Hypervisor Detected: KVM
Command: sudo dmidecode -s bios-version
Output: VirtualBox
Command: sudo virt-what
Output: virtualbox
kvm
Command: sudo dmidecode | grep Product
Output: Product Name: VirtualBox
Command: grep -q ^flags.*\ hypervisor /proc/cpuinfo && echo "This machine is a VM"
Output: This machine is a VM
Command: sudo dmidecode -t system|grep 'Manufacturer\|Product'
Output: Manufacturer: innotek GmbH
Product Name: VirtualBox
Note: $ sudo sysctl kernel.dmesg_restrict=1
$ dmesg
dmesg: klogctl failed: Operation not permitted
$ sudo sysctl kernel.dmesg_restrict=0
Command: lspci | grep -i virtualbox
Output: ...Virtualbox...
Command: lscpu
Output: Hypervisor vendor:KVM
Virtualization type: full
Command: ls -l /dev/disk/by-id/
Output: ...VBOX_HARDDISK...
Command: egrep -wo 'hypervisor' /proc/cpuinfo
Output: hypervisor
WindowsVM:
In terminal,
Command: cd SpookyNG, SpookyNG.exe
Output:
C:\Users\swe\Downloads\ScoopyNG\ScoopyNG>ScoopyNG.exe
####################################################
:: ScoopyNG - The VMware Detection Tool ::
:: Windows version v1.0 ::
[+] Test 1: IDT
IDT base: 0x67c57070
Result : Native OS
[+] Test 2: LDT
LDT base: 0xdead0000
Result : Native OS
[+] Test 3: GDT
GDT base: 0x67c57070
Result : Native OS
[+] Test 4: STR
STR base: 0x40000000
Result : Native OS
[+] Test 5: VMware "get version" command
Result : Native OS
[+] Test 6: VMware "get memory size" command
Result : Native OS
[+] Test 7: VMware emulation mode
Result : Native OS or VMware without emulation mode
(enabled acceleration)
:: tk, 2008 ::
:: [ www.trapkit.de ] ::
###################################################
Command: wmic baseboard get product, Manufacturer, version, serialnumber
Output: Manufacturer product serialnumber version
Oracle Corporation VirtualBox 0 1.2
Command: python cpuinfo.py
Output:
Vendor ID: GenuineIntel
Hardware Raw:
Brand: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
Hz Advertised: 2.2000 GHz
Hz Actual: 2.2000 GHz
Hz Advertised Raw: (2200000000, 0)
Hz Actual Raw: (2200000000, 0)
Arch: X86_64
Bits: 64
Count: 1
Raw Arch String: AMD64
L2 Cache Size: 0
L2 Cache Line Size: 0
L2 Cache Associativity: 0
Stepping: 0
Model: 0
Family: 0
Processor Type: 0
Extended Model: 0
Extended Family: 0
Flags: clflush, cmov, de, dts, fxsr, ia64, mca, mce, mmx, mtrr, sep, serial, ss, sse, sse2, tm
Host MAC:
In terminal,
Command: uname -a
Output: Darwin ALMBP15-00005 15.4.0 Darwin Kernel Version 15.4.0: Fri Feb 26 22:08:05 PST 2016; root:xnu-3248.40.184~3/RELEASE_X86_64 x86_64
Command: sw_vers
Output:
ProductName: Mac OS X
ProductVersion: 10.11.4
BuildVersion: 15E65
Command: sysctl hw.model
Output: hw.model: MacBookPro8,2
Command: python cpuinfo.py
Output:
Vendor ID: GenuineIntel
Hardware Raw:
Brand: Intel(R) Core(TM) i7-2720QM CPU @ 2.20GHz
Hz Advertised: 2.2000 GHz
Hz Actual: 2.2000 GHz
Hz Advertised Raw: (2200000000, 0)
Hz Actual Raw: (2200000000, 0)
Arch: X86_64
Bits: 64
Count: 8
Raw Arch String: x86_64
L2 Cache Size: 256
L2 Cache Line Size: 0
L2 Cache Associativity: 0
Stepping: 7
Model: 42
Family: 6
Processor Type: 0
Extended Model: 0
Extended Family: 0
Flags: acpi, aes, apic, avx1.0, clfsh, cmov, cx16, cx8, de, ds, dscpl, dtes64, est, fpu, fxsr, htt, mca, mce, mmx, mon, msr, mtrr, osxsave, pae, pat, pbe, pcid, pclmulqdq, pdcm, pge, popcnt, pse, pse36, sep, smx, ss, sse, sse2, sse3, sse4.1, sse4.2, ssse3, tm, tm2, tpr, tsc, tsctmr, vme, vmx, x2apic, xsave
Windows VM in VMWare:
In terminal:
Command: cd SpookyNG, SpookyNG.exe
Output:
C:\Users\SwethanaGopisetti\Downloads\ScoopyNG\ScoopyNG>ScoopyNG.exe
####################################################
:: ScoopyNG - The VMware Detection Tool ::
:: Windows version v1.0 ::
[+] Test 1: IDT
IDT base: 0x74f00070
Result : Native OS
[+] Test 2: LDT
LDT base: 0xdead0000
Result : Native OS
[+] Test 3: GDT
GDT base: 0x74f00070
Result : Native OS
[+] Test 4: STR
STR base: 0x40000000
Result : Native OS
[+] Test 5: VMware "get version" command
Result : VMware detected
Version : Workstation
[+] Test 6: VMware "get memory size" command
Result : VMware detected
[+] Test 7: VMware emulation mode
Result : Native OS or VMware without emulation mode
(enabled acceleration)
:: tk, 2008 ::
:: [ www.trapkit.de ] ::
###################################################
Command: wmic baseboard get product, Manufacturer, version, serialnumber
Output: Manufacturer product serialnumber version
Intel Corporation 440BX Desktop Reference Platform none none
Host Windows:
In terminal
Command: wmic baseboard get product, Manufacturer, version, serialnumber
Output: Manufacturer Product SerialNumber Version
LENOVO 20AQ006HUS 1ZSUK47J2AY 0B98401 PRO
Command: python cpuinfo.py
Output:
Vendor ID: GenuineIntel
Hardware Raw:
Brand: Intel(R) Core(TM) i7-4600U CPU @ 2.10GHz
Hz Advertised: 2.1000 GHz
Hz Actual: 2.6940 GHz
Hz Advertised Raw: (2100000000, 0)
Hz Actual Raw: (2694000000, 0)
Arch: X86_64
Bits: 64
Count: 4
Raw Arch String: AMD64
L2 Cache Size: 0
L2 Cache Line Size: 0
L2 Cache Associativity: 0
Stepping: 0
Model: 0
Family: 0
Processor Type: 0
Extended Model: 0
Extended Family: 0
Flags: 3dnow, acpi, clflush, cmov, de, dts, fxsr, ia64, mca, mce, mmx, msr, mtrr, pse, sep, serial, ss, sse, sse2, tm, tsc
Ubuntu in VMware:
Command: lspci | grep -i VMware
Output: ...VMware...
Command: lscpu
Output: Hypervisor vendor:VMware
Virtualization type: full
Command: ls -l /dev/disk/by-id/
Output: ...VMware...
Command: egrep -wo 'hypervisor' /proc/cpuinfo
Output: hypervisor
Ubuntu Host:
Command: lspci | grep -i VMware
Output:
Command: lscpu
Output: Virtualization: AMD-V
Command: ls -l /dev/disk/by-id/
Output: ...TOSHIBA...
Command: egrep -wo 'hypervisor' /proc/cpuinfo
Output:
Command: dmesg | egrep -i 'VMware|VBox|virtual|xen|qemu'
Output:...kvm.. (Hence removed KVM from list of keywords)
Ubuntu guest in QEMU:
Command: dmesg | egrep -i 'VMware|VBox|virtual|xen|qemu'").read())
Output: ...QEMU...
Command: egrep -wo 'hypervisor' /proc/cpuinfo"
Output: hypervisor
Command: ls -l /dev/disk/by-id
Output: ...QEMU...
Command: cat /proc/scsi/scsi
Output: ...QEMU...
Windows 10 guest in QEMU:
Command: systeminfo | findstr /C:"System Manufacturer" /C:"System Model"
Output: ..QEMU..
Command: wmic baseboard get product, Manufacturer, version, serialnumber
Output: No instances found
Mac VM (Server):
vmac-15:~ ci-bot$ sysctl hw.model
hw.model: MacPro5,1
vmac-15:~ ci-bot$ ioreg -l | grep -e Manufacturer -e 'Vendor Name'
| | | | | "USB Vendor Name" = "Parallels"
| | | | | | "Manufacturer" = "Parallels"
| | | | | | | "Manufacturer" = "Parallels"
| | | | | | | "Manufacturer" = "Parallels"
| | | | | | | | "Manufacturer" = "Parallels"
| | | | | | | | "Manufacturer" = "Parallels"
| | | | | "Manufacturer" = "Parallels"
| | | | | | "Manufacturer" = "Parallels"
| | | | | | "Manufacturer" = "Parallels"
| | | | | | | "Manufacturer" = "Parallels"
| | | | | | | "Manufacturer" = "Parallels"
| | | | | "USB Vendor Name" = "Parallels"
| | | | | "Manufacturer" = "Parallels"
| | | | | | "Manufacturer" = "Parallels"
| | | | | | "Manufacturer" = "Parallels"
| | | | | | | "Manufacturer" = "Parallels"
| | | | "Vendor Name" = "Generic"
| | | | | "Controller Characteristics" = {"Port Description"="AHCI Version 1.10 Supported","Product Name"="AHCI Controller","Vendor Name"="Generic","Port Speed"="3 Gigabit"}
| | | | | "Controller Characteristics" = {"Port Description"="AHCI Version 1.10 Supported","Product Name"="AHCI Controller","Vendor Name"="Generic","Port Speed"="3 Gigabit"}
| | | | | "Device Characteristics" = {"Power Off"=No,"Product Name"="Virtual DVD-ROM","Fast Spindown"=No,"CD Features"=15,"Low Power Polling"=No,"DVD Features"=407,"BD Features"=0,"Vendor Name"="","Async Notification"=No,"Loading Mechanism"="Tray","Product Revision Level"="R103"}
| | | | "Controller Characteristics" = {"Port Description"="AHCI Version 1.10 Supported","Product Name"="AHCI Controller","Vendor Name"="Generic","Port Speed"="3 Gigabit"}
| | | | "Controller Characteristics" = {"Port Description"="AHCI Version 1.10 Supported","Product Name"="AHCI Controller","Vendor Name"="Generic","Port Speed"="3 Gigabit"}
| | | | "Controller Characteristics" = {"Port Description"="AHCI Version 1.10 Supported","Product Name"="AHCI Controller","Vendor Name"="Generic","Port Speed"="3 Gigabit"}
| | | "Controller Characteristics" = {"Port Description"="AHCI Version 1.10 Supported","Product Name"="AHCI Controller","Vendor Name"="Generic","Port Speed"="3 Gigabit"}
| | "Vendor Name" = "Apple"
| | | "Device Characteristics" = {"Product Revision Level"="10.11v417.2","Product Name"="Disk Image","Vendor Name"="Apple"}
| | "Device Characteristics" = {"Product Revision Level"="10.11v417.2","Product Name"="Disk Image","Vendor Name"="Apple"}
| | "iManufacturer" = 0
| | "USB Vendor Name" = "Apple Inc."
| | | "iManufacturer" = 1
| | | "USB Vendor Name" = "Parallels"
| | "iManufacturer" = 1
| | "USB Vendor Name" = "Parallels"