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

Added sc_failure to README, and fixed bof_pack for resetPeriod #29

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ You are welcome to use these, but issues opened related to these will be closed
|sc_config| Configure an existing service|
|sc_create| Create a new service|
|sc_delete| Delete an existing service|
|sc_failure| Configures the actions upon failure of an existing service|
|sc_description| Modify an existing services description|
|sc_start| Start an existing service|
|sc_stop| Stop an existing service|
Expand Down
2 changes: 1 addition & 1 deletion Remote/Remote.cna
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ sub bsc_failure
$numactions = $6;
$actions = $7;
$hostname = $8;
$args = bof_pack($bid, "zzszzsz", $hostname, $servicename, $resetperiod, $rebootmessage, $command, $numactions, $actions);
$args = bof_pack($bid, "zzizzsz", $hostname, $servicename, $resetperiod, $rebootmessage, $command, $numactions, $actions);
beacon_inline_execute($bid, readbof($1, "sc_failure"), "go", $args);
}

Expand Down
Binary file modified Remote/sc_failure/sc_failure.x64.o
Binary file not shown.
Binary file modified Remote/sc_failure/sc_failure.x86.o
Binary file not shown.
2 changes: 1 addition & 1 deletion src/Remote/sc_failure/entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ VOID go(
BeaconDataParse(&parser, Buffer, Length);
hostname = BeaconDataExtract(&parser, NULL);
servicename = BeaconDataExtract(&parser, NULL);
resetPeriod = (DWORD)BeaconDataShort(&parser);
resetPeriod = BeaconDataInt(&parser);
rebootMsg = BeaconDataExtract(&parser, NULL);
command = BeaconDataExtract(&parser, NULL);
actions = (DWORD)BeaconDataShort(&parser);
Expand Down