Last active
September 27, 2020 16:43
-
-
Save zzeroo/1e1b7e185d0679d91ba8914b5c6042ca to your computer and use it in GitHub Desktop.
Yaya installation in docker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Docker total optional :) | |
# pacman -S docker | |
yay -S docker | |
# Wenn docker installiert ist kannst du so magic | |
# Sachen machen wie diese: | |
docker run -it -v $(pwd):/src debian:latest | |
# ---- hier gehts los --- | |
# Yara dependencies | |
apt update | |
apt install automake libtool make gcc pkg-config wget git | |
# Yara lib? Keine Ahnung was das ist.... | |
wget https://github.com/VirusTotal/yara/archive/v4.0.2.tar.gz | |
tar xfz v4.0.2.tar.gz | |
cd yara-4.0.2/ | |
./configure | |
make && make install | |
# Fuckn go installation (aka "oh man wie früher!o.O) | |
wget https://golang.org/dl/go1.15.2.linux-amd64.tar.gz | |
tar -C /usr/local -xzf go1.15.2.linux-amd64.tar.gz | |
export PATH=$PATH:/usr/local/go/bin | |
go version | |
#go home | |
# Go stuff | |
go get github.com/cooperq/yaya | |
export GOPATH=/root/go | |
cd $GOPATH/src/github.com/cooperq/yaya | |
go build | |
go install | |
# Keine Ahhung wie das mit dem PATH unter go geht aber ich setz einfach mal | |
# ~/go/bin mit in den pfad | |
export PATH=$PATH:$HOME/go/bin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment