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

Not working correctly #6

Closed
hookthieves opened this issue May 17, 2021 · 2 comments
Closed

Not working correctly #6

hookthieves opened this issue May 17, 2021 · 2 comments
Labels
help wanted Extra attention is needed question Further information is requested

Comments

@hookthieves
Copy link

Hello
I downloaded this and Opened the .sln file onto Visual Studio Code
I build it and it built successfully without any errors
GadgetToJScript.exe -b -w js -c dropper.cs -o test

The dropper.cs file is one that is automatically generated when starting a PoshC2 instance.

It gives me this error:
[+]: Generating the js payload
[+]: First stage gadget generation done.
[+]: Compiling your .NET code located at:dropper.cs
Error _AssemblyLoader: Error (CS1056): Unexpected character '$': 574
: at GadgetToJScript._AssemblyLoader.compile(String csFile, String references) in C:\Users\User1\Documents\data\GadgetToJScript-master\GadgetToJScript-master\GadgetToJScript_AssemblyLoader.cs:line 48

I go into Assemblyloader line 48 and see the line below. Is there something I am doing wrong?
image

Please assist if you can.

Thank you so much!

@med0x2e
Copy link
Owner

med0x2e commented May 19, 2021

Hi There,

Seems like the error could be related to code you have placed within dropper.cs source file (Line number 574), if it is not the case, then it will be helpful if you can share the "dropper.cs" (remove shellcode var) file in order to reproduce the issue and work on a fix.

@med0x2e
Copy link
Owner

med0x2e commented Jul 28, 2021

Will close this issue, feel free to re-open if still facing the same issue.

@med0x2e med0x2e closed this as completed Jul 28, 2021
@med0x2e med0x2e added help wanted Extra attention is needed question Further information is requested labels Jul 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants