Skip to content

Commit

Permalink
feat: add static executable
Browse files Browse the repository at this point in the history
update build command.
  • Loading branch information
ryan-gang committed Jul 30, 2024
1 parent ee79092 commit 5cd68a0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified custom_executable
Binary file not shown.
2 changes: 1 addition & 1 deletion internal/custom_executable/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func ReplaceAndBuild(outputPath, randomString string) error {

// Replace the placeholder with the random string
// We can run the executable now, it will work as expected
command = fmt.Sprintf("echo -n \"%s\" | dd of=%s bs=1 seek=$((0x2070 + 4)) conv=notrunc", randomString, outputPath)
command = fmt.Sprintf("echo -n \"%s\" | dd of=%s bs=1 seek=$((0x95070 + 4)) conv=notrunc", randomString, outputPath)
buildCmd := exec.Command("sh", "-c", command)
buildCmd.Stdout = io.Discard
buildCmd.Stderr = io.Discard
Expand Down

0 comments on commit 5cd68a0

Please sign in to comment.