karnel-termux 4.17.39 → 4.17.40

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- 9381d567e1350c2d361ee0259d3d915ba6859a71
1
+ dd742786e4b42ebc678470be889eb813a6a47c71
@@ -6,73 +6,45 @@ import "@/utils/colors"
6
6
  LOG_FILE="$KARNEL_CACHE/install_deploy.log"
7
7
 
8
8
  install_deploy() {
9
- separator
10
- box "Installing Deploy CLIs"
11
- separator
12
-
13
- log_info "Installing deploy tools (Vercel, Railway, Netlify)..."
14
- mkdir -p "$(dirname "$LOG_FILE")"
9
+ separator; box "Installing Deploy CLIs"; separator; echo
10
+ log_info "Installing deploy tools..."
15
11
  local rc=0
16
- _install_deploy_wrapper || rc=$?
12
+ import "@/tools/deploy/all"
13
+ install_all_deploy_tools || rc=$?
17
14
  separator
18
- if [ "$rc" -eq 0 ]; then
19
- log_success "Deploy tools installed"
20
- else
21
- log_warn "$rc deploy tool(s) failed to install"
22
- fi
15
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools installed" || log_warn "$rc deploy tool(s) failed to install"
23
16
  return "$rc"
24
17
  }
25
18
 
26
- _install_deploy_wrapper() {
27
- import "@/tools/deploy/all"
28
- install_all_deploy_tools
29
- return $?
30
- }
31
-
32
19
  uninstall_deploy() {
33
- separator
34
- box "Uninstalling Deploy CLIs"
35
- separator
20
+ separator; box "Uninstalling Deploy CLIs"; separator; echo
21
+ log_info "Uninstalling deploy tools..."
36
22
  local rc=0
37
23
  import "@/tools/deploy/all"
38
24
  uninstall_all_deploy_tools || rc=$?
39
25
  separator
40
- if [ "$rc" -eq 0 ]; then
41
- log_success "Deploy tools uninstalled"
42
- else
43
- log_warn "$rc deploy tool(s) failed to uninstall"
44
- fi
26
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools uninstalled" || log_warn "$rc deploy tool(s) failed to uninstall"
45
27
  return "$rc"
46
28
  }
47
29
 
48
30
  update_deploy() {
49
- separator
50
- box "Updating Deploy CLIs"
51
- separator
31
+ separator; box "Updating Deploy CLIs"; separator; echo
32
+ log_info "Updating deploy tools..."
52
33
  local rc=0
53
34
  import "@/tools/deploy/all"
54
35
  update_all_deploy_tools || rc=$?
55
36
  separator
56
- if [ "$rc" -eq 0 ]; then
57
- log_success "Deploy tools updated"
58
- else
59
- log_warn "$rc deploy tool(s) failed to update"
60
- fi
37
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools updated" || log_warn "$rc deploy tool(s) failed to update"
61
38
  return "$rc"
62
39
  }
63
40
 
64
41
  reinstall_deploy() {
65
- separator
66
- box "Reinstalling Deploy CLIs"
67
- separator
42
+ separator; box "Reinstalling Deploy CLIs"; separator; echo
43
+ log_info "Reinstalling deploy tools..."
68
44
  local rc=0
69
45
  import "@/tools/deploy/all"
70
46
  reinstall_all_deploy_tools || rc=$?
71
47
  separator
72
- if [ "$rc" -eq 0 ]; then
73
- log_success "Deploy tools reinstalled"
74
- else
75
- log_warn "$rc deploy tool(s) failed to reinstall"
76
- fi
48
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools reinstalled" || log_warn "$rc deploy tool(s) failed to reinstall"
77
49
  return "$rc"
78
50
  }
@@ -6,83 +6,45 @@ import "@/utils/colors"
6
6
  LOG_FILE="$KARNEL_CACHE/install_games.log"
7
7
 
8
8
  install_games() {
9
- separator
10
- box "Installing Games"
11
- separator
12
- echo
13
-
9
+ separator; box "Installing Games"; separator; echo
14
10
  log_info "Installing games..."
15
-
16
- mkdir -p "$(dirname "$LOG_FILE")"
17
-
18
11
  local rc=0
19
12
  import "@/tools/games/all"
20
13
  install_all_games || rc=$?
21
- if [ "$rc" -eq 0 ]; then
22
- log_success "Games installed"
23
- else
24
- log_warn "$rc game(s) failed to install"
25
- fi
26
14
  separator
27
- echo
15
+ [[ "$rc" -eq 0 ]] && log_success "Games installed" || log_warn "$rc game(s) failed to install"
28
16
  return "$rc"
29
17
  }
