forked from PIG-007/pwnDockerAll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dockerTerm
34 lines (29 loc) · 1003 Bytes
/
dockerTerm
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
terminalList=(gnome-terminal xterm xfce4-terminal)
for terminal in `cat ~/pwnDockerAll/terminalConfig`
do
for i in ${terminalList[*]};
do
if [ $i == ${terminal} ];then
if [ "${terminal}" == "gnome-terminal" ];then
#echo "gnome-terminal"
sudo gnome-terminal -- bash -c "~/pwnDockerAll/dockerGDBOut;exec bash"
exit 1;
fi
if [ "${terminal}" == "xterm" ];then
#echo "xterm"
sudo xterm -e "~/pwnDockerAll/dockerGDBOut && /bin/bash"
exit 1;
#${terminal} -- bash -c "~/pwnDockerAll/dockerGDBOut;exec bash"
fi
if [ "${terminal}" == "xfce4-terminal" ];then
#echo "gnome-terminal"
sudo xfce4-terminal -x bash -c "~/pwnDockerAll/dockerGDBOut;exec bash"
exit 1;
fi
else
continue
fi
done
done
echo "No such terminal!"