Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix wrong path names in vmware_files() and vbox_files() to adapt to w… #205

Merged
merged 1 commit into from
Mar 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

#### 0.80

- Fixed path names in vmware_files() and vbox_files() due to wow64 fs redirection.
- Fixed string comparaison in check_adapter_name().
- Anti anti-debug trick: trap flag.
- Add check for well known names used by malware sandboxes.
Expand Down
22 changes: 13 additions & 9 deletions al-khaser/AntiVM/VMWare.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,19 @@ VOID vmware_files()
{
/* Array of strings of blacklisted paths */
const TCHAR* szPaths[] = {
_T("system32\\drivers\\vmmouse.sys"),
_T("system32\\drivers\\vmhgfs.sys"),
_T("system32\\drivers\\vm3dmp.sys"),
_T("system32\\drivers\\vmci.sys"),
_T("system32\\drivers\\vmhgfs.sys"),
_T("system32\\drivers\\vmmemctl.sys"),
_T("system32\\drivers\\vmmouse.sys"),
_T("system32\\drivers\\vmrawdsk.sys"),
_T("system32\\drivers\\vmusbmouse.sys"),
_T("SysNative\\drivers\\vmnet.sys"),
_T("SysNative\\drivers\\vmmouse.sys"),
_T("SysNative\\drivers\\vmusb.sys"),
_T("SysNative\\drivers\\vm3dmp.sys"),
_T("SysNative\\drivers\\vmci.sys"),
_T("SysNative\\drivers\\vmhgfs.sys"),
_T("SysNative\\drivers\\vmmemctl.sys"),
_T("SysNative\\drivers\\vmx86.sys"),
_T("SysNative\\drivers\\vmrawdsk.sys"),
_T("SysNative\\drivers\\vmusbmouse.sys"),
_T("SysNative\\drivers\\vmkdb.sys"),
_T("SysNative\\drivers\\vmnetuserif.sys"),
_T("SysNative\\drivers\\vmnetadapter.sys"),
};

/* Getting Windows Directory */
Expand Down
34 changes: 17 additions & 17 deletions al-khaser/AntiVM/VirtualBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,23 +69,23 @@ VOID vbox_files()
{
/* Array of strings of blacklisted paths */
const TCHAR* szPaths[] = {
_T("system32\\drivers\\VBoxMouse.sys"),
_T("system32\\drivers\\VBoxGuest.sys"),
_T("system32\\drivers\\VBoxSF.sys"),
_T("system32\\drivers\\VBoxVideo.sys"),
_T("system32\\vboxdisp.dll"),
_T("system32\\vboxhook.dll"),
_T("system32\\vboxmrxnp.dll"),
_T("system32\\vboxogl.dll"),
_T("system32\\vboxoglarrayspu.dll"),
_T("system32\\vboxoglcrutil.dll"),
_T("system32\\vboxoglerrorspu.dll"),
_T("system32\\vboxoglfeedbackspu.dll"),
_T("system32\\vboxoglpackspu.dll"),
_T("system32\\vboxoglpassthroughspu.dll"),
_T("system32\\vboxservice.exe"),
_T("system32\\vboxtray.exe"),
_T("system32\\VBoxControl.exe"),
_T("SysNative\\drivers\\VBoxMouse.sys"),
_T("SysNative\\drivers\\VBoxGuest.sys"),
_T("SysNative\\drivers\\VBoxSF.sys"),
_T("SysNative\\drivers\\VBoxVideo.sys"),
_T("SysNative\\vboxdisp.dll"),
_T("SysNative\\vboxhook.dll"),
_T("SysNative\\vboxmrxnp.dll"),
_T("SysNative\\vboxogl.dll"),
_T("SysNative\\vboxoglarrayspu.dll"),
_T("SysNative\\vboxoglcrutil.dll"),
_T("SysNative\\vboxoglerrorspu.dll"),
_T("SysNative\\vboxoglfeedbackspu.dll"),
_T("SysNative\\vboxoglpackspu.dll"),
_T("SysNative\\vboxoglpassthroughspu.dll"),
_T("SysNative\\vboxservice.exe"),
_T("SysNative\\vboxtray.exe"),
_T("SysNative\\VBoxControl.exe"),
};

/* Getting Windows Directory */
Expand Down