Skip to content

Instantly share code, notes, and snippets.

@zzeroo
Last active September 27, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zzeroo/1e1b7e185d0679d91ba8914b5c6042ca to your computer and use it in GitHub Desktop.
Save zzeroo/1e1b7e185d0679d91ba8914b5c6042ca to your computer and use it in GitHub Desktop.
Yaya installation in docker
# 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