forked from embedded-sec/BenchIoT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_tools.sh
executable file
·36 lines (24 loc) · 918 Bytes
/
setup_tools.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/bash
################################################################################
#
# This file is used to setup symbolic links for external libraries so that
# they are added in a unified method wether we are using mbed-os or mbed-sdk.
#
################################################################################
################################## VARIABLS ##################################
CURR_DIR=`dirname \`readlink -f $0\``
TOOLS='tools'
TOOLS_DIR=${CURR_DIR}/${TOOLS}
GENERAL_LIB_DIR=${CURR_DIR}/lib
SYM_LINK='ln -sTf'
################################## SETUP ##################################
# Create tools directory
#mkdir -p ${TOOLS_DIR}
cd ${TOOLS_DIR}
# Pull a version of the rop gadgets compiler
if git clone [email protected]:JonathanSalwan/ROPgadget.git
then
echo "[+] Setup completed: ROPgadget compiler"
else
echo "[-] ERROR: Failed to clone ROPgadget compiler"
fi