v1.0 stable release

This commit is contained in:
Ege Balcı
2020-07-29 12:16:46 +03:00
parent 362fccb6e9
commit bb01955200
4 changed files with 62 additions and 1 deletions
+23
View File
@@ -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
View File
@@ -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"]
+3 -1
View File
@@ -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
+16
View File
@@ -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;
@@ -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/sgn
docker run -it egee/sgn
```
**Usage**
`-h` is pretty self explanatory use `-v` if you want to see what's going on behind the scenes `( ͡° ͜ʖ ͡°)_/¯`
@@ -97,6 +108,11 @@ Usage: sgn [OPTIONS] <FILE>
-v More verbose output
```
***Docker Usage***
```
docker run -it -v /tmp/:/tmp/ sgn /tmp/shellcode
```
## Using As Library
Warning !! SGN package is still under development for better performance and several improvements. Most of the functions are subject to change.