HavocFramework / Havoc

The Havoc Framework.
GNU General Public License v3.0
6.37k stars 903 forks source link

[File a bug report for the Demon Implant]: close invalid token handle in CommandProcList which will cause an exception #393

Closed sh1xo closed 10 months ago

sh1xo commented 10 months ago

Contact Details

No response

What happened?

When ProcessOpen fails, the closed token handle in the previous loop will be closed again, which will cause an exception. (https://github.com/HavocFramework/Havoc/blob/c393115fa1714748f368aff97e55da4aa81f5c56/payloads/Demon/Source/Core/Command.c#L641C1-L648)

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 response

Did You Read Over Your Issue First?

S4ntiagoP commented 10 months ago

fixed, thank you!