SHARE
TWEET

Make Your Virtual Machine Stealthy (VMWare + VBox) (Batch)

Imthedude025 Jun 5th, 2018 (edited) 180 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  2. ::Make Your Virtual Machine Stealthy (VMWare + VBox)         ::
  3. ::Created by RU$$ [http://russdev.mooo.com/]                 ::
  4. ::CREDITS:                                                   ::
  5. ::@Jim Browning [https://goo.gl/skhQPW]                      ::
  6. ::@Pckiddy/LukeSYT [https://goo.gl/D9Eh4b]                   ::
  7. ::@Compo [https://goo.gl/6eH85w]                             ::
  8. ::@EveryoneElse                                              ::
  9. ::Fixed on [6/23/2018] - Fixed REG Permission Issue          ::
  10. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  11. @ECHO OFF
  12. @CD %~dp0
  13. @TITLE Make Your Virtual Machine Stealthy (VMWare + VBox)
  14.  
  15. ::Check if CMD is open as admin
  16. NET SESSION >nul 2>&1
  17. IF %ERRORLEVEL% EQU 0 (goto :BEGIN) ELSE (goto :NOTADMIN)
  18.  
  19. :NOTADMIN
  20. cls
  21. echo ERROR: You need to run as an Administrator!
  22. echo.
  23. pause
  24. exit.
  25.  
  26. ::Code start
  27. :BEGIN
  28. cls
  29. If exist SetACL.exe (GOTO :EXISTS) else (GOTO :NOTEXISTS)
  30.  
  31. :NOTEXISTS
  32. cls
  33.  
  34. Echo You do not have the needed SetACL files in your dirrectory.
  35. Echo.
  36.  
  37. SET INPUT=
  38. SET /P INPUT= Do you wish to download them from GitHub? (Y/N):
  39.  
  40. IF /I '%INPUT%'=='Y' GOTO :DOWNLOAD
  41. IF /I '%INPUT%'=='y' GOTO :DOWNLOAD
  42. IF /I '%INPUT%'=='N' GOTO :CANCLED
  43. IF /I '%INPUT%'=='n' GOTO :CANCLED
  44.  
  45. goto :NOTEXISTS
  46.  
  47. :CANCLED
  48. cls
  49.  
  50. Echo ERROR: You need to download the needed files. Now exiting.
  51. Echo.
  52. pause.
  53. exit
  54.  
  55. :DOWNLOAD
  56. cls
  57. Echo STATUS: Now downloading the SetACL directory files..
  58. echo.
  59.  
  60. echo Downloading File.
  61. powershell -Command "(New-Object Net.WebClient).DownloadFile('http://russdev.mooo.com/extra/SetACL.exe', '%~dp0SetACL.exe')"
  62.  
  63. cls
  64. Echo STATUS: File(s) have downloaded successfully!
  65. Echo.
  66. Pause.
  67. GOTO :EXISTS
  68.  
  69. :EXISTS
  70. Cls
  71. cd %~dp0
  72.  
  73. ::Grab Name
  74. set CName=%computername%\%username%
  75.  
  76. Echo We will now begin the changing of device names..
  77. echo.
  78. pause.
  79.  
  80. Cls
  81. ::EDIT 1st ENTY
  82.  
  83. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  84. Set "i=0"
  85. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  86.  /S /F "{4d36e967-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  87. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  88.  /V "FriendlyName" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  89.  
  90. SET NEWNAME=
  91. Echo Current name for VMDisk: %DeviceName[1]%
  92. echo.
  93. SET /P NEWNAME= Change your VMDisk name too:
  94.  
  95. ::GRANT OWNER
  96. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e967-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn setowner -ownr "n:%CName%"
  97.  
  98. ::GRANT PERMS+ INHERITANCE (COMPLETE)
  99. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e967-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn ace -ace "n:%CName%;p:full;i:so,sc"
  100.  
  101. ::CHANGE VALUE
  102. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e967-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do reg.exe add "%%A" /f /v "FriendlyName" /t REG_SZ /d "%NEWNAME%"
  103.  
  104. :: Show finished stats for ENTY
  105. cls
  106.  
  107. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  108. Set "i=0"
  109. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  110.  /S /F "{4d36e967-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  111. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  112.  /V "FriendlyName" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  113.  
  114. Echo Operation Complete! Your Device is now disguised as: %DeviceName[1]%
  115. Echo.
  116. Pause
  117.  
  118. Cls
  119. ::EDIT 2nd ENTY
  120.  
  121. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  122. Set "i=0"
  123. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  124.  /S /F "{4d36e968-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  125. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  126.  /V "DeviceDesc" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  127.  
  128. SET NEWNAME=
  129. Echo Current name for Display Adapter: %DeviceName[1]%
  130. echo.
  131. SET /P NEWNAME= Change your Display Adapter name too:
  132.  
  133. ::GRANT OWNER
  134. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e968-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn setowner -ownr "n:%CName%"
  135.  
  136. ::GRANT PERMS+ INHERITANCE (COMPLETE)
  137. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e968-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn ace -ace "n:%CName%;p:full;i:so,sc"
  138.  
  139. ::CHANGE VALUE
  140. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e968-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do reg.exe add "%%A" /f /v "DeviceDesc" /t REG_SZ /d "%NEWNAME%"
  141.  
  142. :: Show finished stats for ENTY
  143. cls
  144.  
  145. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  146. Set "i=0"
  147. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  148.  /S /F "{4d36e968-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  149. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  150.  /V "DeviceDesc" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  151.  
  152. Echo Operation Complete! Your Device is now disguised as: %DeviceName[1]%
  153. Echo.
  154. Pause
  155.  
  156. Cls
  157. ::EDIT 3rd ENTY
  158.  
  159. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  160. Set "i=0"
  161. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  162.  /S /F "{4d36e965-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  163. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  164.  /V "FriendlyName" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  165.  
  166. SET NEWNAME=
  167. Echo Current name for CDDevice: %DeviceName[1]%
  168. echo.
  169. SET /P NEWNAME= Change your CDDevice name too:
  170.  
  171. ::GRANT OWNER
  172. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e965-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn setowner -ownr "n:%CName%"
  173.  
  174. ::GRANT PERMS+ INHERITANCE (COMPLETE)
  175. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e965-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn ace -ace "n:%CName%;p:full;i:so,sc"
  176.  
  177. ::CHANGE VALUE
  178. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e965-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do reg.exe add "%%A" /f /v "FriendlyName" /t REG_SZ /d "%NEWNAME%"
  179.  
  180. :: Show finished stats for ENTY
  181. cls
  182.  
  183. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  184. Set "i=0"
  185. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  186.  /S /F "{4d36e965-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  187. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  188.  /V "FriendlyName" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  189.  
  190. Echo Operation Complete! Your Device is now disguised as: %DeviceName[1]%
  191. Echo.
  192. Pause
  193.  
  194. Cls
  195. ::EDIT 4th ENTY
  196.  
  197. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  198. Set "i=0"
  199. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  200.  /S /F "{4d36e96f-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  201. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  202.  /V "DeviceDesc" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  203.  
  204. SET NEWNAME=
  205. Echo Current name for Pointing Device: %DeviceName[1]%
  206. echo.
  207. SET /P NEWNAME= Change your Pointing Device name too:
  208.  
  209. ::GRANT OWNER
  210. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e96f-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn setowner -ownr "n:%CName%"
  211.  
  212. ::GRANT PERMS+ INHERITANCE (COMPLETE)
  213. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e96f-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do SetACL.exe -on "%%A" -ot reg -actn ace -ace "n:%CName%;p:full;i:so,sc"
  214.  
  215. ::CHANGE VALUE
  216. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^ /S /F "{4d36e96f-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"') Do reg.exe add "%%A" /f /v "DeviceDesc" /t REG_SZ /d "%NEWNAME%"
  217.  
  218. :: Show finished stats for ENTY
  219. cls
  220.  
  221. For /F "Delims==" %%A In ('Set DeviceName[ 2^>Nul') Do Set "%%A="
  222. Set "i=0"
  223. For /F "EOL= Delims=" %%A In ('Reg Query "HKLM\SYSTEM\CurrentControlSet\Enum"^
  224.  /S /F "{4d36e96f-e325-11ce-bfc1-08002be10318}" /D^|Find /I "Enum"'
  225. ) Do Set /A i+=1 & For /F "Skip=1 Tokens=2*" %%B In ('Reg Query "%%A"^
  226.  /V "DeviceDesc" 2^>Nul') Do Call Set DeviceName[%%i%%]=%%C
  227.  
  228. Echo Operation Complete! Your Device is now disguised as: %DeviceName[1]%
  229. Echo.
  230. Pause
  231.  
  232. cls
  233. Echo End of Device disguising.
  234. echo.
  235. pause.
  236.  
  237. cls
  238. Echo
  239.  
  240. if exist "%~dp0VBScript.reg" (
  241.     del "%~dp0VBScript.reg"
  242. )
  243.  
  244. if exist "%~dp0VMScript.reg" (
  245.     del "%~dp0VMScript.reg"
  246. )
  247.  
  248. :MENU
  249. cls
  250.  
  251. Echo We are now going to disguise your VM Tools.
  252. Echo.
  253.  
  254. SET INPUT=
  255. SET /P INPUT= Are you running VBOX or VMware (VB/VM):
  256.  
  257. IF /I '%INPUT%'=='VB' GOTO :VBOX
  258. IF /I '%INPUT%'=='vb' GOTO :VBOX
  259. IF /I '%INPUT%'=='Vb' GOTO :VBOX
  260. IF /I '%INPUT%'=='vB' GOTO :VBOX
  261. IF /I '%INPUT%'=='VM' GOTO :VMWARE
  262. IF /I '%INPUT%'=='vm' GOTO :VMWARE
  263. IF /I '%INPUT%'=='Vm' GOTO :VMWARE
  264. IF /I '%INPUT%'=='vM' GOTO :VMWARE
  265.  
  266. goto :MENU
  267.  
  268. :VBOX
  269. cls
  270. echo Generating script..
  271.  
  272. ::TEXT GEN-SCRIPT START
  273.  
  274. echo Windows Registry Editor Version 5.00 >> "%~dp0VBScript.reg"
  275. echo.  >> "%~dp0VBScript.reg"
  276. echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\VBoxService] >> "%~dp0VBScript.reg"
  277. echo "Type"=dword:00000010 >> "%~dp0VBScript.reg"
  278. echo "Start"=dword:00000002 >> "%~dp0VBScript.reg"
  279. echo "ErrorControl"=dword:00000001 >> "%~dp0VBScript.reg"
  280. echo "Tag"=dword:00000016 >> "%~dp0VBScript.reg"
  281. echo "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ >> "%~dp0VBScript.reg"
  282. echo   74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,56,\ >> "%~dp0VBScript.reg"
  283. echo   00,42,00,6f,00,78,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,2e,00,65,00,\ >> "%~dp0VBScript.reg"
  284. echo   78,00,65,00,00,00 >> "%~dp0VBScript.reg"
  285. echo "DisplayName"="Microsoft Additions Service" >> "%~dp0VBScript.reg"
  286. echo "Group"="Base" >> "%~dp0VBScript.reg"
  287. echo "ObjectName"="LocalSystem" >> "%~dp0VBScript.reg"
  288. echo "Description"="Manages runtime information, time synchronization, remote sysprep execution and miscellaneous utilities for guest operating systems." >> "%~dp0VBScript.reg"
  289. echo.  >> "%~dp0VBScript.reg"
  290. echo [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet002\services\VBoxService] >> "%~dp0VBScript.reg"
  291. echo "Type"=dword:00000010 >> "%~dp0VBScript.reg"
  292. echo "Start"=dword:00000002 >> "%~dp0VBScript.reg"
  293. echo "ErrorControl"=dword:00000001 >> "%~dp0VBScript.reg"
  294. echo "Tag"=dword:00000016 >> "%~dp0VBScript.reg"
  295. echo "ImagePath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\ >> "%~dp0VBScript.reg"
  296. echo   74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,56,\ >> "%~dp0VBScript.reg"
  297. echo   00,42,00,6f,00,78,00,53,00,65,00,72,00,76,00,69,00,63,00,65,00,2e,00,65,00,\ >> "%~dp0VBScript.reg"
  298. echo   78,00,65,00,00,00 >> "%~dp0VBScript.reg"
  299. echo "DisplayName"="Guest Additions Service" >> "%~dp0VBScript.reg"
  300. echo "Group"="Base" >> "%~dp0VBScript.reg"
  301. echo "ObjectName"="LocalSystem" >> "%~dp0VBScript.reg"
  302. echo "Description"="Manages runtime information, time synchronization, remote sysprep execution and miscellaneous utilities for guest operating systems." >> "%~dp0VBScript.reg"
  303. echo.  >> "%~dp0VBScript.reg"
  304. echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Oracle VM VirtualBox Guest Additions] >> "%~dp0VBScript.reg"
  305. echo "DisplayName"="Microsoft .NET Framework 3.1" >> "%~dp0VBScript.reg"
  306. echo "UninstallString"="C:\\Program Files\\Oracle\\VirtualBox Guest Additions\\uninst.exe" >> "%~dp0VBScript.reg"
  307. echo "DisplayVersion"="5.1.14.0" >> "%~dp0VBScript.reg"
  308. echo "URLInfoAbout"="http://www.virtualbox.org" >> "%~dp0VBScript.reg"
  309. echo "Publisher"="Microsoft Corporation" >> "%~dp0VBScript.reg"
  310.  
  311. ::END TEXT GEN-SCRIPT
  312.  
  313. if exist "%~dp0VBScript.reg" (
  314.     regedit.exe /S VBScript.reg
  315.     del "%~dp0VBScript.reg"
  316. )
  317.  
  318. cls
  319. Echo Script was downloaded and executed successful!
  320. echo.
  321. pause.
  322. goto :FIN
  323.  
  324. :VMWARE
  325. cls
  326. echo Generating script..
  327.  
  328. ::TEXT GEN-SCRIPT START
  329.  
  330. echo Windows Registry Editor Version 5.00 >> "%~dp0VMScript.reg"
  331. echo.  >> "%~dp0VMScript.reg"
  332. echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Products\43F974C0D0E8C1C4D9CA1C70A1C60570\InstallProperties] >> "%~dp0VMScript.reg"
  333. echo "LocalPackage"="C:\\Windows\\Installer\\124ec.msi" >> "%~dp0VMScript.reg"
  334. echo "AuthorizedCDFPrefix"="" >> "%~dp0VMScript.reg"
  335. echo "Comments"="Build " >> "%~dp0VMScript.reg"
  336. echo "Contact"="" >> "%~dp0VMScript.reg"
  337. echo "DisplayVersion"="8.1.30629.3138" >> "%~dp0VMScript.reg"
  338. echo "HelpLink"="" >> "%~dp0VMScript.reg"
  339. echo "HelpTelephone"="" >> "%~dp0VMScript.reg"
  340. echo "InstallDate"="20170205" >> "%~dp0VMScript.reg"
  341. echo "InstallLocation"="C:\\Program Files\\VMware\\VMware Tools\\" >> "%~dp0VMScript.reg"
  342. echo "InstallSource"="C:\\Users\\Admin\\AppData\\Local\\Temp\\{0C479F34-8E0D-4C1C-9DAC-C1071A6C5007}~setup\\" >> "%~dp0VMScript.reg"
  343. echo "ModifyPath"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,78,\ >> "%~dp0VMScript.reg"
  344. echo   00,65,00,20,00,2f,00,49,00,7b,00,30,00,43,00,34,00,37,00,39,00,46,00,33,00,\ >> "%~dp0VMScript.reg"
  345. echo   34,00,2d,00,38,00,45,00,30,00,44,00,2d,00,34,00,43,00,31,00,43,00,2d,00,39,\ >> "%~dp0VMScript.reg"
  346. echo   00,44,00,41,00,43,00,2d,00,43,00,31,00,30,00,37,00,31,00,41,00,36,00,43,00,\ >> "%~dp0VMScript.reg"
  347. echo   35,00,30,00,30,00,37,00,7d,00,00,00 >> "%~dp0VMScript.reg"
  348. echo "Publisher"="Microsoft Corporation" >> "%~dp0VMScript.reg"
  349. echo "Readme"="" >> "%~dp0VMScript.reg"
  350. echo "Size"="" >> "%~dp0VMScript.reg"
  351. echo "EstimatedSize"=dword:0001685f >> "%~dp0VMScript.reg"
  352. echo "UninstallString"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,\ >> "%~dp0VMScript.reg"
  353. echo   78,00,65,00,20,00,2f,00,49,00,7b,00,30,00,43,00,34,00,37,00,39,00,46,00,33,\ >> "%~dp0VMScript.reg"
  354. echo   00,34,00,2d,00,38,00,45,00,30,00,44,00,2d,00,34,00,43,00,31,00,43,00,2d,00,\ >> "%~dp0VMScript.reg"
  355. echo   39,00,44,00,41,00,43,00,2d,00,43,00,31,00,30,00,37,00,31,00,41,00,36,00,43,\ >> "%~dp0VMScript.reg"
  356. echo   00,35,00,30,00,30,00,37,00,7d,00,00,00 >> "%~dp0VMScript.reg"
  357. echo "URLInfoAbout"="" >> "%~dp0VMScript.reg"
  358. echo "URLUpdateInfo"="" >> "%~dp0VMScript.reg"
  359. echo "VersionMajor"=dword:0000000a >> "%~dp0VMScript.reg"
  360. echo "VersionMinor"=dword:00000000 >> "%~dp0VMScript.reg"
  361. echo "WindowsInstaller"=dword:00000001 >> "%~dp0VMScript.reg"
  362. echo "Version"=dword:0a00000a >> "%~dp0VMScript.reg"
  363. echo "Language"=dword:00000409 >> "%~dp0VMScript.reg"
  364. echo "DisplayName"="Microsoft Visual C++ 2005 Redistributable - x86 8.1.30629.3138" >> "%~dp0VMScript.reg"
  365. echo.  >> "%~dp0VMScript.reg"
  366. echo [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{0C479F34-8E0D-4C1C-9DAC-C1071A6C5007}] >> "%~dp0VMScript.reg"
  367. echo "AuthorizedCDFPrefix"="" >> "%~dp0VMScript.reg"
  368. echo "Comments"="Build " >> "%~dp0VMScript.reg"
  369. echo "Contact"="" >> "%~dp0VMScript.reg"
  370. echo "DisplayVersion"="8.1.30629.3138" >> "%~dp0VMScript.reg"
  371. echo "HelpLink"="" >> "%~dp0VMScript.reg"
  372. echo "HelpTelephone"="" >> "%~dp0VMScript.reg"
  373. echo "InstallDate"="20170205" >> "%~dp0VMScript.reg"
  374. echo "InstallLocation"="C:\\Program Files\\VMware\\VMware Tools\\" >> "%~dp0VMScript.reg"
  375. echo "InstallSource"="C:\\Users\\Admin\\AppData\\Local\\Temp\\{0C479F34-8E0D-4C1C-9DAC-C1071A6C5007}~setup\\" >> "%~dp0VMScript.reg"
  376. echo "ModifyPath"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,78,\ >> "%~dp0VMScript.reg"
  377. echo   00,65,00,20,00,2f,00,49,00,7b,00,30,00,43,00,34,00,37,00,39,00,46,00,33,00,\ >> "%~dp0VMScript.reg"
  378. echo   34,00,2d,00,38,00,45,00,30,00,44,00,2d,00,34,00,43,00,31,00,43,00,2d,00,39,\ >> "%~dp0VMScript.reg"
  379. echo   00,44,00,41,00,43,00,2d,00,43,00,31,00,30,00,37,00,31,00,41,00,36,00,43,00,\ >> "%~dp0VMScript.reg"
  380. echo   35,00,30,00,30,00,37,00,7d,00,00,00 >> "%~dp0VMScript.reg"
  381. echo "Publisher"="Microsoft Corporation" >> "%~dp0VMScript.reg"
  382. echo "Readme"="" >> "%~dp0VMScript.reg"
  383. echo "Size"="" >> "%~dp0VMScript.reg"
  384. echo "EstimatedSize"=dword:0001685f >> "%~dp0VMScript.reg"
  385. echo "UninstallString"=hex(2):4d,00,73,00,69,00,45,00,78,00,65,00,63,00,2e,00,65,00,\ >> "%~dp0VMScript.reg"
  386. echo   78,00,65,00,20,00,2f,00,49,00,7b,00,30,00,43,00,34,00,37,00,39,00,46,00,33,\ >> "%~dp0VMScript.reg"
  387. echo   00,34,00,2d,00,38,00,45,00,30,00,44,00,2d,00,34,00,43,00,31,00,43,00,2d,00,\ >> "%~dp0VMScript.reg"
  388. echo   39,00,44,00,41,00,43,00,2d,00,43,00,31,00,30,00,37,00,31,00,41,00,36,00,43,\ >> "%~dp0VMScript.reg"
  389. echo   00,35,00,30,00,30,00,37,00,7d,00,00,00 >> "%~dp0VMScript.reg"
  390. echo "URLInfoAbout"="" >> "%~dp0VMScript.reg"
  391. echo "URLUpdateInfo"="" >> "%~dp0VMScript.reg"
  392. echo "VersionMajor"=dword:0000000a >> "%~dp0VMScript.reg"
  393. echo "VersionMinor"=dword:00000000 >> "%~dp0VMScript.reg"
  394. echo "WindowsInstaller"=dword:00000001 >> "%~dp0VMScript.reg"
  395. echo "Version"=dword:0a00000a >> "%~dp0VMScript.reg"
  396. echo "Language"=dword:00000409 >> "%~dp0VMScript.reg"
  397. echo "DisplayName"="Microsoft Visual C++ 2005 Redistributable - x86 8.1.30629.3138" >> "%~dp0VMScript.reg"
  398. echo.  >> "%~dp0VMScript.reg"
  399. echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\43F974C0D0E8C1C4D9CA1C70A1C60570] >> "%~dp0VMScript.reg"
  400. echo "ProductName"="Microsoft Visual C++ 2005 Redistributable - x86 8.1.30629.3138" >> "%~dp0VMScript.reg"
  401. echo "PackageCode"="769916177BF4A6642B24C24DE19F5D48" >> "%~dp0VMScript.reg"
  402. echo "Language"=dword:00000409 >> "%~dp0VMScript.reg"
  403. echo "Version"=dword:0a00000a >> "%~dp0VMScript.reg"
  404. echo "Assignment"=dword:00000001 >> "%~dp0VMScript.reg"
  405. echo "AdvertiseFlags"=dword:00000184 >> "%~dp0VMScript.reg"
  406. echo "ProductIcon"="C:\\Windows\\Installer\\{0C479F34-8E0D-4C1C-9DAC-C1071A6C5007}" >> "%~dp0VMScript.reg"
  407. echo "InstanceType"=dword:00000000 >> "%~dp0VMScript.reg"
  408. echo "AuthorizedLUAApp"=dword:00000000 >> "%~dp0VMScript.reg"
  409. echo "DeploymentFlags"=dword:00000003 >> "%~dp0VMScript.reg"
  410. echo "Clients"=hex(7):3a,00,00,00,00,00 >> "%~dp0VMScript.reg"
  411. echo.  >> "%~dp0VMScript.reg"
  412. echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\43F974C0D0E8C1C4D9CA1C70A1C60570\SourceList] >> "%~dp0VMScript.reg"
  413. echo "PackageName"="VMware Tools64.msi" >> "%~dp0VMScript.reg"
  414. echo "LastUsedSource"=hex(2):6e,00,3b,00,31,00,3b,00,43,00,3a,00,5c,00,55,00,73,00,\ >> "%~dp0VMScript.reg"
  415. echo   65,00,72,00,73,00,5c,00,41,00,64,00,6d,00,69,00,6e,00,5c,00,41,00,70,00,70,\ >> "%~dp0VMScript.reg"
  416. echo   00,44,00,61,00,74,00,61,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,5c,00,54,00,\ >> "%~dp0VMScript.reg"
  417. echo   65,00,6d,00,70,00,5c,00,7b,00,30,00,43,00,34,00,37,00,39,00,46,00,33,00,34,\ >> "%~dp0VMScript.reg"
  418. echo   00,2d,00,38,00,45,00,30,00,44,00,2d,00,34,00,43,00,31,00,43,00,2d,00,39,00,\ >> "%~dp0VMScript.reg"
  419. echo   44,00,41,00,43,00,2d,00,43,00,31,00,30,00,37,00,31,00,41,00,36,00,43,00,35,\ >> "%~dp0VMScript.reg"
  420. echo   00,30,00,30,00,37,00,7d,00,7e,00,73,00,65,00,74,00,75,00,70,00,5c,00,00,00 >> "%~dp0VMScript.reg"
  421. echo.  >> "%~dp0VMScript.reg"
  422. echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\43F974C0D0E8C1C4D9CA1C70A1C60570\SourceList\Media] >> "%~dp0VMScript.reg"
  423. echo "1"=";" >> "%~dp0VMScript.reg"
  424. echo "2"=";" >> "%~dp0VMScript.reg"
  425. echo "3"=";" >> "%~dp0VMScript.reg"
  426. echo "4"=";" >> "%~dp0VMScript.reg"
  427. echo "5"=";" >> "%~dp0VMScript.reg"
  428. echo "6"=";" >> "%~dp0VMScript.reg"
  429. echo "7"=";" >> "%~dp0VMScript.reg"
  430. echo "8"=";" >> "%~dp0VMScript.reg"
  431. echo "9"=";" >> "%~dp0VMScript.reg"
  432. echo "10"=";" >> "%~dp0VMScript.reg"
  433. echo "11"=";" >> "%~dp0VMScript.reg"
  434. echo "12"=";" >> "%~dp0VMScript.reg"
  435. echo "13"=";" >> "%~dp0VMScript.reg"
  436. echo "14"=";" >> "%~dp0VMScript.reg"
  437. echo "15"=";" >> "%~dp0VMScript.reg"
  438. echo "17"=";" >> "%~dp0VMScript.reg"
  439. echo "18"=";" >> "%~dp0VMScript.reg"
  440. echo "19"=";" >> "%~dp0VMScript.reg"
  441. echo "20"=";" >> "%~dp0VMScript.reg"
  442. echo "21"=";" >> "%~dp0VMScript.reg"
  443. echo "22"=";" >> "%~dp0VMScript.reg"
  444. echo.  >> "%~dp0VMScript.reg"
  445. echo [HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Installer\Products\43F974C0D0E8C1C4D9CA1C70A1C60570\SourceList\Net] >> "%~dp0VMScript.reg"
  446. echo "1"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,41,00,64,00,\ >> "%~dp0VMScript.reg"
  447. echo   6d,00,69,00,6e,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,\ >> "%~dp0VMScript.reg"
  448. echo   00,6f,00,63,00,61,00,6c,00,5c,00,54,00,65,00,6d,00,70,00,5c,00,7b,00,30,00,\ >> "%~dp0VMScript.reg"
  449. echo   43,00,34,00,37,00,39,00,46,00,33,00,34,00,2d,00,38,00,45,00,30,00,44,00,2d,\ >> "%~dp0VMScript.reg"
  450. echo   00,34,00,43,00,31,00,43,00,2d,00,39,00,44,00,41,00,43,00,2d,00,43,00,31,00,\ >> "%~dp0VMScript.reg"
  451. echo   30,00,37,00,31,00,41,00,36,00,43,00,35,00,30,00,30,00,37,00,7d,00,7e,00,73,\ >> "%~dp0VMScript.reg"
  452. echo   00,65,00,74,00,75,00,70,00,5c,00,00,00 >> "%~dp0VMScript.reg"
  453.  
  454. ::END TEXT GEN-SCRIPT
  455.  
  456. if exist "%~dp0VMScript.reg" (
  457.     regedit.exe /S VMScript.reg
  458.     del "%~dp0VMScript.reg"
  459. )
  460.  
  461. cls
  462. Echo Script was downloaded and executed successful!
  463. echo.
  464. pause.
  465. goto :FIN
  466.  
  467. :FIN
  468. cls
  469.  
  470. if exist "%~dp0VBBios.bat" (
  471.     del "%~dp0VBBios.bat"
  472. )
  473.  
  474. if exist "%~dp0VMBios.bat" (
  475.     del "%~dp0VMBios.bat"
  476. )
  477.  
  478. :BIOSM
  479. cls
  480.  
  481. Echo Would you like to generate script's for BIOS spoofing?
  482. Echo These scripts can be used on your host machine to-
  483. Echo Change the bios name exc.
  484. Echo.
  485.  
  486. SET INPUT=
  487. SET /P INPUT= Do you wish to generate scipt (Y/N):
  488.  
  489. IF /I '%INPUT%'=='Y' GOTO :BIOS
  490. IF /I '%INPUT%'=='y' GOTO :BIOS
  491. IF /I '%INPUT%'=='N' GOTO :SKIP
  492. IF /I '%INPUT%'=='n' GOTO :SKIP
  493.  
  494. goto :BIOSM
  495.  
  496. :BIOS
  497.  
  498. cls
  499.  
  500. Echo Would you like to generate script's for BIOS spoofing?
  501. Echo These scripts can be used on your host machine to-
  502. Echo Change the bios name exc.
  503. Echo.
  504.  
  505. SET INPUT=
  506. SET /P INPUT= Are you running VBOX or VMware (VB/VM):
  507.  
  508. IF /I '%INPUT%'=='VB' GOTO :VBOX2
  509. IF /I '%INPUT%'=='vb' GOTO :VBOX2
  510. IF /I '%INPUT%'=='Vb' GOTO :VBOX2
  511. IF /I '%INPUT%'=='vB' GOTO :VBOX2
  512. IF /I '%INPUT%'=='VM' GOTO :VMWARE2
  513. IF /I '%INPUT%'=='vm' GOTO :VMWARE2
  514. IF /I '%INPUT%'=='Vm' GOTO :VMWARE2
  515. IF /I '%INPUT%'=='vM' GOTO :VMWARE2
  516.  
  517. goto :BIOS
  518.  
  519. :VBOX2
  520. cls
  521.  
  522. ::TEXT GEN-SCRIPT START
  523.  
  524. echo @ECHO OFF >> "%~dp0VBBios.bat"
  525. echo CD C:\Program Files\Oracle\VirtualBox >> "%~dp0VBBios.bat"
  526. echo. >> "%~dp0VBBios.bat"
  527. echo Echo Change Your VBOX Bios Names. >> "%~dp0VBBios.bat"
  528. echo echo. >> "%~dp0VBBios.bat"
  529. echo. >> "%~dp0VBBios.bat"
  530. echo SET VMNameX= >> "%~dp0VBBios.bat"
  531. echo SET /P VMNameX= Name of your VM:  >> "%~dp0VBBios.bat"
  532. echo. >> "%~dp0VBBios.bat"
  533. echo SET SystemVendor= >> "%~dp0VBBios.bat"
  534. echo SET /P SystemVendor= Create a SystemVendor name:  >> "%~dp0VBBios.bat"
  535. echo VBoxManage.exe setextradata "%%VMNameX%%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "%%SystemVendor%%" >> "%~dp0VBBios.bat"
  536. echo. >> "%~dp0VBBios.bat"
  537. echo SET SystemProduct= >> "%~dp0VBBios.bat"
  538. echo SET /P SystemProduct= Create a SystemProduct name:  >> "%~dp0VBBios.bat"
  539. echo VBoxManage.exe setextradata "%%VMNameX%%" "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "%%SystemProduct%%" >> "%~dp0VBBios.bat"
  540. echo. >> "%~dp0VBBios.bat"
  541. echo SET BIOSVendor= >> "%~dp0VBBios.bat"
  542. echo SET /P BIOSVendor= Create a BIOSVendor name:  >> "%~dp0VBBios.bat"
  543. echo VBoxManage.exe setextradata "%%VMNameX%%" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "%%BIOSVendor%%" >> "%~dp0VBBios.bat"
  544. echo. >> "%~dp0VBBios.bat"
  545. echo SET BIOSVersion= >> "%~dp0VBBios.bat"
  546. echo SET /P BIOSVersion= Create a BIOSVersion name:  >> "%~dp0VBBios.bat"
  547. echo VBoxManage.exe setextradata "%%VMNameX%%" "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "%%BIOSVersion%%" >> "%~dp0VBBios.bat"
  548. echo. >> "%~dp0VBBios.bat"
  549. echo cls  >> "%~dp0VBBios.bat"
  550. echo Echo Bios settings have been changed! >> "%~dp0VBBios.bat"
  551. echo Echo. >> "%~dp0VBBios.bat"
  552. echo Pause. >> "%~dp0VBBios.bat"
  553. echo exit. >> "%~dp0VBBios.bat"
  554.  
  555. ::END TEXT GEN-SCRIPT
  556.  
  557. cls
  558. Echo VBBios.bat has been generated to batch location!
  559. echo.
  560. pause.
  561. goto :SKIP
  562.  
  563. :VMWARE2
  564. cls
  565.  
  566. ::TEXT GEN-SCRIPT START
  567.  
  568. echo @ECHO OFF >> "%~dp0VMBios.bat"
  569. echo CD C:\Program Files (x86)\VMware\VMware Workstation\ >> "%~dp0VMBios.bat"
  570. echo echo.^>^> setting.txt >> "%~dp0VMBios.bat"
  571. echo echo SMBIOS.reflectHost = "TRUE"^>^> setting.txt >> "%~dp0VMBios.bat"
  572. echo.  >> "%~dp0VMBios.bat"
  573. echo cls >> "%~dp0VMBios.bat"
  574. echo Echo Bios settings have been changed! >> "%~dp0VMBios.bat"
  575. echo Echo. >> "%~dp0VMBios.bat"
  576. echo Pause. >> "%~dp0VMBios.bat"
  577. echo exit. >> "%~dp0VMBios.bat"
  578.  
  579. ::END TEXT GEN-SCRIPT
  580.  
  581. cls
  582. Echo VBMBios.bat has been generated to batch location!
  583. echo.
  584. pause.
  585. goto :SKIP
  586.  
  587. :SKIP
  588. cls
  589.  
  590. Echo Would you like to visit https://ninite.com/?
  591. Echo This website allows you to install mass programs-
  592. Echo on your VM at once.
  593. Echo.
  594.  
  595. SET INPUT=
  596. SET /P INPUT= Do you wish to open in browser (Y/N):
  597.  
  598. IF /I '%INPUT%'=='Y' GOTO :OPN
  599. IF /I '%INPUT%'=='y' GOTO :OPN
  600. IF /I '%INPUT%'=='N' GOTO :FINISHED
  601. IF /I '%INPUT%'=='n' GOTO :FINISHED
  602.  
  603. goto :SKIP
  604.  
  605. :OPN
  606. cls
  607. Echo Launching site..
  608.  
  609. explorer "https://ninite.com/"
  610.  
  611. cls
  612. echo Site was launched.
  613. echo.
  614. pause.
  615.  
  616. goto :FINISHED
  617.  
  618. :FINISHED
  619. cls
  620. Echo The system disguising has completed.
  621. echo.
  622. pause.
  623. goto :EXT
  624.  
  625. :EXT
  626. cls
  627.  
  628. SET INPUT=
  629. SET /P INPUT= Do you wish to reboot your PC (Y/N):
  630.  
  631. IF /I '%INPUT%'=='Y' shutdown /r /t 0
  632. IF /I '%INPUT%'=='y' shutdown /r /t 0
  633. IF /I '%INPUT%'=='N' exit
  634. IF /I '%INPUT%'=='n' exit
  635.  
  636. goto :EXT
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top