30
18
 
31
19
  uninstall_games() {
32
- separator
33
- box "Uninstalling Games"
34
- separator
35
- echo
36
-
20
+ separator; box "Uninstalling Games"; separator; echo
37
21
  log_info "Uninstalling games..."
38
-
39
22
  local rc=0
40
23
  import "@/tools/games/all"
41
24
  uninstall_all_games || rc=$?
42
- if [ "$rc" -eq 0 ]; then
43
- log_success "Games uninstalled"
44
- else
45
- log_warn "$rc game(s) failed to uninstall"
46
- fi
25
+ separator
26
+ [[ "$rc" -eq 0 ]] && log_success "Games uninstalled" || log_warn "$rc game(s) failed to uninstall"
47
27
  return "$rc"
48
28
  }
49
29
 
50
30
  update_games() {
51
- separator
52
- box "Updating Games"
53
- separator
54
- echo
55
-
31
+ separator; box "Updating Games"; separator; echo
56
32
  log_info "Updating games..."
57
-
58
33
  local rc=0
59
34
  import "@/tools/games/all"
60
35
  update_all_games || rc=$?
61
- if [ "$rc" -eq 0 ]; then
62
- log_success "Games updated"
63
- else
64
- log_warn "$rc game(s) failed to update"
65
- fi
36
+ separator
37
+ [[ "$rc" -eq 0 ]] && log_success "Games updated" || log_warn "$rc game(s) failed to update"
66
38
  return "$rc"
67
39
  }
68
40
 
69
41
  reinstall_games() {
70
- separator
71
- box "Reinstalling Games"
72
- separator
73
- echo
74
-
42
+ separator; box "Reinstalling Games"; separator; echo
75
43
  log_info "Reinstalling games..."
76
-
77
44
  local rc=0
78
45
  import "@/tools/games/all"
79
46
  reinstall_all_games || rc=$?
80
- if [ "$rc" -eq 0 ]; then
81
- log_success "Games reinstalled"
82
- else
83
- log_warn "$rc game(s) failed to reinstall"
84
- fi
85
47
  separator
86
- echo
48
+ [[ "$rc" -eq 0 ]] && log_success "Games reinstalled" || log_warn "$rc game(s) failed to reinstall"
87
49
  return "$rc"
88
50
  }
@@ -6,83 +6,45 @@ import "@/utils/colors"
6
6
  LOG_FILE="$KARNEL_CACHE/install_network.log"
7
7
 
8
8
  install_network() {
9
- separator
10
- box "Installing Network Tools"
11
- separator
12
- echo
13
-
9
+ separator; box "Installing Network Tools"; separator; echo
14
10
  log_info "Installing network tools..."
15
-
16
- mkdir -p "$(dirname "$LOG_FILE")"
17
-
18
11
  local rc=0
19
12
  import "@/tools/network/all"
20
13
  install_all_network || rc=$?
21
- if [ "$rc" -eq 0 ]; then
22
- log_success "Network tools installed"
23
- else
24
- log_warn "$rc network tool(s) failed to install"
25
- fi
26
14
  separator
27
- echo
15
+ [[ "$rc" -eq 0 ]] && log_success "Network tools installed" || log_warn "$rc network tool(s) failed to install"
28
16
  return "$rc"
29
17
  }
30
18
 
31
19
  uninstall_network() {
32
- separator
33
- box "Uninstalling Network Tools"
34
- separator
35
- echo
36
-
20
+ separator; box "Uninstalling Network Tools"; separator; echo
37
21
  log_info "Uninstalling network tools..."
38
-
39
22
  local rc=0
40
23
  import "@/tools/network/all"
41
24
  uninstall_all_network || rc=$?
42
- if [ "$rc" -eq 0 ]; then
43
- log_success "Network tools uninstalled"
44
- else
45
- log_warn "$rc network tool(s) failed to uninstall"
46
- fi
25
+ separator
26
+ [[ "$rc" -eq 0 ]] && log_success "Network tools uninstalled" || log_warn "$rc network tool(s) failed to uninstall"
47
27
  return "$rc"
48
28
  }
