Skip to content

In the Windows Server 2008 R2 environment, when the scheduled task(schtasks.exe) uses the SYSTEM user startup program to call jattach, an error Could not create remote thread (error code = 8) is reported. #82

@lijhnihaoa

Description

@lijhnihaoa

OS: windows server 2008 R2

In the golang program, os.Exec() calls jattach.exe to perform {pid} load instrument false xxxxx, and then the golang process is compiled into zeus.exe.
Use schtasks.exe to create a scheduled task and call zeus.exe once every minute
schtasks /create /tn "task1" /tr "\"%zeus_exe_path%\" --backend-url %backend_url% --cid %cid%" /sc minute /mo 1 /ru "NT AUTHORITY\SYSTEM" /f
Log error: Could not create remote thread (error code = 8)
However, if you use the administrator user, no error will be reported; only taskgent.exe will pop up every time the scheduled task is called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions