README.md

March 7, 2022 ยท View on GitHub


SGN is a polymorphic binary encoder for offensive security purposes such as generating statically undetecable binary payloads. It uses a additive feedback loop to encode given binary instructions similar to LFSR. This project is the reimplementation of the original Shikata ga nai in golang with many improvements.

This Repo is a fork version of github.com/EgeBalci/sgn to bring sgn to javascript.

Build

this repo replace all cgo(github.com/EgeBalci/keystone-go) to github.com/AlexAltea/keystone.js. Then it is compiled to wasm.

$ git clone github.com/akkuman/sgn
$ cd sgn
$ GOARCH=wasm GOOS=js go build -ldflags="-s -w" -trimpath

Demo

Please see github.com/akkuman/sgn-html

Why not PR to upstream

Because I think this repo has a different purpose. I will communicate with the author(EgeBalci) to see if it can be used as a third party link for sgn.