Skip to content

Commit

Permalink
v1.0 stable release
Browse files Browse the repository at this point in the history
  • Loading branch information
EgeBalci committed Jul 29, 2020
1 parent 362fccb commit d58bc09
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,24 @@
# Created by .ignore support plugin (hsz.mobi)
### Go template
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib
*.txt

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

.idea

# Builds
build/
sgn
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM ubuntu:18.04
RUN apt-get update && apt-get -y install wget git cmake build-essential libcapstone-dev gcc-multilib g++-multilib python3 time
WORKDIR /root/
RUN git clone https://github.com/EgeBalci/keystone
RUN mkdir keystone/build
WORKDIR /root/keystone/build
RUN ../make-share.sh
RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="AArch64;X86" -G "Unix Makefiles" ..
RUN make -j8
#RUN ../make-lib.sh
#RUN cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=OFF -DLLVM_TARGETS_TO_BUILD="AArch64, X86" -G "Unix Makefiles" ..
#RUN make -j8
RUN wget https://golang.org/dl/go1.14.6.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.14.6.linux-amd64.tar.gz
ENV PATH=$PATH:/usr/local/go/bin
RUN make install
RUN ldconfig
ENV GOPATH=/root
RUN go get -v -u github.com/egebalci/sgn
ENTRYPOINT ["/root/bin/sgn"]
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
normal:
go build -ldflags="-s -w" -o sgn
go build -ldflags="-s -w" -trimpath -o sgn
386:
CGO_ENABLED=1 GOARCH=386 go build -ldflags="-s -w" -trimpath -o sgn
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ For offensive security community, the original implementation of shikata ga nai

## Install

You can get the pre-compiled binaries [HERE](https://github.com/EgeBalci/sgn/releases). For building from source follow the steps bellow.

**Dependencies:**

Only dependencies required is keystone and capstone libraries. For easily installing capstone and keystone libararies check the table below;
Expand Down Expand Up @@ -60,6 +62,15 @@ Then just go get it ツ
go get github.com/egebalci/sgn
```

***DOCKER INSTALL***

[![Docker](http://dockeri.co/image/egee/sgn)](https://hub.docker.com/r/egee/sgn/)

```
docker pull egee/amber
docker run -it egee/amber
```

**Usage**

`-h` is pretty self explanatory use `-v` if you want to see what's going on behind the scenes `( ͡° ͜ʖ ͡°)_/¯`
Expand Down

0 comments on commit d58bc09

Please sign in to comment.