mirror of
https://github.com/EgeBalci/sgn
synced 2026-06-08 10:56:31 +00:00
v1.0 stable release
This commit is contained in:
+23
@@ -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
@@ -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"]
|
||||
@@ -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
|
||||
|
||||
@@ -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***
|
||||
|
||||
[](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.
|
||||
|
||||
Reference in New Issue
Block a user