diff --git a/Makefile b/Makefile index e41b6d6..6a54724 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,18 @@ +# Makefile - CVE-2017-5715 user-to-user sucess rate measurement +# +# Copyright (c) 2022 Samuel AUBERTIN +# +# Permission to use, copy, modify, and distribute this software for any +# purpose with or without fee is hereby granted, provided that the above +# copyright notice and this permission notice appear in all copies. +# +# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +# OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .PHONY: clean build upload .SILENT: .NOTPARALLEL: @@ -62,6 +77,7 @@ all: upload upload: $(RESULTS_FILE) echo -e "\033[4mUploading $^ to www.sk4.nz\033[0m" + chmod 600 $(SSH_KEY) sftp -b - -i $(SSH_KEY) -o BatchMode=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ octoupload@www.sk4.nz: <<< $$'put $^' @@ -79,7 +95,6 @@ build: $(PROGS) echo -e "\033[4mCPU\033[0m\t\t"$$(LC_ALL=en_US.UTF-8 lscpu | grep "Model name" | cut -d":" -f 2 | sort | uniq | awk '{$$1=$$1;print}') $(TEE) echo -e "\033[4mMicrocode\033[0m\t"$$(grep microcode /proc/cpuinfo | sort | uniq | awk '{print $$NF}') $(TEE) echo -e "\033[4mKernel\033[0m\t\t"$$(uname -svm) $(TEE) - echo -e "\033[4mKRETPOLINE\033[0m\t"$$(cat /boot/config-$$(uname -r) | grep RETPOLINE) echo -e "\033[4mClang\033[0m\t\t"$$(clang -v 2>&1 | head -n 1) $(TEE) echo -e "\033[4mGCC\033[0m\t\t"$$(gcc -v 2>&1 | grep 'gcc version') $(TEE) echo -e "\033[4mVulnerablities\033[0m" $(TEE)