688
|
1 #!/bin/bash |
|
2 clear |
695
|
3 echo -e "" |
|
4 echo -e "\033[1;31m __________ _ _ \033[1;33m__ __\033[1;31m ______ \033[0;0m" |
|
5 echo -e "\033[1;31m / / / / ___| _ __ | (_) ___ ___\033[1;33m\\ \\/ /\033[1;31m / / / / \033[0;0m" |
|
6 echo -e "\033[1;31m / / / /\___ \| '_ \| | |/ __/ _ \\\\\033[1;33m\\\ / \033[1;31m/ / / /\033[0;0m" |
|
7 echo -e "\033[1;31m / / / / ___) | |_) | | | (_| __/\033[1;33m/ \\ \033[1;31m/ / / / \033[0;0m" |
|
8 echo -e "\033[1;31m /_/_/_/ |____/| .__/|_|_|\\___\\___\033[1;33m/_/\\_\\\\\033[1;31m/_/_/_/ \033[0;0m" |
|
9 echo -e "\033[1;31m |_| \033[0;0m" |
|
10 echo -e "" |
|
11 echo -e "\033[1;33m .:Brute Force Utilities For GNU/Linux:. \033[0;0m" |
|
12 echo -e "" |
|
13 echo -e "" |
|
14 echo -e " SpliceX is free software: you can redistribute it and/or modify it under " |
|
15 echo -e " the terms of the GNU General Public License as published by the Free " |
|
16 echo -e " Software Foundation, either version 3 of the License, or (at your option)" |
|
17 echo -e " any later version. " |
|
18 echo -e "" |
|
19 echo -e " SpliceX is distributed in the hope that it will be useful, but WITHOUT " |
|
20 echo -e " ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or " |
|
21 echo -e " FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License " |
|
22 echo -e " for more details. <http://www.gnu.org/licenses/> " |
|
23 echo -e "" |
|
24 echo -e "" |
688
|
25 |
|
26 if [[ $(id -u) != 0 ]]; then |
695
|
27 echo -e 'root privileges required...\033[1;31m FAILED\033[0;0m' |
688
|
28 exit 1 |
|
29 fi |
|
30 |
|
31 sleep .3 |
695
|
32 echo -e '\033[1;33mCONFIGURE: \033[0;0m' |
688
|
33 sleep .3 |
|
34 echo -ne 'checking for python' |
|
35 sleep .3 |
|
36 echo -ne '.' |
|
37 sleep .3 |
|
38 echo -ne '.' |
|
39 sleep .3 |
|
40 echo -ne '.' |
|
41 if which python >/dev/null; then |
|
42 sleep .3 |
695
|
43 echo -ne '\033[1;32m OK\033[0;0m' |
688
|
44 echo |
|
45 sleep .3 |
|
46 else |
|
47 sleep .3 |
695
|
48 echo -ne '\033[1;31m FAILED\033[0;0m' |
688
|
49 echo |
|
50 exit 1 |
|
51 fi |
|
52 |
|
53 echo -ne 'checking for man' |
|
54 sleep .3 |
|
55 echo -ne '.' |
|
56 sleep .3 |
|
57 echo -ne '.' |
|
58 sleep .3 |
|
59 echo -ne '.' |
|
60 if which man >/dev/null; then |
|
61 sleep .3 |
695
|
62 echo -ne '\033[1;32m OK\033[0;0m' |
688
|
63 echo |
|
64 sleep .3 |
|
65 else |
|
66 sleep .3 |
695
|
67 echo -ne '\033[1;31m FAILED\033[0;0m' |
688
|
68 echo |
|
69 exit 1 |
|
70 fi |
|
71 |
|
72 PYPATH=`which python` |
695
|
73 echo -ne "configuring splicex for $PYPATH" |
688
|
74 sleep .3 |
|
75 echo -ne '.' |
|
76 sleep .3 |
|
77 echo -ne '.' |
|
78 sleep .3 |
|
79 echo -ne '.' |
695
|
80 sed -e s^PYTHON^"$PYPATH"^g src/splicex.py >src/splicex.cp || echo -ne '\033[1;31m FAILED\033[0;0m' |
|
81 sed -e s^PYTHON^"$PYPATH"^g src/splicex-deshadow.py >src/splicex-deshadow.cp || echo -ne '\033[1;31m FAILED\033[0;0m' |
|
82 echo -ne '\033[1;32m OK\033[0;0m' |
|
83 echo -e "" |
688
|
84 sleep .3 |
|
85 echo |
695
|
86 echo -e '\033[1;33mINSTALL: \033[0;0m' |
688
|
87 sleep .3 |