Repository navigation
Expand file tree
/
Copy pathtool.html
More file actions
266 lines (244 loc) · 11.2 KB
/
Copy pathtool.html
File metadata and controls
266 lines (244 loc) · 11.2 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="theme-color" content="#1d4ed8">
<meta name="description" content="Tool details for the TermuxVoid APT & Pacman Repository - install security tools on Termux.">
<title>Tool Details - TermuxVoid</title>
<link rel="icon" href="https://github.com/termuxvoid/repo/raw/main/img/termuxvoid_logo.png" type="image/png">
<meta property="og:title" content="Tool Details - TermuxVoid">
<meta property="og:description" content="Tool details for the TermuxVoid APT & Pacman Repository - install security tools on Termux.">
<meta property="og:image" content="https://github.com/termuxvoid/repo/raw/main/img/termuxvoid_logo.png">
<meta property="og:type" content="website">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&family=Martian+Mono:wght@400;500;600;700&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<script>
(function () {
try {
var saved = localStorage.getItem('termuxvoid-theme');
var theme = saved === 'dark' || saved === 'light'
? saved
: (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light');
document.documentElement.setAttribute('data-theme', theme);
var meta = document.querySelector('meta[name="theme-color"]');
if (meta) meta.setAttribute('content', theme === 'dark' ? '#070a12' : '#1d4ed8');
} catch (e) {}
})();
</script>
</head>
<body>
<!-- ========== Masthead ========== -->
<header class="masthead">
<div class="masthead__inner">
<a class="masthead__brand" href="index.html">
<span class="mark"><img src="https://github.com/termuxvoid/repo/raw/main/img/termuxvoid_logo.png" alt="TermuxVoid Logo" loading="lazy"></span>
<span class="wordmark">TermuxVoid</span>
</a>
<button class="theme-toggle" type="button" aria-label="Toggle theme"><span class="theme-ico"></span><span class="theme-lbl"></span></button>
<button class="masthead__menu" id="menuBtn" aria-label="Toggle menu" aria-expanded="false">MENU</button>
<nav class="masthead__nav" id="navLinks" aria-label="Primary">
<a href="index.html">Home</a>
<a href="index.html#tools">Tools</a>
<a href="index.html#installation">Installation</a>
<a href="index.html#faq">FAQ</a>
</nav>
</div>
</header>
<!-- ========== Record ========== -->
<main class="detail" id="toolDetail">
<div class="loader">
<div class="loader__spinner"></div>
<span>opening record<span class="loader__cursor"></span></span>
</div>
</main>
<!-- ========== Colophon ========== -->
<footer class="colophon">
<div class="colophon__grid">
<div>
<h3>TermuxVoid</h3>
<p>Security tools excluded from official Termux repos, plus custom builds. Built for security researchers.</p>
</div>
<div>
<h3>Quick Links</h3>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="index.html#tools">Tools</a></li>
<li><a href="index.html#installation">Installation</a></li>
</ul>
</div>
<div>
<h3>Resources</h3>
<ul>
<li><a href="https://github.com/termuxvoid/repo" target="_blank" rel="noopener">GitHub Repo</a></li>
<li><a href="https://github.com/TermuxVoid/repo/blob/main/assets/PACKAGES.md" target="_blank" rel="noopener">Package List</a></li>
</ul>
</div>
</div>
<div class="colophon__credits">
© 2026 TermuxVoid · Maintained by <a href="https://github.com/Anon4You" target="_blank" rel="noopener">Alienkrishn</a>
</div>
</footer>
<!-- ========== Toast ========== -->
<div id="toast" class="toast" role="status" aria-live="polite"></div>
<!-- ========== Scripts ========== -->
<script src="js/packages.js"></script>
<script src="js/theme.js"></script>
<script>
document.addEventListener('DOMContentLoaded', async () => {
const container = document.getElementById('toolDetail');
const params = new URLSearchParams(window.location.search);
const toolName = params.get('name');
if (!toolName) {
container.innerHTML = `
<a class="detail__back" href="index.html">← back to the index</a>
<div class="error-state">
<div class="error-state__icon">!</div>
<p class="error-state__msg">[ERROR] no tool specified. Return to the index and search for a tool.</p>
</div>
`;
return;
}
try {
const packages = await PackagesParser.fetchPackages();
const tool = packages.find(p => p.name === toolName);
if (!tool) {
container.innerHTML = `
<a class="detail__back" href="index.html">← back to the index</a>
<div class="error-state">
<div class="error-state__icon">!</div>
<p class="error-state__msg">[404] tool "<strong>${esc(toolName)}</strong>" not found in repository.</p>
</div>
`;
return;
}
document.title = tool.name + ' - TermuxVoid';
const installCmd = `pkg install ${tool.name}`;
const deps = tool.depends ? tool.depends.split(',').map(d => d.trim()) : [];
const sizeKB = tool.size ? (parseInt(tool.size, 10) / 1024).toFixed(1) : '0';
const SEC_MAP = { net: 'net', network: 'net', networking: 'net', security: 'security', recon: 'recon', web: 'web', devel: 'devel', development: 'devel' };
const skey = SEC_MAP[String(tool.section || '').trim().toLowerCase()] || 'other';
const checksums = [
['SHA256', tool.sha256],
['SHA512', tool.sha512]
].filter(([k, v]) => v);
container.innerHTML = `
<a class="detail__back" href="index.html">← back to the index</a>
<div class="record-sheet" data-sec="${skey}">
<h1>${esc(tool.name)}</h1>
<p class="vline">v${esc(tool.version)} <span class="sec">// ${esc(tool.section)}</span></p>
<div class="meta-grid">
<div class="meta-cell">
<div class="meta-cell__label">Section</div>
<div class="meta-cell__value mono">${esc(tool.section)}</div>
</div>
<div class="meta-cell">
<div class="meta-cell__label">Version</div>
<div class="meta-cell__value mono">${esc(tool.version)}</div>
</div>
<div class="meta-cell">
<div class="meta-cell__label">Architecture</div>
<div class="meta-cell__value mono">${esc(tool.architecture)}</div>
</div>
<div class="meta-cell">
<div class="meta-cell__label">Maintainer</div>
<div class="meta-cell__value">${esc(tool.maintainer)}</div>
</div>
<div class="meta-cell">
<div class="meta-cell__label">Size</div>
<div class="meta-cell__value mono">${sizeKB} KB</div>
</div>
${tool.homepage ? `
<div class="meta-cell">
<div class="meta-cell__label">Homepage</div>
<div class="meta-cell__value"><a href="${esc(tool.homepage)}" target="_blank" rel="noopener">${esc(tool.homepage)}</a></div>
</div>` : ''}
</div>
<div class="form-block">
<h2>Description</h2>
<p>${esc(tool.description)}</p>
</div>
${deps.length ? `
<div class="form-block">
<h2>Depends On</h2>
<div class="ref-row">
${deps.map(d => `<span class="ref-tag">${esc(d)}</span>`).join('')}
</div>
</div>` : ''}
${checksums.length ? `
<div class="form-block">
<h2>Checksum Verification</h2>
<table class="summ-table">
<tbody>
${checksums.map(([k, v]) => `
<tr><td class="k">${k}</td><td class="v">${esc(v)}</td></tr>`).join('')}
</tbody>
</table>
</div>` : ''}
<div class="form-block">
<h2>Install</h2>
<div class="cmdplate">
<div class="cmdplate__label"><span>from the terminal</span><span class="idx">CMD</span><button class="cmdplate__copy" aria-label="Copy install command" data-cmd="${esc(installCmd)}">Copy</button></div>
<pre><code>$ ${esc(installCmd)}</code></pre>
</div>
</div>
<div class="detail__actions">
${tool.homepage ? `
<a class="btn btn--ghost" href="${esc(tool.homepage)}" target="_blank" rel="noopener">homepage ↗</a>` : ''}
<div class="source-group">
<span class="lbl">source:</span>
<a class="btn btn--paper" href="https://github.com/termuxvoid/repo/tree/main/packages/${encodeURIComponent(tool.name)}/DEBIAN" target="_blank" rel="noopener">APT ↗</a>
<a class="btn btn--paper" href="https://github.com/termuxvoid/pacman-repo/tree/main/packages/${encodeURIComponent(tool.name)}" target="_blank" rel="noopener">Pacman ↗</a>
</div>
</div>
</div>
`;
} catch (err) {
container.innerHTML = `
<a class="detail__back" href="index.html">← back to the index</a>
<div class="error-state">
<div class="error-state__icon">!</div>
<p class="error-state__msg">[ERROR] failed to open record: ${esc(err.message)}</p>
<button class="error-state__retry" onclick="location.reload()">retry →</button>
</div>
`;
}
// Menu toggle
const btn = document.getElementById('menuBtn');
const nav = document.getElementById('navLinks');
btn.addEventListener('click', () => {
const open = nav.classList.toggle('open');
btn.setAttribute('aria-expanded', String(open));
});
nav.querySelectorAll('a').forEach(a => a.addEventListener('click', () => {
nav.classList.remove('open');
btn.setAttribute('aria-expanded', 'false');
}));
document.addEventListener('click', (e) => {
if (!e.target.closest('.masthead__inner')) {
nav.classList.remove('open');
btn.setAttribute('aria-expanded', 'false');
}
});
// Copy (command plates + toast)
document.addEventListener('click', (e) => {
const copy = e.target.closest('.cmdplate__copy');
if (!copy) return;
const cmd = copy.dataset.cmd;
navigator.clipboard.writeText(cmd).then(() => {
copy.textContent = 'Copied!';
copy.classList.add('copied');
setTimeout(() => { copy.textContent = 'Copy'; copy.classList.remove('copied'); }, 1500);
});
});
});
function esc(str) {
const div = document.createElement('div');
div.textContent = str;
return div.innerHTML;
}
</script>
</body>
</html>