Skip to content
/ obfs Public

Simple tool to obfuscate strings in payloads.

License

Notifications You must be signed in to change notification settings

mjwhitta/obfs

Repository files navigation

obfs

Yum

Go Report Card GitHub Workflow Status License

What is this?

A simple tool to obfuscate strings in payloads.

How to install

Open a terminal and run the following:

$ go get -u github.com/mjwhitta/obfs
$ go install github.com/mjwhitta/obfs/cmd/obfstr@latest

Or compile from source:

$ git clone https://github.com/mjwhitta/obfs.git
$ cd obfs
$ git submodule update --init
$ make

Usage

$ obfstr "this is a test"
obfs.DeobfuscateString(
    []byte{
        0x0f, 0x74, 0x37, 0x7e, 0x90, 0x46, 0xf5, 0x3b, 0x12,
        0x9f, 0x90, 0xca, 0x99, 0x6b, 0xdc, 0x9f, 0x68, 0x74,
        0x9b, 0x99, 0x1f, 0xf6, 0xaa, 0x27, 0xc0, 0xb9, 0xa9,
        0x7e, 0xd7, 0x0e, 0x8e, 0x69, 0x5f, 0xc6, 0x9d, 0x3e,
        0xc2, 0x02, 0x1e, 0x94, 0x1f, 0xa0, 0xa0, 0x1d, 0x74,
        0x0a, 0x73, 0x20, 0xb4, 0x17, 0xfd, 0xec, 0x11, 0xe4,
        0xb6, 0x94, 0x7b, 0x01, 0x7f, 0xe7, 0x49, 0x20, 0xef,
        0xa7, 0xd0, 0xbf, 0xfa, 0x55, 0x01, 0x73, 0xa4, 0x1e,
        0xc4, 0x7b, 0xde, 0x3d, 0x69, 0xe2, 0xeb, 0x7e, 0x70,
        0xd4, 0x29, 0x4d, 0xcd, 0x2f, 0x44, 0xca, 0x20, 0x37,
        0x5a, 0x73, 0x5d, 0x8b, 0xc0, 0x09, 0x6a, 0x8e, 0xdc,
        0x3c, 0xdc, 0xb1, 0x87, 0xd8, 0x24, 0x07, 0x20, 0xb9,
        0x70, 0x06, 0x2b, 0xd3, 0x8d, 0x48, 0xfb, 0x81, 0x80,
        0x27, 0x94, 0xf9, 0x93, 0x61, 0xc1, 0x0f, 0x6c, 0x15,
        0x18, 0x7b, 0x17, 0x8b, 0x40, 0x82, 0xeb, 0xb7, 0x5c,
        0xf6, 0x20, 0xa8, 0xa8, 0x4d, 0x08, 0x16, 0xba, 0x1c,
        0x87, 0x5d, 0x06, 0xd5, 0xa6, 0x7e, 0xfc, 0x74, 0xc6,
        0x6f, 0x3c, 0x13, 0x64, 0xcf, 0xdb, 0xf3, 0x29, 0x87,
        0x47, 0xc0, 0xd2, 0x35, 0x65, 0xa0, 0x5b, 0xf4, 0xc4,
        0x97, 0x4f, 0x0d, 0x87, 0xa2, 0x56, 0x2b, 0x9c, 0xbd,
        0x59, 0x73, 0x3a, 0x88, 0x84, 0x8d, 0x53, 0x4a, 0xc8,
        0x7f, 0x98, 0x1d, 0xe8, 0x43, 0x42, 0xa6, 0x74, 0x1c,
        0xd1, 0x10, 0x02, 0x1b, 0x1b, 0x13, 0x6e, 0x52, 0xb9,
        0xe8, 0x22, 0x4b, 0xed,
    },
)
package main

import (
    "fmt"

    "github.com/mjwhitta/obfs"
)

func main() {
    // this is a test
    var s string = obfs.DeobfuscateString(
        []byte{
            0x0f, 0x74, 0x37, 0x7e, 0x90, 0x46, 0xf5, 0x3b, 0x12,
            0x9f, 0x90, 0xca, 0x99, 0x6b, 0xdc, 0x9f, 0x68, 0x74,
            0x9b, 0x99, 0x1f, 0xf6, 0xaa, 0x27, 0xc0, 0xb9, 0xa9,
            0x7e, 0xd7, 0x0e, 0x8e, 0x69, 0x5f, 0xc6, 0x9d, 0x3e,
            0xc2, 0x02, 0x1e, 0x94, 0x1f, 0xa0, 0xa0, 0x1d, 0x74,
            0x0a, 0x73, 0x20, 0xb4, 0x17, 0xfd, 0xec, 0x11, 0xe4,
            0xb6, 0x94, 0x7b, 0x01, 0x7f, 0xe7, 0x49, 0x20, 0xef,
            0xa7, 0xd0, 0xbf, 0xfa, 0x55, 0x01, 0x73, 0xa4, 0x1e,
            0xc4, 0x7b, 0xde, 0x3d, 0x69, 0xe2, 0xeb, 0x7e, 0x70,
            0xd4, 0x29, 0x4d, 0xcd, 0x2f, 0x44, 0xca, 0x20, 0x37,
            0x5a, 0x73, 0x5d, 0x8b, 0xc0, 0x09, 0x6a, 0x8e, 0xdc,
            0x3c, 0xdc, 0xb1, 0x87, 0xd8, 0x24, 0x07, 0x20, 0xb9,
            0x70, 0x06, 0x2b, 0xd3, 0x8d, 0x48, 0xfb, 0x81, 0x80,
            0x27, 0x94, 0xf9, 0x93, 0x61, 0xc1, 0x0f, 0x6c, 0x15,
            0x18, 0x7b, 0x17, 0x8b, 0x40, 0x82, 0xeb, 0xb7, 0x5c,
            0xf6, 0x20, 0xa8, 0xa8, 0x4d, 0x08, 0x16, 0xba, 0x1c,
            0x87, 0x5d, 0x06, 0xd5, 0xa6, 0x7e, 0xfc, 0x74, 0xc6,
            0x6f, 0x3c, 0x13, 0x64, 0xcf, 0xdb, 0xf3, 0x29, 0x87,
            0x47, 0xc0, 0xd2, 0x35, 0x65, 0xa0, 0x5b, 0xf4, 0xc4,
            0x97, 0x4f, 0x0d, 0x87, 0xa2, 0x56, 0x2b, 0x9c, 0xbd,
            0x59, 0x73, 0x3a, 0x88, 0x84, 0x8d, 0x53, 0x4a, 0xc8,
            0x7f, 0x98, 0x1d, 0xe8, 0x43, 0x42, 0xa6, 0x74, 0x1c,
            0xd1, 0x10, 0x02, 0x1b, 0x1b, 0x13, 0x6e, 0x52, 0xb9,
            0xe8, 0x22, 0x4b, 0xed,
        },
    )

    fmt.Println(s)
}

Links

About

Simple tool to obfuscate strings in payloads.

Resources

License

Stars

Watchers

Forks