-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcustom_essid.sh
48 lines (35 loc) · 2.61 KB
/
custom_essid.sh
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
39
40
41
42
43
44
45
46
47
#!/usr/bin/env bash
#Global shellcheck disabled warnings
#shellcheck disable=SC2034,SC2154
plugin_name="Custom ESSID"
plugin_description="Plugin to specify custom ESSID for hidden networks"
plugin_author="xpz3"
#Enabled 1 / Disabled 0 - Set this plugin as enabled - Default value 1
plugin_enabled=1
plugin_minimum_ag_affected_version="10.0"
plugin_maximum_ag_affected_version=""
plugin_distros_supported=("*")
function custom_essid_prehook_set_hostapd_config() {
debug_print
if [[ "${essid}" == "(Hidden Network)" ]]; then
language_strings "${language}" "custom_essid_text_1" "yellow"
read -p "> " essid
fi
}
function initialize_custom_essid_language_strings() {
debug_print
arr["ENGLISH","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["SPANISH","custom_essid_text_1"]="Una red oculta ha sido seleccionada para el ataque Evil Twin. Por favor especifica el SSID del AP objetivo para continuar"
arr["FRENCH","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["CATALAN","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["PORTUGUESE","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["RUSSIAN","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["GREEK","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["ITALIAN","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["POLISH","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["GERMAN","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["TURKISH","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["ARABIC","custom_essid_text_1"]="A hidden network has been chosen for Evil Twin attack. Please specify the SSID of the target AP to continue"
arr["CHINESE","custom_essid_text_1"]="您选择了一个隐藏的网络发起邪恶双胞胎攻击,请手动指定目标隐藏AP的SSID以继续"
}
initialize_custom_essid_language_strings