wscript
wscript copied to clipboard
Need more guidance
Awesome work, but how can I get started?
I've tried the dist/index.html
but when I click on run
, the page refreshes and nothing happens?
P.S Can you provide a command line version?
Hi,
The 'Run' button will run whatever code is in the Input tab. The 'Load File' button does the same, but injects the uploaded file in the Input tab directly.
This doesn't guarantee that every code returns useful results. Commonly there can be 4 reasons for this:
- The emulator doesn't support or incorrectly supports one of the objects called in the script. In this case it would be very valuable for me to know where the problem is by analysing the malware manually
- The script gets stuck in an infinite loop when emulating downloads. See issue #1 for a more detailed explanation
- The file is not JScript (but VBscript or something else)
- The malware is badly written and wouldn't run in a normal WScript environment either
In any of these cases, the malware will have to be reversed manually to figure out why it didn't run correctly. I don't claim every script will run because of the limitations of emulation, but if even 50% of the scripts runs, it can save a lot of time
I will add this to the README.md as well to inform other people
Regarding a commandline version, I think that's definitely possible. It already runs fine in Node (as the tests show) so I don't think it should be too much work. I have opened issue #5 for this and see if I can get it done over the weekend