49
29
 
50
30
  update_network() {
51
- separator
52
- box "Updating Network Tools"
53
- separator
54
- echo
55
-
31
+ separator; box "Updating Network Tools"; separator; echo
56
32
  log_info "Updating network tools..."
57
-
58
33
  local rc=0
59
34
  import "@/tools/network/all"
60
35
  update_all_network || rc=$?
61
- if [ "$rc" -eq 0 ]; then
62
- log_success "Network tools updated"
63
- else
64
- log_warn "$rc network tool(s) failed to update"
65
- fi
36
+ separator
37
+ [[ "$rc" -eq 0 ]] && log_success "Network tools updated" || log_warn "$rc network tool(s) failed to update"
66
38
  return "$rc"
67
39
  }
68
40
 
69
41
  reinstall_network() {
70
- separator
71
- box "Reinstalling Network Tools"
72
- separator
73
- echo
74
-
42
+ separator; box "Reinstalling Network Tools"; separator; echo
75
43
  log_info "Reinstalling network tools..."
76
-
77
44
  local rc=0
78
45
  import "@/tools/network/all"
79
46
  reinstall_all_network || rc=$?
80
- if [ "$rc" -eq 0 ]; then
81
- log_success "Network tools reinstalled"
82
- else
83
- log_warn "$rc network tool(s) failed to reinstall"
84
- fi
85
47
  separator
86
- echo
48
+ [[ "$rc" -eq 0 ]] && log_success "Network tools reinstalled" || log_warn "$rc network tool(s) failed to reinstall"
87
49
  return "$rc"
88
50
  }
@@ -6,83 +6,45 @@ import "@/utils/colors"
6
6
  LOG_FILE="$KARNEL_CACHE/install_utils.log"
7
7
 
8
8
  install_utils() {
9
- separator
10
- box "Installing Utility Tools"
11
- separator
12
- echo
13
-
9
+ separator; box "Installing Utility Tools"; separator; echo
14
10
  log_info "Installing utility tools..."
15
-
16
- mkdir -p "$(dirname "$LOG_FILE")"
17
-
18
11
  local rc=0
19
12
  import "@/tools/utils/all"
20
13
  install_all_utils || rc=$?
21
- if [ "$rc" -eq 0 ]; then
22
- log_success "Utility tools installed"
23
- else
24
- log_warn "$rc utility tool(s) failed to install"
25
- fi
26
14
  separator
27
- echo
15
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools installed" || log_warn "$rc utility tool(s) failed to install"
28
16
  return "$rc"
29
17
  }
30
18
 
31
19
  uninstall_utils() {
32
- separator
33
- box "Uninstalling Utility Tools"
34
- separator
35
- echo
36
-
20
+ separator; box "Uninstalling Utility Tools"; separator; echo
37
21
  log_info "Uninstalling utility tools..."
38
-
39
22
  local rc=0
40
23
  import "@/tools/utils/all"
41
24
  uninstall_all_utils || rc=$?
42
- if [ "$rc" -eq 0 ]; then
43
- log_success "Utility tools uninstalled"
44
- else
45
- log_warn "$rc utility tool(s) failed to uninstall"
46
- fi
25
+ separator
26
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools uninstalled" || log_warn "$rc utility tool(s) failed to uninstall"
47
27
  return "$rc"
48
28
  }
49
29
 
50
30
  update_utils() {
51
- separator
52
- box "Updating Utility Tools"
53
- separator
54
- echo
55
-
31
+ separator; box "Updating Utility Tools"; separator; echo
56
32
  log_info "Updating utility tools..."
57
-
58
33
  local rc=0
59
34
  import "@/tools/utils/all"
60
35
  update_all_utils || rc=$?
61
- if [ "$rc" -eq 0 ]; then
62
- log_success "Utility tools updated"
63
- else
64
- log_warn "$rc utility tool(s) failed to update"
65
- fi
36
+ separator
37
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools updated" || log_warn "$rc utility tool(s) failed to update"
66
38
  return "$rc"
67
39
  }
68
40
 
