Skip to content

Commit e7b2b9c

Browse files
committed
Unnecessary coments removed / v.0.5.3 --> v.0.5.4
1 parent e337321 commit e7b2b9c

37 files changed

+118
-189
lines changed

CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Please bear the following coding guidelines in mind:
4242
**Example for a short menu**
4343
```shell
4444
clear
45-
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - ADD BRIDGES MENU" --menu "Choose an option (ESC -> back to the main menu)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
45+
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - ADD BRIDGES MENU" --menu "Choose an option (ESC -> back to the main menu)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
4646
"==" "===============================================================" \
4747
" 1" "Add one OBFS4 bridge automatically (one bridge every 24 hours)" \
4848
" 2" "Add OBFS4 bridges manually" \

bin/backup

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ if (whiptail --title "TorBox - INFO (scroll down!)" --scrolltext --yesno "$INPUT
8888

8989
# Please, choose with SPACE which data you want to includ
9090
if [ "$OBFS4RELAY" == "1" ] || [ "$ONIONSERVICES" == "1" ] || [ "$ONIONAUTH" == "1" ] ; then
91-
WHIPTAIL_LINE="whiptail --nocancel --title \"TorBox v.0.5.3 - BACKUP SELECTION\" --checklist --separate-output \"\nAdditionally to the TorBox configuration, we have found OBFS4 Bridge Relay and/or Onion Services data, which can be included in the backup. \n\nPlease, choose with SPACE which data you want to includ and press ENTER \n(ESC -> go back)\n\" $MENU_HEIGHT_20 $MENU_WIDTH 3"
91+
WHIPTAIL_LINE="whiptail --nocancel --title \"TorBox v.0.5.4 - BACKUP SELECTION\" --checklist --separate-output \"\nAdditionally to the TorBox configuration, we have found OBFS4 Bridge Relay and/or Onion Services data, which can be included in the backup. \n\nPlease, choose with SPACE which data you want to includ and press ENTER \n(ESC -> go back)\n\" $MENU_HEIGHT_20 $MENU_WIDTH 3"
9292
i=0
9393
n=0
9494
if [ "$OBFS4RELAY" == "1" ]; then

bin/bridges_activate_obfs4

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if [ $number_configured_bridges_deactivated = 0 ]; then
9494
fi
9595

9696
clear
97-
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - BRIDGE ACTIVATION MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
97+
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - BRIDGE ACTIVATION MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
9898
"==" "===============================================================" \
9999
" 1" "Activate ALL configured OBFS4 bridges" \
100100
" 2" "Activate only OBFS4 bridges, which are ONLINE" \

bin/bridges_add_obfs4

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ i=0
7272
###########################
7373

7474
clear
75-
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - ADD BRIDGES MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
75+
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - ADD BRIDGES MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
7676
"==" "===============================================================" \
7777
" 1" "Add OBFS4 bridges automatically" \
7878
" 2" "Add OBFS4 bridges manually" \

bin/bridges_add_snowflake

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ i=0
7373
###########################
7474

7575
clear
76-
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - ADD BRIDGES MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
76+
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - ADD BRIDGES MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
7777
"==" "===============================================================" \
7878
" 1" "Add Snowflake bridges automatically" \
7979
" 2" "Add Snowflake bridges manually" \

bin/bridges_deactivate_obfs4

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ if [ $number_configured_bridges_activated = 0 ]; then
9494
fi
9595

9696
clear
97-
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - BRIDGE DEACTIVATION MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
97+
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - BRIDGE DEACTIVATION MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
9898
"==" "===============================================================" \
9999
" 1" "Deactivate ALL configured OBFS4 bridges and directly connect tor" \
100100
" 2" "Deactivate only OBFS4 bridges, which are not longer ONLINE" \

bin/bridges_remove_obfs4

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if [ $EXITID = "EXITID=1" ]; then
9090
fi
9191

9292
clear
93-
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - BRIDGE REMOVAL MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
93+
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - BRIDGE REMOVAL MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
9494
"==" "===============================================================" \
9595
" 1" "Delete ALL configured OBFS4 bridges and directly connect tor" \
9696
" 2" "Delete only OBFS4 bridges, which do not exist anymore" \

bin/bridges_remove_snowflake

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ if [ $EXITID = "EXITID=1" ]; then
9090
fi
9191

9292
clear
93-
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - BRIDGE REMOVAL MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
93+
CHOICE=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - BRIDGE REMOVAL MENU" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
9494
"==" "===============================================================" \
9595
" 1" "Delete ALL configured Snowflake bridges and directly connect tor" \
9696
" 2" "Delete only Snowflake bridges, which do not exist anymore" \

bin/change_MAC

+10-20
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ change_mac_address()
9696
O_DEVICE=$1
9797
exitstatus=0
9898
if [ -z "$CHOICE2" ]; then
99-
INPUT="TorBox v.0.5.3 - Change the MAC address for $O_DEVICE"
99+
INPUT="TorBox v.0.5.4 - Change the MAC address for $O_DEVICE"
100100
CHOICE2=$(whiptail --nocancel --title "$INPUT" --radiolist "Choose with SPACE and then press ENTER (ESC -> go back)" 9 $MENU_WIDTH 3 \
101101
"1" "Randomize the MAC addresse(s)" ON \
102102
"2" "Use the permanent, unique MAC address of the interface(s)" OFF \
@@ -112,7 +112,7 @@ change_mac_address()
112112
MAC_ADDRESS="random"
113113
sudo sed -i "s/^MAC_$O_DEVICE=.*/MAC_$O_DEVICE=$MAC_ADDRESS/" ${RUNFILE}
114114
clear
115-
# NEW v.0.5.3: We have only to put an interface down, if it is not already down
115+
# We have only to put an interface down, if it is not already down
116116
# ATTENTION not connected interfaces have to put down, even the state is already down --> NO-CARRIER
117117
if ip link | grep "$O_DEVICE" | grep -e "state UP" -e "NO-CARRIER" ; then
118118
echo -e "${RED}[+] Shutting interface $O_DEVICE down!${NOCOLOR}"
@@ -125,7 +125,7 @@ change_mac_address()
125125
echo
126126
sudo macchanger -r $O_DEVICE
127127
echo
128-
# NEW v.0.5.3: We have only to put an interface up, if it was up before
128+
# We have only to put an interface up, if it was up before
129129
if [ "$INTERFACE1_DOWN" == "1" ]; then
130130
echo -e "${RED}[+] Starting up interface $O_DEVICE!${NOCOLOR}"
131131
sudo ip link set dev $O_DEVICE up
@@ -139,7 +139,7 @@ change_mac_address()
139139
MAC_ADDRESS="permanent"
140140
sudo sed -i "s/^MAC_$O_DEVICE=.*/MAC_$O_DEVICE=$MAC_ADDRESS/" ${RUNFILE}
141141
clear
142-
# NEW v.0.5.3: We have only to put an interface down, if it is not already down
142+
# We have only to put an interface down, if it is not already down
143143
# ATTENTION not connected interfaces have to put down, even the state is already down --> NO-CARRIER
144144
if ip link | grep "$O_DEVICE" | grep -e "state UP" -e "NO-CARRIER" ; then
145145
echo -e "${RED}[+] Shutting interface $O_DEVICE down!${NOCOLOR}"
@@ -152,7 +152,7 @@ change_mac_address()
152152
echo
153153
sudo macchanger -p $O_DEVICE
154154
echo
155-
# NEW v.0.5.3: We have only to put an interface up, if it was up before
155+
# We have only to put an interface up, if it was up before
156156
if [ "$INTERFACE1_DOWN" == "1" ]; then
157157
echo -e "${RED}[+] Starting up interface $O_DEVICE!${NOCOLOR}"
158158
sudo ip link set dev $O_DEVICE up
@@ -178,7 +178,7 @@ change_mac_address()
178178
fi
179179
sudo sed -i "s/^MAC_$O_DEVICE=.*/MAC_$O_DEVICE=$MAC_ADDRESS/" ${RUNFILE}
180180
clear
181-
# NEW v.0.5.3: We have only to put an interface down, if it is not already down
181+
# We have only to put an interface down, if it is not already down
182182
# ATTENTION not connected interfaces have to put down, even the state is already down --> NO-CARRIER
183183
if ip link | grep "$O_DEVICE" | grep -e "state UP" -e "NO-CARRIER" ; then
184184
echo -e "${RED}[+] Shutting interface $O_DEVICE down!${NOCOLOR}"
@@ -189,7 +189,7 @@ change_mac_address()
189189
#
190190
echo -e "${RED}[+] Setting MAC address to $MAC_ADDRESS ${NOCOLOR}"
191191
sudo ip link set dev $O_DEVICE address $MAC_ADDRESS
192-
# NEW v.0.5.3: We have only to put an interface up, if it was up before
192+
# We have only to put an interface up, if it was up before
193193
if [ "$INTERFACE1_DOWN" == "1" ]; then
194194
echo -e "${RED}[+] Starting up interface $O_DEVICE!${NOCOLOR}"
195195
sudo ip link set dev $O_DEVICE up
@@ -239,7 +239,7 @@ change_mac_address_finish()
239239
read_config
240240

241241
if [ -z "$CHOICE2" ]; then
242-
CHOICE3=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.3 - MAC ADRESSES OF TORBOX'S INTERFACES" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
242+
CHOICE3=$(whiptail --cancel-button "Back" --title "TorBox v.0.5.4 - MAC ADRESSES OF TORBOX'S INTERFACES" --menu "Choose an option (ESC -> go back)" $MENU_HEIGHT $MENU_WIDTH $MENU_LIST_HEIGHT \
243243
"==" "===============================================================" \
244244
" 1" "Change/randomize the MAC adresses of TorBox's interfaces" \
245245
" 2" "List the MAC adresses of TorBox's interfaces" \
@@ -256,7 +256,7 @@ case "$CHOICE3" in
256256
if [ -z "$CHOICE2" ]; then
257257
if grep -q "usb0" <<< "$AVAILABLE_INTERFACES"; then
258258
###### DISPLAY THE AVAILABLE INTERFACES inluding usb0 ######
259-
CHOICE=$(whiptail --nocancel --title "TorBox v.0.5.3 - CHANGE MAC ADRESSES" --checklist --separate-output "Choose with SPACE and then press ENTER (ESC -> go back)" 11 $MENU_WIDTH 5 \
259+
CHOICE=$(whiptail --nocancel --title "TorBox v.0.5.4 - CHANGE MAC ADRESSES" --checklist --separate-output "Choose with SPACE and then press ENTER (ESC -> go back)" 11 $MENU_WIDTH 5 \
260260
"1" "Change the wireless interface 0 (onboard chip; wlan0)" OFF \
261261
"2" "Change the wireless interface 1 (USB adapter; wlan1)" OFF \
262262
"3" "Change the ethernet interface 0 (onboard ethernet connector; eth0)" OFF \
@@ -265,7 +265,7 @@ case "$CHOICE3" in
265265
3>&1 1>&2 2>&3)
266266
else
267267
###### DISPLAY THE AVAILABLE INTERFACES without usb0 ######
268-
CHOICE=$(whiptail --nocancel --title "TorBox v.0.5.3 - CHANGE MAC ADRESSES" --checklist --separate-output "Choose with SPACE and then press ENTER (ESC -> go back)" 10 $MENU_WIDTH 4 \
268+
CHOICE=$(whiptail --nocancel --title "TorBox v.0.5.4 - CHANGE MAC ADRESSES" --checklist --separate-output "Choose with SPACE and then press ENTER (ESC -> go back)" 10 $MENU_WIDTH 4 \
269269
"1" "Change the wireless interface 0 (onboard chip; wlan0)" OFF \
270270
"2" "Change the wireless interface 1 (USB adapter; wlan1)" OFF \
271271
"3" "Change the ethernet interface 0 (onboard ethernet connector; eth0)" OFF \
@@ -305,36 +305,26 @@ case "$CHOICE3" in
305305
echo ""
306306
O_DEVICE="wlan0"
307307
if grep -q "$O_DEVICE" <<< "$AVAILABLE_INTERFACES"; then
308-
# NEW v.0.5.3 Use ip instead of ifconfig
309-
#MAC_ADDRESS_NUMBER=$(ifconfig $O_DEVICE | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
310308
MAC_ADDRESS_NUMBER=$(ip -o link show $O_DEVICE | cut -d ' ' -f 2,20 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
311309
echo -e "Interface: ${RED}$O_DEVICE${NOCOLOR} - status: ${RED}$MAC_wlan0${NOCOLOR} - current MAC: ${RED}$MAC_ADDRESS_NUMBER${NOCOLOR}"
312310
fi
313311
O_DEVICE="wlan1"
314312
if grep -q "$O_DEVICE" <<< "$AVAILABLE_INTERFACES"; then
315-
# NEW v.0.5.3 Use ip instead of ifconfig
316-
#MAC_ADDRESS_NUMBER=$(ifconfig $O_DEVICE | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
317313
MAC_ADDRESS_NUMBER=$(ip -o link show $O_DEVICE | cut -d ' ' -f 2,20 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
318314
echo -e "Interface: ${RED}$O_DEVICE${NOCOLOR} - status: ${RED}$MAC_wlan1${NOCOLOR} - current MAC: ${RED}$MAC_ADDRESS_NUMBER${NOCOLOR}"
319315
fi
320316
O_DEVICE="eth0"
321317
if grep -q "$O_DEVICE" <<< "$AVAILABLE_INTERFACES"; then
322-
# NEW v.0.5.3 Use ip instead of ifconfig
323-
#MAC_ADDRESS_NUMBER=$(ifconfig $O_DEVICE | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
324318
MAC_ADDRESS_NUMBER=$(ip -o link show $O_DEVICE | cut -d ' ' -f 2,20 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
325319
echo -e "Interface: ${RED}$O_DEVICE${NOCOLOR} - status: ${RED}$MAC_eth0${NOCOLOR} - current MAC: ${RED}$MAC_ADDRESS_NUMBER${NOCOLOR}"
326320
fi
327321
O_DEVICE="eth1"
328322
if grep -q "$O_DEVICE" <<< "$AVAILABLE_INTERFACES"; then
329-
# NEW v.0.5.3 Use ip instead of ifconfig
330-
#MAC_ADDRESS_NUMBER=$(ifconfig $O_DEVICE | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
331323
MAC_ADDRESS_NUMBER=$(ip -o link show $O_DEVICE | cut -d ' ' -f 2,20 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
332324
echo -e "Interface: ${RED}$O_DEVICE${NOCOLOR} - status: ${RED}$MAC_eth1${NOCOLOR} - current MAC: ${RED}$MAC_ADDRESS_NUMBER${NOCOLOR}"
333325
fi
334326
O_DEVICE="usb0"
335327
if grep -q "$O_DEVICE" <<< "$AVAILABLE_INTERFACES"; then
336-
# NEW v.0.5.3 Use ip instead of ifconfig
337-
#MAC_ADDRESS_NUMBER=$(ifconfig $O_DEVICE | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
338328
MAC_ADDRESS_NUMBER=$(ip -o link show $O_DEVICE | cut -d ' ' -f 2,20 | grep -o -E '([[:xdigit:]]{1,2}:){5}[[:xdigit:]]{1,2}')
339329
echo -e "Interface: ${RED}$O_DEVICE${NOCOLOR} - status: ${RED}$MAC_usb0${NOCOLOR} - current MAC: ${RED}$MAC_ADDRESS_NUMBER${NOCOLOR}"
340330
fi

bin/find_domains

-7
Original file line numberDiff line numberDiff line change
@@ -104,26 +104,21 @@ do
104104
# THIS WILL BREAK!! -> (IFS=' ' read -ra IP_ARRAY <<< "$IP_LIST") &>/dev/null
105105
IFS=' ' read -ra IP_ARRAY <<< "$IP_LIST"
106106
for IP in "${IP_ARRAY[@]}"; do
107-
#REMOVE COMMENT IF NOT NEEDED: #if ! grep -q -E "$IP" <<< "$NEW_STRING"; then
108107
if ! grep -q "$IP" <<< "${NEW_STRING[*]}"; then
109-
#REMOVE COMMENT IF NOT NEEDED: NEW_STRING=$(sed "s/[[:space:]]$SUBDOMAIN/[[:space:]]$SUBDOMAIN[[:space:]]$IP/g" <<< "$NEW_STRING");
110108
NEW_STRING=$(sed -E "s/[[:space:]]${SUBDOMAIN}/[[:space:]]${SUBDOMAIN}[[:space:]]$IP/g" <<< "$NEW_STRING");
111109
fi
112110
done
113111
# The domain isn't in "NEW_STRING" yet
114112
else
115113
IFS=' ' read -ra IP_ARRAY <<< "$IP_LIST"
116114
for IP in "${IP_ARRAY[@]}"; do
117-
#REMOVE COMMENT IF NOT NEEDED: #if ! grep -q -E "$IP" <<< "$NEW_STRING"; then
118115
if ! grep -q "$IP" <<< "${NEW_STRING[*]}"; then
119116
NEW_STRING="$NEW_STRING $SUBDOMAIN $IP_LIST\n"
120117
fi
121118
done
122119
fi
123120
done
124121
# Matching routine stop
125-
126-
# NEW v.0.5.3
127122
unset DUMP_ARRAY
128123
readarray -t DUMP_ARRAY< <(printf %s"${NEW_STRING}")
129124
# Display the result
@@ -133,7 +128,6 @@ do
133128
echo -e "${YELLOW}Domain IP${NOCOLOR}"
134129
echo "---------"
135130
SAMMEL_IP=""
136-
# FIX post-v.0.5.3 - changed from i=0 to index=0 because of possible interferences from other functions
137131
index=0
138132
for DUMP_STRING in "${DUMP_ARRAY[@]}"
139133
do
@@ -144,7 +138,6 @@ do
144138
# If we have two lines with the same "SUBDOMAIN", so it's because of that command
145139
# In this case, we have to implement a matching routine, as we did above
146140
if [ ! -z "$SUBDOMAIN" ]; then
147-
# NEW post-v.0.5.3
148141
ping -c 1 -q $SUBDOMAIN >&/dev/null
149142
OCHECK=$?
150143
if [ ! $OCHECK -eq 0 ]; then

bin/hostapd_fallback_komplex_part_1

+2-12
Original file line numberDiff line numberDiff line change
@@ -70,34 +70,28 @@ fi
7070
# pgrep -f "dhclient.$INTERFACE1" will only return true, if the Internet is on INTERFACE1
7171
# no need to change anything if INTERFACE1 was already the AP
7272
#
73-
# NEW v.0.5.0
74-
# New: we have also to take down the Interface with the old AP to avoid that the IP address (192.168.4x.1) is given twice
73+
# We have also to take down the Interface with the old AP to avoid that the IP address (192.168.4x.1) is given twice
7574
# ATTENTION: If this will disconnect the clients or hang TorBox then dhclient has to be removed.
76-
# NEW v.0.5.3:
7775
# ATTENTION: Under Raspberry Pi OS we can grep dhclient, but under Debian that's not possible because dclient is started on
7876
# all interfaces. We have to avoid to take down the interface with the AP!
7977

8078
if pgrep -f "dhclient.$INTERFACE1" ; then
8179
(sudo dhclient -r) 2>&1
82-
# NEW v.0.5.3 We can only do that, if the interface is not used as AP
80+
# We can only do that, if the interface is not used as AP
8381
if ! grep "^interface=$INTERFACE1" ${HOSTAPD} ; then
8482
sudo ifdown $INTERFACE1
8583
INTERFACE1_DOWN=1
8684
fi
8785
if ! grep "^interface=$INTERFACE3" ${HOSTAPD} ; then
88-
# New v.0.5.0 hast to be tested
8986
sudo ifdown $INTERFACE3
9087
INTERFACE3_DOWN=1
9188
fi
92-
###
9389
fi
9490

9591
if pgrep -f "dhclient.$INTERFACE2" ; then
9692
(sudo dhclient -r) 2>&1
9793
sudo ifdown $INTERFACE2
98-
# New v.0.5.0 hast to be tested
9994
sudo ifdown $INTERFACE4
100-
###
10195
INTERFACE2_DOWN=1
10296
fi
10397

@@ -111,17 +105,13 @@ if [ $INTERFACE1_DOWN = 1 ] ; then
111105
fi
112106

113107
if [ $INTERFACE3_DOWN = 1 ] ; then
114-
# New v.0.5.0 hast to be tested
115108
sudo ifup $INTERFACE3
116109
INTERFACE3_DOWN=0
117-
###
118110
fi
119111

120112
if [ $INTERFACE2_DOWN = 1 ] ; then
121113
sudo ifup $INTERFACE2
122-
# New v.0.5.0 hast to be tested
123114
sudo ifup $INTERFACE4
124-
###
125115
INTERFACE2_DOWN=0
126116
fi
127117

bin/hostapd_fallback_komplex_part_2

-7
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,3 @@ fi
106106
# This function has to be used after an ifup command
107107
# Important: the right iptables rules to use Tor have to configured afterward
108108
sudo systemctl restart isc-dhcp-server
109-
110-
# NEW v.0.5.3 - not necessary - all iptables config should only be done in set_interfaces_x
111-
#sudo /sbin/iptables -F
112-
#sudo /sbin/iptables -t nat -F
113-
#sudo /sbin/iptables -P FORWARD DROP
114-
#sudo /sbin/iptables -P INPUT ACCEPT
115-
#sudo /sbin/iptables -P OUTPUT ACCEPT

bin/restore

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ if (whiptail --title "TorBox - INFO (scroll down!)" --scrolltext --yesno "$INPUT
201201

202202
# Please, choose with SPACE which data you want to restore
203203
if [ "$OBFS4RELAY" == "1" ] || [ "$ONIONSERVICES" == "1" ] || [ "$ONIONAUTH" == "1" ] || [ "$SHAREDFOLDERS" == "1" ]; then
204-
WHIPTAIL_LINE="whiptail --nocancel --title \"TorBox v.0.5.3 - RESTORE SELECTION\" --checklist --separate-output \"\nPlease, choose with SPACE which data you want to restore in addition to the TorBox configuration and press ENTER (ESC -> go back).\n\nIMPORTANT: The old configuration will be deleted in ANY CASE!\n\" $MENU_HEIGHT_15 $MENU_WIDTH 4"
204+
WHIPTAIL_LINE="whiptail --nocancel --title \"TorBox v.0.5.4 - RESTORE SELECTION\" --checklist --separate-output \"\nPlease, choose with SPACE which data you want to restore in addition to the TorBox configuration and press ENTER (ESC -> go back).\n\nIMPORTANT: The old configuration will be deleted in ANY CASE!\n\" $MENU_HEIGHT_15 $MENU_WIDTH 4"
205205
i=0
206206
n=0
207207
if [ "$OBFS4RELAY" == "1" ]; then

bin/set_interfaces_2

+1-6
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ captive_tunneling()
9797
if [ $EXITLOOP == 0 ]; then
9898
echo -e "${RED}[+] Restarting the network...${NOCOLOR}"
9999
echo ""
100-
# TEST: that should improve the connectivity with the captive portal
100+
# That should improve the connectivity with the captive portal
101101
sudo ifdown $O_DEVICE
102102
# The next line should help TorBox to forget the old IP
103103
ip addr flush dev $O_DEVICE
@@ -118,11 +118,6 @@ captive_tunneling()
118118
fi
119119
}
120120

121-
# NEW v.0.5.3 - Not necessary
122-
###### WE WILL DEACTIVATE BRIDGE RELAY MODE FIRST ######
123-
#clear
124-
#[ "$ONLY_RESET" != "1" ] && deactivating_bridge_relay
125-
126121
###### ADDITIONAL COMMANDS DEPENDED ON THE INTERFACE CONNECTED TO THE INTERNET ######
127122
while [ $EXITLOOP == 0 ] && [ "$ONLY_RESET" != "1" ]; do
128123
if [ "$O_DEVICE" = "wlan0" ] || [ "$O_DEVICE" = "wlan1" ]; then

bin/start_tcs

-2
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,8 @@ if [ $n -gt 0 ] ; then
8686
else
8787
echo -e "${RED}[+] Removing TCS configuration...${NOCOLOR}"
8888
sudo sed -i "/^TCS-${SERVICE_NAME}/d" "${RUNFILE}"
89-
# NEW - TorBox v.0.5.3
9089
(sudo rm $DB_PATH/$SERVICE_NAME.*) &>/dev/null
9190
(sudo rm /var/run/tcs_$SERVICE_NAME.sock) &>/dev/null
92-
#
9391
echo -e "${RED}[+] Removing Nginx configuration...${NOCOLOR}"
9492
find_virtport "${SERVICE_NAME}"
9593
(sudo rm "${NGINX_DIR}/sites-enabled/${SERVICE_NAME}-${VIRTPORT}-onion-chatsecure.conf") &>/dev/null

etc/dhcp/dhclient.conf

-1
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,4 @@ request subnet-mask, broadcast-address, time-offset, routers,
2323
dhcp6.name-servers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers,
2424
netbios-name-servers, netbios-scope, interface-mtu, ntp-servers;
2525

26-
# New v.0.5.3 timeout 60 -> 30
2726
timeout 30;

etc/hostapd/hostapd.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
interface=wlan0
99
driver=nl80211
10-
ssid=TorBox053
10+
ssid=TorBox054
1111
country_code=US
1212
hw_mode=g
1313
channel=6

0 commit comments

Comments
 (0)