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

(0, 1) Microsoft JScript compilation error: Out of memory #8

Open
Meatballs1 opened this issue Nov 6, 2017 · 2 comments
Open

(0, 1) Microsoft JScript compilation error: Out of memory #8

Meatballs1 opened this issue Nov 6, 2017 · 2 comments

Comments

@Meatballs1
Copy link

Meatballs1 commented Nov 6, 2017

With larger target binaries (1200KB) observe the above error.

By removing the line splits on the base64 serialized object it is fine - all that string concatenation is bad for cscripts health.

@tyranid
Copy link
Owner

tyranid commented Nov 24, 2017

Well, don't do that then ;-) In all seriousness though the tool wasn't really designed with performance in mind, at one point something of that size might have taken 5+ mins to load. If you need a larger binary you could pull it down from a website (WebClient::DownloadData is your friend here) then call Assembly::Load again. Or embed it gzipped into another binary and ungzip it at runtime. As you can call methods on the deserialized object you could easily create a stub loader which has a function you can pass a URL from the JScript to load a new assembly so that you never have main body of the script.

@chaimamel
Copy link

with Vbscript i tried to add other more crypt algorithms like AES (for performance test) but it keep showing errors like : Object not a collection in 'For Each i in dec' line.

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

3 participants