An open API service indexing awesome lists of open source software.

https://github.com/rssu-shellcode/ssce

A simple shellcode encoder, build and erase decoder at runtime.
https://github.com/rssu-shellcode/ssce

Last synced: 7 months ago
JSON representation

A simple shellcode encoder, build and erase decoder at runtime.

Awesome Lists containing this project

README

          

# SSCE
A simple shellcode encoder, build and erase decoder at runtime and erase shellcode after execution.

## Usage
```bash
ssce -arch 64 -i shellcode.bin -o shellcode_x64.bin
```

## Development
```go
package main

import (
"encoding/hex"
"fmt"
"os"

"github.com/RSSU-Shellcode/SSCE"
)

func main() {
encoder := ssce.NewEncoder(0)

shellcode, err := os.ReadFile("shellcode.bin")
checkError(err)

opts := ssce.Options{
NumIterator: 4,
NumTailInst: 64,
MinifyMode: false,
SaveContext: false,
EraseInst: false,
NoIterator: false,
NoGarbage: false,
}

shellcode, err = encoder.Encode(shellcode, 64, &opts)
checkError(err)

out := hex.EncodeToString(shellcode)
fmt.Println(out)

err = encoder.Close()
checkError(err)
}

func checkError(err error) {
if err != nil {
fmt.Println(err)
os.Exit(1)
}
}
```