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

call to set_hvm_event() returns not success #4

Closed
armvirus opened this issue Dec 26, 2020 · 20 comments
Closed

call to set_hvm_event() returns not success #4

armvirus opened this issue Dec 26, 2020 · 20 comments

Comments

@armvirus
Copy link

armvirus commented Dec 26, 2020

i tried using the project with virtualization enabled on my vm / main pc
the kaspersky hypervisor is loaded i checked the service.
but when calling return NT_SUCCESS( set_hvm_event() ); this returns false because set_hvm_event() doesnt return STATUS SUCCESS it returns: C00000A3 (STATUS_DEVICE_NOT_READY) sometimes returns C000090B.

    bool kaspersky::hvm_init()
    {
	    if ( !provider || !set_hvm_event )
		    return false;
    
	    *provider = 4;
    
	    auto ret = set_hvm_event();
    
	    log("%p\n", ret);
    
	    return NT_SUCCESS(ret);
    }
    [ KasperskyHook ] 00000000C00000A3

edit: driver is also signed i am using a cert.
https://guidedhacking.com/threads/kasperskyhook-hook-windows-system-calls.16030/post-98821
same error as this guy ^
except i have virtualization enabled

@iPower
Copy link
Owner

iPower commented Jan 3, 2021

Sorry for late reply.

This usually happens in three cases:

  • Virtualization is not enabled
  • Conflicts with other hypervisors
  • Registry isn't properly set up.

Try:

  • Enabling virtualization (you said it's already enabled so ignore it)
  • Checking if there's no other hypervisors or if nested virtualization is supported
  • Delete all services, cleanup registry information and reboot your system. Then try loading KasperskyHook again.

Let me know if this solves your problem.

@armvirus
Copy link
Author

armvirus commented Jan 3, 2021

no other hypervisors are running. its a clean vm installation. i tried cleaning up all services etc even got a new vm installation

@iPower
Copy link
Owner

iPower commented Jan 4, 2021

Do you have any more details? Every user that reached to me on Discord that had this same error code managed to fix by following those steps.

Did you make sure VT-x/AMD-v is enabled on guest? Are you using a newer version of klhk.sys? What's your Windows version? I'd like to try reproducing this issue.

@armvirus
Copy link
Author

armvirus commented Jan 5, 2021

can you add me on discord so we can solve this faster if you got some time flushin#9408

@iPower
Copy link
Owner

iPower commented Jan 7, 2021

Unfortunately I'm not adding people on Discord anymore because I've got a lot of friend requests from people that want me to sell pay-to-cheats, fix their cheats and also annoying me in general. I know that this is not your case but I prefer not adding people on Discord anymore.

I tried to reproduce your issue with different Windows 10 versions but I couldn't get an error code, except when registry had wrong information.

@dilibili
Copy link

dilibili commented Jan 9, 2021

我也是
VMware 正常
实体机 错误

@dilibili
Copy link

dilibili commented Jan 9, 2021

-1073741661 = set_hvm_event()
win10 20h2 19042.685

@iPower
Copy link
Owner

iPower commented Jan 9, 2021

-1073741661 = set_hvm_event()
win10 20h2 19042.685

Did you follow the same steps as I said above?

@armvirus
Copy link
Author

i reinstalled my vm and followed these steps except i dont understand what you mean by cleanup registry information

@dilibili
Copy link

-1073741661 = set_hvm_event()
win10 20h2 19042.685

Did you follow the same steps as I said above?

Down new sys。 it is ok

@iPower
Copy link
Owner

iPower commented Jan 13, 2021

@armvirus did you try @dilibili 's solution?

@armvirus
Copy link
Author

armvirus commented Jan 13, 2021

i downloaded latest kaspersky antivirus and checked the driver timestampand its the same as the one provided in here. and same hash. its the same file so it won't make a difference

edit: seems like i had the old driver sitting there and kaspersky installer didn't finish installing due to some conflicts with malwarebytes lmfao. anyways i am getting the new sys now and trying but im thinking that solution should work.

@iPower
Copy link
Owner

iPower commented Jan 15, 2021

Did it work or not? I'm curious to see the results.

@iPower
Copy link
Owner

iPower commented Jan 17, 2021

OP didn't post any updates so I'm assuming he solved his issue. I'm closing the issue now.

@iPower iPower closed this as completed Jan 17, 2021
@iPower
Copy link
Owner

iPower commented Feb 11, 2021

Update: OP told me on Discord that he got his issue solved by getting a newer driver.

@xyz8989
Copy link

xyz8989 commented Mar 28, 2021

Could you provide more info on the new driver like the sign time and version? I am also having this problem and I tried using the newest driver to no avail.

@iPower
Copy link
Owner

iPower commented Mar 30, 2021

Well I've talked to some people that had the same issue and this is what seems to work:

1- Delete KasperskyHook service (make sure registry information is properly removed)
2- Delete klhk service (make sure registry information is properly removed)
3- Install Kaspersky and get the newest klhk.sys
4- Uninstall Kaspersky
5- Reboot your system
6- Try running KasperskyHook with the newest klhk.sys

Make sure that there are no other hypervisors running and virtualization is enabled by system firmware.

@jjensn
Copy link

jjensn commented Apr 20, 2022

SHA256 of working driver on Win10 19044.1645: 3433F5BB9AB3B33E862AAB2C1D565115E3E4B5F2D3CB7610B109FB2502F05031

I also disabled virtualization based-security using bcdedit /set hypervisorlaunchtype off, though I am not sure if it made a difference. YMMV

@ZRR666
Copy link

ZRR666 commented Nov 4, 2023

I couldn't load successfully on 19045
Has anyone been successful with version 19045

@iPower
Copy link
Owner

iPower commented Dec 13, 2023

You need to get the latest klhk.sys in order to make it work for your windows version. Kaspersky uses hardcoded indexes for win32k syscalls so if you have an unsupported windows version everything else is going to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants