One Day Sec

What script formats can DotNetToJScript generate and how would you execute each one?

DotNetToJScript can generate JS, VBS, VBA (for Office macros), SCT (via `regsvr32.exe /u /n /s /i:file.sct scrobj.dll`), and WSC scripts. For WSC, use `GetObject("script:C:\path\file.wsc")` locally or remotely. The Loading .Net Programs Using JS article covers all these methods, which align with other living-off-the-land techniques like Implementation of In-Memory Loading for Seatbelt.
SCT scriptWSC scriptregsvr32GetObjectscript executionVBA macro

Browse all Q&A →