ADHD VM How To Guide and Common Errors and How To Fix Them MERGED v5
ADHD VM How To Guide and Common Errors and How To Fix Them MERGED v5
ADHD VM How To Guide and Common Errors and How To Fix Them MERGED v5
VM
Contents
Contents..........................................................................................................1
Purpose............................................................................................................2
Basic Setup and Install Instructions.................................................................2
Install the VM................................................................................................3
Next Steps....................................................................................................3
Prevent Broken Terminal by disabling VM Windows Update.............................5
Background...................................................................................................5
Scripted Disabling.........................................................................................5
Hyper-V / Virtualization Errors Troubleshooting & Fixes...................................7
Introduction..................................................................................................7
Symptoms This Guide Addresses..................................................................7
Remediation.................................................................................................8
A Quick Overview......................................................................................8
1. Adjust VMWare Settings........................................................................9
WARNING:..................................................................................................9
2a. Adjust OS Settings: Scripted (Preferred Path)....................................12
WARNING:................................................................................................12
2b. Adjust OS Settings: Manual (Backup play).........................................14
3. Optional: Toggle VMWare settings back...............................................19
4. A Final Note.........................................................................................19
Password Cracking Lab Errors out with “CL_DEVICE_NOT_AVAILABLE” error. 20
Background / Symptoms.............................................................................20
Remediation...............................................................................................20
Preferred: Scripted Remediation..............................................................20
Backup: Manual Remediation..................................................................22
Credits...........................................................................................................27
1
Purpose
The purpose of this document is to guide you through the setup and common
trouble shooting errors that happen with the ADHD virtual machine (VM)
used in the Antisyphon Pay What You Can courses. As not every host
machine has identical settings and hardware, please note that you may have
slightly different experience than what is documented here. We attempted to
compile the steps that work for most users.
ALTERNATIVE: VIRTUALBOX
1. You can use VirtualBox, but it fails about 25% of the time on either
networking or USB support. USB Support is necessary for the classes
and labs. If you hate yourself, use VirtualBox. Otherwise, use
VMware.
2. We only officially support VMWare for class troubleshooting.
company’s machine.
2. Make sure you have a way to extract 7-zip files.
a. Recommendation: Extract with the full 7-Zip application; do not
extract the VM zip file with the native Windows extract process – it
can fail / cause issues.
2
b. 7-ZiP: https://www.7-zip.org/download.html
c. 7-Zip support for Linux: https://itsfoss.com/use-7zip-ubuntu-linux/
d. 7-Zip utility for Mac: https://www.keka.io/en/
Install the VM
1. Use 7-zip to extract the VM files to some folder of your choosing on
your local file system.
2. Select “Open a Virtual Machine” in VMware.
4. If you are using VMware Workstation Pro please use the “Take a
snapshot of this virtual machine” icon in the toolbar to take a snapshot
of the original working image. You may need this “clean” snapshot
Next Steps
1. Proceed to “Prevent Broken Terminal by disabling VM Windows Update”
3
2. If you’ve received any errors related to Hyper-V or
virtualization, see the Troubleshooting guide for Hyper-V and
virtualization issues.
3. If you have any other questions or issues not covered here, ask in
the Tech Support channel in discord (you should have been
automatically added to it as part of your class registration).
a. We can help you better when you share screenshots of your
problem and share what steps you have taken up to that point!
4
Prevent Broken Terminal by disabling VM
Windows Update
Background
Windows’ auto-update feature can wreak havoc on the class VM by updating
packages to newer versions that may not be compatible with the labs.
Obviously in a “Real world” environment, you’d want to keep things updated
through a proper change and vulnerability management program, but for a
disposable lab VM, the effort is not worth it.
Given that, you’ll want to disable windows update on the VM.
Scripted Disabling
1. Log into the ADHD VM using the usual adhd username & password
a.
b. Select Yes that you will allow this program to make changes to
your device when prompted to continue.
Invoke-webRequest -Uri
https://raw.githubusercontent.com/deterministicj/AntiSy
phonTraining-VM-Fix-Menu/main/ADHD-Fix-Menu.ps1 -
OutFile C:\ADHD-Fix-Menu.ps1
4. In the same PowerShell window, type the line below and press enter:
C:\ADHD-Fix-Menu.ps1
5
5. A simple menu should pop up and ask whether you’d like to disable
updates (Option 1) or Fix the Hashcat lab (Option 2).
a.
b. For now, Select Option 1, and if prompted, “Q” to quit afterward.
6
Hyper-V / Virtualization Errors Troubleshooting
& Fixes
Introduction
Virtualization Problems may occur depending on the host Hardware and
Software settings and how they interact with the ADHD VM. The following
directions are to be followed if you are experiencing Hyper-V or virtualization
errors on your ADHD VM.
7
Remediation
A Quick Overview
Addressing Virtualization errors has a couple of components
1. Adjust VMWare Settings
2. Adjust OS settings (and Windows features)
a. Scripted or
b. Manual
3. Optional: Toggle VMWare settings back
8
1. Adjust VMWare Settings
The below changes will need to be made on your host machine, not the VM.
WARNING:
Ensure you have administrator rights before you begin.
1. If you are running VMware Workstation Player, skip these first steps
and start by checking Memory Integrity.
a.
9
a.
a.
10
a.
a.
8. Click Okay and attempt to start your VM. For some users, this is
sufficient
11
2a. Adjust OS Settings: Scripted (Preferred Path)
The below changes will need to be made on your host machine, not the VM.
WARNING:
Ensure you have administrator rights before you begin.
a. Select Yes that you will allow this program to make changes to
your device when prompted to continue.
3. Run the below command to pull down the scripts that will
automatically adjust your system settings for VM compatibility.
a. Invoke-webRequest -Uri
https://raw.githubusercontent.com/krooth/Antisyphon_lab
_scripts/main/WinADHD/
Disable_Hyper_V_and_Device_Guard.ps1 -OutFile C:\
Disable_Hyper_V_and_Device_Guard.ps1
12
a. Set-ExecutionPolicy -ExecutionPolicy Unrestricted -
Scope Process
5. Run the actual script. When prompted, choose “Y” to disable settings.
a. .\Disable_Hyper_V_And_Device_Guard.ps1
b.
9. If all else fails, contact the tech-support Discord channel for the class.
13
2b. Adjust OS Settings: Manual (Backup play)
Check Memory Integrity Settings
1. In Core Isolation Settings, verify Memory Integrity is set to Off.
a. Start menu search “Core Isolation” open the settings menu
b.
c. Ensure memory integrity is toggled “off”, toggle it if not.
d.
e. Please remember that if your Memory Integrity is set to On, and
you switch it Off to use this VM, you should undo your changes
when you are finished using the ADHD VM
b.
2. Select Turn Windows Features on or off from the Windows Start menu
that appears.
14
a.
b.
15
4. Some users may also need to turn off Virtual Machine Platform, located
above the Windows Hypervisor Platform.
a.
a.
b. Select Yes that you will allow this program to make changes to
your device when prompted to continue.
a.
8. If you see the following for Hyper-V settings, then success! You may
now return to attempt to start your ADHD.
a.
16
9. If you receive any other message next to the Hyper-V Requirements,
please continue to the following directions.
b.
c. You should now receive a message that the operation was
completed successfully and you need to restart the computer to
complete the operation.
d.
17
a.
b.
c. Note: As not all host machines are identical, you may receive an
error message with one or more of the above PowerShell scripts
depending on your setup.
18
6. Restart your host machine and test. If still not resolved,
continue to section 3.
19
3. Optional: Toggle VMWare settings back
After you restart, if there is still an error you may need to toggle the
processor hardware setting for virtualization in your VM - something you may
have already unchecked - back on. For some machines it must be off, for
others it must be on.
**Remember once you get the ADHD VM setup, do not allow it to run
updates or you may need to setup your VM fresh. See previous directions to
stop updates for Microsoft Windows and Windows Store.**
4. A Final Note
One last note, some users may need to Enable or Disable Virtualization in
their BIOS. These settings are usually found in an Advanced tab in the BIOS
settings. These settings may vary by manufacturer.
20
Password Cracking Lab Errors out with
“CL_DEVICE_NOT_AVAILABLE” error
Background / Symptoms
Some users have seen the below error when trying to run hashcat during the
Password Cracking lab:
clCreateContext(): CL_DEVICE_NOT_AVAILABLE.
The problem appears for some, but not all, users, with no discernable pattern
in terms of operating system, processor make, model or any other discerned
metadata.
Remediation
Preferred: Scripted Remediation
1. Log into the ADHD VM using the usual adhd username & password
21
a.
b. Select Yes that you will allow this program to make changes to
your device when prompted to continue.
3. Run the below command to pull down the CLI version updating script.
Invoke-webRequest -Uri
https://raw.githubusercontent.com/deterministicj/AntiS
yphonTraining-VM-Fix-Menu/main/ADHD-Fix-Menu.ps1 -
OutFile C:\ADHD-Fix-Menu.ps1
4. In the same PowerShell window, type the line below and press enter:
C:\ADHD-Fix-Menu.ps1
5. A simple menu should pop up and ask whether you’d like to disable
updates (Option 1) or Fix the Hashcat lab (Option 2)
a.
b. Select Option 2, and if prompted, “Q” to quit afterward.
6. Go back to your Command Prompt and attempt to continue the lab, it should
now move forward without error.
22
a.
7. In the event you are still having issues, you can also try the manual
install below to see if that works.
b.
23
b.
a.
24
a.
a.
25
a.
7. Click the Finish button to exit the setup Wizard
a.
26
a.
27
Credits
This unified ADHD VM How-To Guide, Common Errors, and How to Fix Them
document was created from the experience of many users.
To all those who came to the Tech Support Channel, thank you for letting us
help you. May the trials we all faced in the past help those in the future.
Sincere thanks to the Discord users .lokihakanin, deterministicj,
krooth, and childofalliance for contributing time, code, and screenshots
into this document.
Many thanks to all the Nerdherders who contributed their time to Antisyphon
Tech Support, and who at one point we all had to learn from.
28