From ad7f61c131f02eb32203a26bf5966def0126ee6c Mon Sep 17 00:00:00 2001 From: NoxxDev Date: Tue, 25 Oct 2016 17:45:59 -0200 Subject: [PATCH] Remove all build shell script --- loader/build.debug.sh | 2 -- loader/build.sh | 2 -- mirai/build.sh | 63 ------------------------------------------- 3 files changed, 67 deletions(-) delete mode 100755 loader/build.debug.sh delete mode 100755 loader/build.sh delete mode 100755 mirai/build.sh diff --git a/loader/build.debug.sh b/loader/build.debug.sh deleted file mode 100755 index a7a2f67..0000000 --- a/loader/build.debug.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -gcc -lefence -g -DDEBUG -static -lpthread -pthread -O3 src/*.c -o loader.dbg diff --git a/loader/build.sh b/loader/build.sh deleted file mode 100755 index 07d72f0..0000000 --- a/loader/build.sh +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -gcc -static -O3 -lpthread -pthread src/*.c -o loader diff --git a/mirai/build.sh b/mirai/build.sh deleted file mode 100755 index 51afd44..0000000 --- a/mirai/build.sh +++ /dev/null @@ -1,63 +0,0 @@ -#!/bin/bash - -FLAGS="" - -function compile_bot { - "$1-gcc" -std=c99 $3 bot/*.c -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -Wl,--gc-sections -o release/"$2" -DMIRAI_BOT_ARCH=\""$1"\" - "$1-strip" release/"$2" -S --strip-unneeded --remove-section=.note.gnu.gold-version --remove-section=.comment --remove-section=.note --remove-section=.note.gnu.build-id --remove-section=.note.ABI-tag --remove-section=.jcr --remove-section=.got.plt --remove-section=.eh_frame --remove-section=.eh_frame_ptr --remove-section=.eh_frame_hdr -} - -if [ $# == 2 ]; then - if [ "$2" == "telnet" ]; then - FLAGS="-DMIRAI_TELNET" - elif [ "$2" == "ssh" ]; then - FLAGS="-DMIRAI_SSH" - fi -else - echo "Missing build type." - echo "Usage: $0 " -fi - -if [ $# == 0 ]; then - echo "Usage: $0 " -elif [ "$1" == "release" ]; then - rm release/mirai.* - rm release/miraint.* - go build -o release/cnc cnc/*.go - compile_bot i586 mirai.x86 "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot mips mirai.mips "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot mipsel mirai.mpsl "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot armv4l mirai.arm "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot armv5l mirai.arm5n "$FLAGS -DKILLER_REBIND_SSH" - compile_bot armv6l mirai.arm7 "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot powerpc mirai.ppc "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot sparc mirai.spc "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot m68k mirai.m68k "$FLAGS -DKILLER_REBIND_SSH -static" - compile_bot sh4 mirai.sh4 "$FLAGS -DKILLER_REBIND_SSH -static" - - compile_bot i586 miraint.x86 "-static" - compile_bot mips miraint.mips "-static" - compile_bot mipsel miraint.mpsl "-static" - compile_bot armv4l miraint.arm "-static" - compile_bot armv5l miraint.arm5n " " - compile_bot armv6l miraint.arm7 "-static" - compile_bot powerpc miraint.ppc "-static" - compile_bot sparc miraint.spc "-static" - compile_bot m68k miraint.m68k "-static" - compile_bot sh4 miraint.sh4 "-static" - - go build -o release/scanListen tools/scanListen.go -elif [ "$1" == "debug" ]; then - gcc -std=c99 bot/*.c -DDEBUG "$FLAGS" -static -g -o debug/mirai.dbg - mips-gcc -std=c99 -DDEBUG bot/*.c "$FLAGS" -static -g -o debug/mirai.mips - armv4l-gcc -std=c99 -DDEBUG bot/*.c "$FLAGS" -static -g -o debug/mirai.arm - armv6l-gcc -std=c99 -DDEBUG bot/*.c "$FLAGS" -static -g -o debug/mirai.arm7 - sh4-gcc -std=c99 -DDEBUG bot/*.c "$FLAGS" -static -g -o debug/mirai.sh4 - gcc -std=c99 tools/enc.c -g -o debug/enc - gcc -std=c99 tools/nogdb.c -g -o debug/nogdb - gcc -std=c99 tools/badbot.c -g -o debug/badbot - go build -o debug/cnc cnc/*.go - go build -o debug/scanListen tools/scanListen.go -else - echo "Unknown parameter $1: $0 " -fi