karnel-termux 4.17.39 → 4.17.41

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.
package/README.md CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://github.com/israelmarques1024-dotcom/karnel-termux">
11
- <img src="https://img.shields.io/badge/version-4.17.36-0078D4?style=for-the-badge" alt="Version">
11
+ <img src="https://img.shields.io/badge/version-4.17.41-0078D4?style=for-the-badge" alt="Version">
12
12
  </a>
13
13
  <a href="https://www.npmjs.com/package/karnel-termux">
14
14
  <img src="https://img.shields.io/npm/v/karnel-termux?style=for-the-badge&logo=npm&color=cb3837" alt="npm">
@@ -78,7 +78,7 @@ Why it's great:
78
78
  ### Via checksummed GitHub release (recommended)
79
79
 
80
80
  ```bash
81
- version=4.17.36
81
+ version=4.17.41
82
82
  tmpdir=$(mktemp -d) && trap 'rm -rf "$tmpdir"' EXIT
83
83
  base="https://github.com/israelmarques1024-dotcom/karnel-termux/releases/download/v$version"
84
84
  curl -fsSL "$base/karnel-termux-install.sh" -o "$tmpdir/karnel-termux-install.sh"
@@ -140,6 +140,11 @@ aliases, or options; use `karnel help` and the CLI reference for the full set.
140
140
  | `karnel uninstall <module>` | Remove installed modules |
141
141
  | `karnel reinstall <module>` | Reinstall modules |
142
142
  | `karnel upgrade` | Upgrade the framework (self-update) |
143
+ | `karnel ia` | Manage AI agent sessions, install tools, show launchers |
144
+ | `karnel search <query>` | Search tools and Brain memories |
145
+ | `karnel status` | System health dashboard (disk, RAM, services, connectivity) |
146
+ | `karnel start editor [port]` | Start code-server (VS Code in browser) |
147
+ | `karnel start robin` | Start Robin OSINT (Tor + web UI) |
143
148
  | `karnel doctor termux` | Diagnose the Termux environment (30+ sections) |
144
149
  | `karnel doctor code` | Detect project ecosystems and run code checks |
145
150
  | `karnel doctor robin` | Diagnose Robin, Tor, dependencies, and local UI |
@@ -147,7 +152,6 @@ aliases, or options; use `karnel help` and the CLI reference for the full set.
147
152
  | `karnel env` | Manage environment variables |
148
153
  | `karnel voice` | Voice commands for AI agents |
149
154
  | `karnel agent` | Local AI assistant — chat (`ask`) and task agent (`run`) |
150
- | `karnel start editor` | Start code-server (VS Code in browser) |
151
155
  | `karnel pg` | PostgreSQL manager |
152
156
  | `karnel init <template>` | Initialize projects with templates |
153
157
  | `karnel deploy` | Run Vercel, Railway, Netlify, or Supabase CLI commands |
@@ -202,9 +206,12 @@ karnel plugin search
202
206
  karnel plugin search backup --compatible
203
207
  karnel plugin install karnel-hello
204
208
  karnel plugin update karnel-hello
209
+ karnel plugin enable karnel-hello
210
+ karnel plugin disable karnel-hello
211
+ karnel plugin config karnel-hello greeting "Hello"
205
212
  karnel plugin list
206
213
  karnel plugin remove karnel-hello
207
- karnel plugin create meu-plugin
214
+ karnel plugin create my-plugin
208
215
  ```
209
216
 
210
217
  Plugins are Bash code loaded by the Karnel process and run with the current
@@ -212,6 +219,10 @@ user's permissions. They are not sandboxed. Registry plugins have reviewed
212
219
  metadata and are staged, validated, and atomically activated, but you should
213
220
  still review code you do not trust.
214
221
 
222
+ Use `karnel plugin disable` to temporarily stop a plugin without removing it,
223
+ and `karnel plugin enable` to reactivate it. Per-plugin configuration is
224
+ supported with `karnel plugin config <name> [key] [value]`.
225
+
215
226
  Each Karnel release pins and verifies one reviewed registry snapshot. New
216
227
  registry entries become available after updating Karnel to a release that
217
228
  includes that snapshot.
@@ -1 +1 @@
1
- 9381d567e1350c2d361ee0259d3d915ba6859a71
1
+ 4277f0390226e9a4b99f13cb14a6938bd071b29e
@@ -6,73 +6,47 @@ 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)..."
9
+ separator; box "Installing Deploy CLIs"; separator; echo
10
+ log_info "Installing deploy tools..."
14
11
  mkdir -p "$(dirname "$LOG_FILE")"
15
12
  local rc=0
16
- _install_deploy_wrapper || rc=$?
13
+ import "@/tools/deploy/all"
14
+ install_all_deploy_tools || rc=$?
17
15
  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
16
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools installed" || log_warn "$rc deploy tool(s) failed to install"
23
17
  return "$rc"
24
18
  }
25
19
 
26
- _install_deploy_wrapper() {
27
- import "@/tools/deploy/all"
28
- install_all_deploy_tools
29
- return $?
30
- }
31
-
32
20
  uninstall_deploy() {
33
- separator
34
- box "Uninstalling Deploy CLIs"
35
- separator
21
+ separator; box "Uninstalling Deploy CLIs"; separator; echo
22
+ log_info "Uninstalling deploy tools..."
36
23
  local rc=0
37
24
  import "@/tools/deploy/all"
38
25
  uninstall_all_deploy_tools || rc=$?
39
26
  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
27
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools uninstalled" || log_warn "$rc deploy tool(s) failed to uninstall"
45
28
  return "$rc"
46
29
  }
47
30
 
48
31
  update_deploy() {
49
- separator
50
- box "Updating Deploy CLIs"
51
- separator
32
+ separator; box "Updating Deploy CLIs"; separator; echo
33
+ log_info "Updating deploy tools..."
52
34
  local rc=0
53
35
  import "@/tools/deploy/all"
54
36
  update_all_deploy_tools || rc=$?
55
37
  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
38
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools updated" || log_warn "$rc deploy tool(s) failed to update"
61
39
  return "$rc"
62
40
  }
63
41
 
64
42
  reinstall_deploy() {
65
- separator
66
- box "Reinstalling Deploy CLIs"
67
- separator
43
+ separator; box "Reinstalling Deploy CLIs"; separator; echo
44
+ log_info "Reinstalling deploy tools..."
45
+ mkdir -p "$(dirname "$LOG_FILE")"
68
46
  local rc=0
69
47
  import "@/tools/deploy/all"
70
48
  reinstall_all_deploy_tools || rc=$?
71
49
  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
50
+ [[ "$rc" -eq 0 ]] && log_success "Deploy tools reinstalled" || log_warn "$rc deploy tool(s) failed to reinstall"
77
51
  return "$rc"
78
52
  }
@@ -6,83 +6,47 @@ 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
11
  mkdir -p "$(dirname "$LOG_FILE")"
17
-
18
12
  local rc=0
19
13
  import "@/tools/games/all"
20
14
  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
15
  separator
27
- echo
16
+ [[ "$rc" -eq 0 ]] && log_success "Games installed" || log_warn "$rc game(s) failed to install"
28
17
  return "$rc"
29
18
  }
30
19
 
31
20
  uninstall_games() {
32
- separator
33
- box "Uninstalling Games"
34
- separator
35
- echo
36
-
21
+ separator; box "Uninstalling Games"; separator; echo
37
22
  log_info "Uninstalling games..."
38
-
39
23
  local rc=0
40
24
  import "@/tools/games/all"
41
25
  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
26
+ separator
27
+ [[ "$rc" -eq 0 ]] && log_success "Games uninstalled" || log_warn "$rc game(s) failed to uninstall"
47
28
  return "$rc"
48
29
  }
49
30
 
50
31
  update_games() {
51
- separator
52
- box "Updating Games"
53
- separator
54
- echo
55
-
32
+ separator; box "Updating Games"; separator; echo
56
33
  log_info "Updating games..."
57
-
58
34
  local rc=0
59
35
  import "@/tools/games/all"
60
36
  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
37
+ separator
38
+ [[ "$rc" -eq 0 ]] && log_success "Games updated" || log_warn "$rc game(s) failed to update"
66
39
  return "$rc"
67
40
  }
68
41
 
69
42
  reinstall_games() {
70
- separator
71
- box "Reinstalling Games"
72
- separator
73
- echo
74
-
43
+ separator; box "Reinstalling Games"; separator; echo
75
44
  log_info "Reinstalling games..."
76
-
45
+ mkdir -p "$(dirname "$LOG_FILE")"
77
46
  local rc=0
78
47
  import "@/tools/games/all"
79
48
  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
49
  separator
86
- echo
50
+ [[ "$rc" -eq 0 ]] && log_success "Games reinstalled" || log_warn "$rc game(s) failed to reinstall"
87
51
  return "$rc"
88
52
  }
@@ -6,83 +6,47 @@ 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
11
  mkdir -p "$(dirname "$LOG_FILE")"
17
-
18
12
  local rc=0
19
13
  import "@/tools/network/all"
20
14
  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
15
  separator
27
- echo
16
+ [[ "$rc" -eq 0 ]] && log_success "Network tools installed" || log_warn "$rc network tool(s) failed to install"
28
17
  return "$rc"
29
18
  }
30
19
 
31
20
  uninstall_network() {
32
- separator
33
- box "Uninstalling Network Tools"
34
- separator
35
- echo
36
-
21
+ separator; box "Uninstalling Network Tools"; separator; echo
37
22
  log_info "Uninstalling network tools..."
38
-
39
23
  local rc=0
40
24
  import "@/tools/network/all"
41
25
  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
26
+ separator
27
+ [[ "$rc" -eq 0 ]] && log_success "Network tools uninstalled" || log_warn "$rc network tool(s) failed to uninstall"
47
28
  return "$rc"
48
29
  }
49
30
 
50
31
  update_network() {
51
- separator
52
- box "Updating Network Tools"
53
- separator
54
- echo
55
-
32
+ separator; box "Updating Network Tools"; separator; echo
56
33
  log_info "Updating network tools..."
57
-
58
34
  local rc=0
59
35
  import "@/tools/network/all"
60
36
  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
37
+ separator
38
+ [[ "$rc" -eq 0 ]] && log_success "Network tools updated" || log_warn "$rc network tool(s) failed to update"
66
39
  return "$rc"
67
40
  }
68
41
 
69
42
  reinstall_network() {
70
- separator
71
- box "Reinstalling Network Tools"
72
- separator
73
- echo
74
-
43
+ separator; box "Reinstalling Network Tools"; separator; echo
75
44
  log_info "Reinstalling network tools..."
76
-
45
+ mkdir -p "$(dirname "$LOG_FILE")"
77
46
  local rc=0
78
47
  import "@/tools/network/all"
79
48
  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
49
  separator
86
- echo
50
+ [[ "$rc" -eq 0 ]] && log_success "Network tools reinstalled" || log_warn "$rc network tool(s) failed to reinstall"
87
51
  return "$rc"
88
52
  }
@@ -6,83 +6,47 @@ 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
11
  mkdir -p "$(dirname "$LOG_FILE")"
17
-
18
12
  local rc=0
19
13
  import "@/tools/utils/all"
20
14
  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
15
  separator
27
- echo
16
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools installed" || log_warn "$rc utility tool(s) failed to install"
28
17
  return "$rc"
29
18
  }
30
19
 
31
20
  uninstall_utils() {
32
- separator
33
- box "Uninstalling Utility Tools"
34
- separator
35
- echo
36
-
21
+ separator; box "Uninstalling Utility Tools"; separator; echo
37
22
  log_info "Uninstalling utility tools..."
38
-
39
23
  local rc=0
40
24
  import "@/tools/utils/all"
41
25
  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
26
+ separator
27
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools uninstalled" || log_warn "$rc utility tool(s) failed to uninstall"
47
28
  return "$rc"
48
29
  }
49
30
 
50
31
  update_utils() {
51
- separator
52
- box "Updating Utility Tools"
53
- separator
54
- echo
55
-
32
+ separator; box "Updating Utility Tools"; separator; echo
56
33
  log_info "Updating utility tools..."
57
-
58
34
  local rc=0
59
35
  import "@/tools/utils/all"
60
36
  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
37
+ separator
38
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools updated" || log_warn "$rc utility tool(s) failed to update"
66
39
  return "$rc"
67
40
  }
68
41
 
69
42
  reinstall_utils() {
70
- separator
71
- box "Reinstalling Utility Tools"
72
- separator
73
- echo
74
-
43
+ separator; box "Reinstalling Utility Tools"; separator; echo
75
44
  log_info "Reinstalling utility tools..."
76
-
45
+ mkdir -p "$(dirname "$LOG_FILE")"
77
46
  local rc=0
78
47
  import "@/tools/utils/all"
79
48
  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
49
  separator
86
- echo
50
+ [[ "$rc" -eq 0 ]] && log_success "Utility tools reinstalled" || log_warn "$rc utility tool(s) failed to reinstall"
87
51
  return "$rc"
88
52
  }
@@ -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.41",
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"