HavocFramework / Havoc

The Havoc Framework.
https://havocframework.com
GNU General Public License v3.0
6.72k stars 949 forks source link

[File a bug report for the Demon Implant]: Weird bug, upon opening the Process List the Demon implant freezes/becomes unresponsive #331

Closed Wagon2781 closed 1 year ago

Wagon2781 commented 1 year ago

Contact Details

No response

What happened?

Weird bug, upon opening the Process List the Demon implant freezes/becomes unresponsive

Process is still running on my vm, using 10% cpu which is kinda crazy but whatever (Seriously, what the hell is it doing to be using 10% cpu... firefox uses 0.1%...?)

Has to be task manager closed and reran

Why is this?

Did You Do a Pull First?

Anything else (You didn't pull...)

Did You Try With the Dev Branch?

No (You only tried the main branch...)

Relevant log output

No logs regarding this issue I think

Did You Read Over Your Issue First?

Cracked5pider commented 1 year ago

Hey thanks for reporting this. I was aware of this issue and it already has been fixed in the dev branch. This issue is because I made a silly mistake when it comes to opening a process handle and looping through the snapshot in this line of code. When it failed to open a process handle it tries to go to the next process by continuing the loop. Tho it did not increase the offset of the snapshot so it stayed at the same process trying to open the same process over and over again for all eternity.
This issue has been fixed & resolved in the dev branch. Please check it out.