-
Notifications
You must be signed in to change notification settings - Fork 324
/
shad0w
executable file
·36 lines (29 loc) · 1.07 KB
/
shad0w
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
#!/bin/bash
# This is a launcher script for shad0w.
if [ -z $1 ]; then
exec sudo docker run -v $(pwd):/root/shad0w/.bridge --rm -it shad0w
exit
fi
if [ $1 = "install" ]; then
cp shad0w /usr/bin/shad0w
docker build -t shad0w .
exec shad0w
exit
fi
if [ $1 = "beacon" ]; then
exec sudo docker run -v $(pwd):/root/shad0w/.bridge --rm -it shad0w $@
exit
fi
if [ $1 = "listen" ]; then
exec sudo docker run -v $(pwd):/root/shad0w/.bridge -p 443:443 -p 80:8080 -p 43334:43334 --rm -it shad0w $@
exit
fi
if [ $1 = "dev" ]; then
echo "This option should only be invoked from the base of the shad0w git repo"
echo "Once you enter the container shell you will be in /root/shad0w dir."
echo "To now run shad0w inside container:"
echo " # python3.8 shad0w.py [listen <options>] [beacon <options>] [help]"
exec sudo docker run --entrypoint /bin/bash -v $(pwd):/root/shad0w -p 443:443 -p 80:8080 -p 43334:43334 --rm -it shad0w
exit
fi
exec sudo docker run -v $(pwd):/root/shad0w/.bridge -p 443:443 -p 80:8080 -p 43334:43334 --rm -it shad0w $@