69
41
  reinstall_utils() {
70
- separator
71
- box "Reinstalling Utility Tools"
72
- separator
73
- echo
74
-
42
+ separator; box "Reinstalling Utility Tools"; separator; echo
75
43
  log_info "Reinstalling utility tools..."
76
-
77
44
  local rc=0
78
45
  import "@/tools/utils/all"
79
46
  reinstall_all_utils || rc=$?
80
- if [ "$rc" -eq 0 ]; then
81
- log_success "Utility tools reinstalled"
82
- else
83
- log_warn "$rc utility tool(s) failed to reinstall"
84
- fi
85
47
  separator
86
- echo
48
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools reinstalled" || log_warn "$rc utility tool(s) failed to reinstall"
87
49
  return "$rc"
88
50
  }
@@ -3,42 +3,20 @@
3
3
  _TOOL="aircrack-ng"
4
4
  _PKG="aircrack-ng"
5
5
 
6
- install_aircrack_ng() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
6
+ install_aircrack-ng() {
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
- uninstall_aircrack_ng() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
28
- }
29
-
30
- update_aircrack_ng() {
31
- log_info "Atualizando aircrack-ng..."
32
- if pkg install -y aircrack-ng 2>/dev/null || apt install -y aircrack-ng 2>/dev/null; then
33
- log_success "aircrack-ng atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar aircrack-ng"
37
- return 1
12
+ uninstall_aircrack-ng() {
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
38
16
  }
39
-
40
- reinstall_aircrack_ng() {
41
- uninstall_aircrack_ng || [[ $? -eq 2 ]] || return 1
42
-
43
- install_aircrack_ng
17
+ update_aircrack-ng() {
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_aircrack-ng() { uninstall_aircrack-ng || [[ $? -eq 2 ]] || return 1; install_aircrack-ng; }
@@ -4,41 +4,19 @@ _TOOL="binwalk"
4
4
  _PKG="binwalk"
5
5
 
6
6
  install_binwalk() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_binwalk() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_binwalk() {
31
- log_info "Atualizando binwalk..."
32
- if pkg install -y binwalk 2>/dev/null || apt install -y binwalk 2>/dev/null; then
33
- log_success "binwalk atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar binwalk"
37
- return 1
38
- }
39
-
40
- reinstall_binwalk() {
41
- uninstall_binwalk || [[ $? -eq 2 ]] || return 1
42
-
43
- install_binwalk
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_binwalk() { uninstall_binwalk || [[ $? -eq 2 ]] || return 1; install_binwalk; }
@@ -4,41 +4,19 @@ _TOOL="dirb"
4
4
  _PKG="dirb"
5
5
 
6
6
  install_dirb() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_dirb() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_dirb() {
31
- log_info "Atualizando dirb..."
32
- if pkg install -y dirb 2>/dev/null || apt install -y dirb 2>/dev/null; then
33
- log_success "dirb atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar dirb"
37
- return 1
38
- }
39
-
40
- reinstall_dirb() {
41
- uninstall_dirb || [[ $? -eq 2 ]] || return 1
42
-
43
- install_dirb
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_dirb() { uninstall_dirb || [[ $? -eq 2 ]] || return 1; install_dirb; }
@@ -4,41 +4,19 @@ _TOOL="exiftool"
4
4
  _PKG="exiftool"
5
5
 
6
6
  install_exiftool() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_exiftool() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_exiftool() {
31
- log_info "Atualizando exiftool..."
32
- if pkg install -y exiftool 2>/dev/null || apt install -y exiftool 2>/dev/null; then
33
- log_success "exiftool atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar exiftool"
37
- return 1
38
- }
39
-
40
- reinstall_exiftool() {
41
- uninstall_exiftool || [[ $? -eq 2 ]] || return 1
42
-
43
- install_exiftool
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_exiftool() { uninstall_exiftool || [[ $? -eq 2 ]] || return 1; install_exiftool; }
@@ -4,41 +4,19 @@ _TOOL="foremost"
4
4
  _PKG="foremost"
5
5
 
6
6
  install_foremost() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_foremost() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_foremost() {
31
- log_info "Atualizando foremost..."
32
- if pkg install -y foremost 2>/dev/null || apt install -y foremost 2>/dev/null; then
33
- log_success "foremost atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar foremost"
37
- return 1
38
- }
39
-
40
- reinstall_foremost() {
41
- uninstall_foremost || [[ $? -eq 2 ]] || return 1
42
-
43
- install_foremost
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_foremost() { uninstall_foremost || [[ $? -eq 2 ]] || return 1; install_foremost; }
@@ -4,41 +4,19 @@ _TOOL="hashcat"
4
4
  _PKG="hashcat"
5
5
 
6
6
  install_hashcat() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_hashcat() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_hashcat() {
31
- log_info "Atualizando hashcat..."
32
- if pkg install -y hashcat 2>/dev/null || apt install -y hashcat 2>/dev/null; then
33
- log_success "hashcat atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar hashcat"
37
- return 1
38
- }
39
-
40
- reinstall_hashcat() {
41
- uninstall_hashcat || [[ $? -eq 2 ]] || return 1
42
-
43
- install_hashcat
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_hashcat() { uninstall_hashcat || [[ $? -eq 2 ]] || return 1; install_hashcat; }
@@ -4,41 +4,19 @@ _TOOL="hydra"
4
4
  _PKG="thc-hydra"
5
5
 
6
6
  install_hydra() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_hydra() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_hydra() {
31
- log_info "Atualizando hydra..."
32
- if pkg install -y thc-hydra 2>/dev/null || apt install -y thc-hydra 2>/dev/null; then
33
- log_success "hydra atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar hydra"
37
- return 1
38
- }
39
-
40
- reinstall_hydra() {
41
- uninstall_hydra || [[ $? -eq 2 ]] || return 1
42
-
43
- install_hydra
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_hydra() { uninstall_hydra || [[ $? -eq 2 ]] || return 1; install_hydra; }
@@ -4,41 +4,19 @@ _TOOL="john"
4
4
  _PKG="john"
5
5
 
6
6
  install_john() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_john() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_john() {
31
- log_info "Atualizando john..."
32
- if pkg install -y john 2>/dev/null || apt install -y john 2>/dev/null; then
33
- log_success "john atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar john"
37
- return 1
38
- }
39
-
40
- reinstall_john() {
41
- uninstall_john || [[ $? -eq 2 ]] || return 1
42
-
43
- install_john
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_john() { uninstall_john || [[ $? -eq 2 ]] || return 1; install_john; }
@@ -3,42 +3,20 @@
3
3
  _TOOL="nc"
4
4
  _PKG="netcat-openbsd"
5
5
 
6
- install_netcat() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando netcat..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "netcat instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar netcat"
17
- return 1
6
+ install_nc() {
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
- uninstall_netcat() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
28
- }
29
-
30
- update_netcat() {
31
- log_info "Atualizando netcat..."
32
- if pkg install -y netcat-openbsd 2>/dev/null || apt install -y netcat-openbsd 2>/dev/null; then
33
- log_success "netcat atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar netcat"
37
- return 1
12
+ uninstall_nc() {
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
38
16
  }
39
-
40
- reinstall_netcat() {
41
- uninstall_netcat || [[ $? -eq 2 ]] || return 1
42
-
43
- install_netcat
17
+ update_nc() {
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_nc() { uninstall_nc || [[ $? -eq 2 ]] || return 1; install_nc; }
@@ -4,41 +4,19 @@ _TOOL="nmap"
4
4
  _PKG="nmap"
5
5
 
6
6
  install_nmap() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_nmap() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_nmap() {
31
- log_info "Atualizando nmap..."
32
- if pkg install -y nmap 2>/dev/null || apt install -y nmap 2>/dev/null; then
33
- log_success "nmap atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar nmap"
37
- return 1
38
- }
39
-
40
- reinstall_nmap() {
41
- uninstall_nmap || [[ $? -eq 2 ]] || return 1
42
-
43
- install_nmap
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_nmap() { uninstall_nmap || [[ $? -eq 2 ]] || return 1; install_nmap; }
@@ -4,41 +4,19 @@ _TOOL="smbclient"
4
4
  _PKG="smbclient"
5
5
 
6
6
  install_smbclient() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_smbclient() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_smbclient() {
31
- log_info "Atualizando smbclient..."
32
- if pkg install -y smbclient 2>/dev/null || apt install -y smbclient 2>/dev/null; then
33
- log_success "smbclient atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar smbclient"
37
- return 1
38
- }
39
-
40
- reinstall_smbclient() {
41
- uninstall_smbclient || [[ $? -eq 2 ]] || return 1
42
-
43
- install_smbclient
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_smbclient() { uninstall_smbclient || [[ $? -eq 2 ]] || return 1; install_smbclient; }
@@ -4,41 +4,19 @@ _TOOL="steghide"
4
4
  _PKG="steghide"
5
5
 
6
6
  install_steghide() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_steghide() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_steghide() {
31
- log_info "Atualizando steghide..."
32
- if pkg install -y steghide 2>/dev/null || apt install -y steghide 2>/dev/null; then
33
- log_success "steghide atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar steghide"
37
- return 1
38
- }
39
-
40
- reinstall_steghide() {
41
- uninstall_steghide || [[ $? -eq 2 ]] || return 1
42
-
43
- install_steghide
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_steghide() { uninstall_steghide || [[ $? -eq 2 ]] || return 1; install_steghide; }
@@ -4,41 +4,19 @@ _TOOL="tcpdump"
4
4
  _PKG="tcpdump"
5
5
 
6
6
  install_tcpdump() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_tcpdump() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_tcpdump() {
31
- log_info "Atualizando tcpdump..."
32
- if pkg install -y tcpdump 2>/dev/null || apt install -y tcpdump 2>/dev/null; then
33
- log_success "tcpdump atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar tcpdump"
37
- return 1
38
- }
39
-
40
- reinstall_tcpdump() {
41
- uninstall_tcpdump || [[ $? -eq 2 ]] || return 1
42
-
43
- install_tcpdump
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_tcpdump() { uninstall_tcpdump || [[ $? -eq 2 ]] || return 1; install_tcpdump; }
@@ -4,41 +4,19 @@ _TOOL="whois"
4
4
  _PKG="whois"
5
5
 
6
6
  install_whois() {
7
- if command -v "$_TOOL" &>/dev/null; then
8
- log_info "$_TOOL já está instalado"
9
- return 2
10
- fi
11
- log_info "Instalando $_TOOL..."
12
- if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then
13
- log_success "$_TOOL instalado"
14
- return 0
15
- fi
16
- log_error "Falha ao instalar $_TOOL"
17
- return 1
7
+ if command -v "$_TOOL" &>/dev/null; then log_info "$_TOOL is already installed"; return 2; fi
8
+ log_info "Installing $_TOOL..."
9
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL installed"; return 0; fi
10
+ log_error "Failed to install $_TOOL"; return 1
18
11
  }
19
-
20
12
  uninstall_whois() {
21
- log_info "Removendo $_TOOL..."
22
- if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then
23
- log_success "$_TOOL removido"
24
- return 0
25
- fi
26
- log_error "Falha ao remover $_TOOL"
27
- return 1
13
+ log_info "Removing $_TOOL..."
14
+ if pkg uninstall -y "$_PKG" 2>/dev/null || apt remove -y "$_PKG" 2>/dev/null; then log_success "$_TOOL removed"; return 0; fi
15
+ log_error "Failed to remove $_TOOL"; return 1
28
16
  }
29
-
30
17
  update_whois() {
31
- log_info "Atualizando whois..."
32
- if pkg install -y whois 2>/dev/null || apt install -y whois 2>/dev/null; then
33
- log_success "whois atualizado"
34
- return 0
35
- fi
36
- log_error "Falha ao atualizar whois"
37
- return 1
38
- }
39
-
40
- reinstall_whois() {
41
- uninstall_whois || [[ $? -eq 2 ]] || return 1
42
-
43
- install_whois
18
+ log_info "Updating $_TOOL..."
19
+ if pkg install -y "$_PKG" 2>/dev/null || apt install -y "$_PKG" 2>/dev/null; then log_success "$_TOOL updated"; return 0; fi
20
+ log_error "Failed to update $_TOOL"; return 1
44
21
  }
22
+ reinstall_whois() { uninstall_whois || [[ $? -eq 2 ]] || return 1; install_whois; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "karnel-termux",
3
- "version": "4.17.39",
3
+ "version": "4.17.40",
4
4
  "description": "Modular Dev Environment for Termux — install languages, databases, AI agents, editors, and more with one command",
5
5
  "bin": {
6
6
  "karnel": "karnel/bin/karnel"