https://github.com/rssu-shellcode/grt-develop
A package for deep customization of Gleam-RT.
https://github.com/rssu-shellcode/grt-develop
gleam-rt
Last synced: 11 months ago
JSON representation
A package for deep customization of Gleam-RT.
- Host: GitHub
- URL: https://github.com/rssu-shellcode/grt-develop
- Owner: RSSU-Shellcode
- License: mit
- Created: 2024-09-02T11:55:37.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-23T09:18:49.000Z (11 months ago)
- Last Synced: 2025-03-23T09:34:35.022Z (11 months ago)
- Topics: gleam-rt
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GRT-Config
A package for deep customization of Gleam-RT.
## option and argument
```go
package main
import (
"fmt"
"os"
"github.com/RSSU-Shellcode/GRT-Config/argument"
"github.com/RSSU-Shellcode/GRT-Config/option"
)
func main() {
tpl, err := os.ReadFile("Gleam-RT.bin")
checkError(err)
opts := option.Options{
NotEraseInstruction: false,
NotAdjustProtect: false,
TrackCurrentThread: false,
}
tpl, err = option.Set(tpl, &opts)
checkError(err)
arg1 := &argument.Arg{
ID: 0,
Data: []byte("arg1"),
}
arg2 := &argument.Arg{
ID: 1,
Data: []byte("arg2"),
}
stub, err := argument.Encode(arg1, arg2)
checkError(err)
output := append(tpl, stub...)
err = os.WriteFile("output.bin", output, 0600)
checkError(err)
}
func checkError(err error) {
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}
```