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

add stack buffer in vmx-root #388

Merged
merged 1 commit into from
Jun 15, 2024
Merged

add stack buffer in vmx-root #388

merged 1 commit into from
Jun 15, 2024

Conversation

xmaple555
Copy link
Member

Description

Add stack buffer in vmx-root, so now we can use user-defined functions in script-engine.

image

Each core runs script at one time, and two or more cores run different scripts at the same time, so each core has its own stack buffer. I follow ScriptEngineCoreSpecificTempVariable to allocate memory to ScriptEngineCoreSpecificStackBuffer.

Not really sure if I did it the right way, so it should be check.

@SinaKarvandi SinaKarvandi merged commit 0fa8582 into HyperDbg:dev Jun 15, 2024
3 checks passed
@SinaKarvandi
Copy link
Member

At a glance, I think you did right. Yes, each core can separately (independent from other cores) run scripts. 👍

Other than that, as a suggestion, you could also add something similar to import in Python or using in C#, and other programming languages to the script engine, so that we can start writing some functions as libraries where users can include their '.ds' libraries and reuse them in their scripts.

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

Successfully merging this pull request may close these issues.

None yet

2 participants