114 Commits
Author SHA1 Message Date
TailScan Bot 696a8e1bf9 fix: include ancestor entries in open response to keep tree visible
When navigating into a subfolder elFinder removes tree nodes for any
directory not present in the files array. Include all ancestor path
entries so the sidebar tree stays populated.
2026-04-02 17:13:55 +00:00
TailScan Bot 6d07d8f282 fix: elFinder main pane empty — include options on every open response
- Always include volume options in open response (not just on init)
- Add options to non-root cwd entries so elFinder knows the path context
- Without options on every open, elFinder loses track of which volume
  files belong to and doesn't render them in the main pane
2026-04-02 17:10:06 +00:00
TailScan Bot 1ffab4946a fix: set NTLM globally via ClientConfig to prevent re-auth failures
Per-session auth_protocol doesn't apply when smbclient internally
re-authenticates after session expiry. Setting it on ClientConfig
applies it to all connections including background re-auths.
2026-04-02 16:55:53 +00:00
TailScan Bot 2f94ba6dd9 revert: restore _smb_conn to last known working state
Remove auth_protocol and empty-string guest kwargs that were added
in the last two commits — they broke working connections.
2026-04-02 16:53:53 +00:00
TailScan Bot e15f8f9935 fix: remove require_signing:False, keep NTLM forced
require_signing=False caused ACCESS_DENIED on servers that enforce
signing. Revert that change, keep only the NTLM protocol fix.
2026-04-02 16:53:20 +00:00
TailScan Bot 38dfb88437 fix: force NTLM auth for SMB, disable signing requirement
The default 'negotiate' auth tries Kerberos first which fails with
SpnegoError when there's no credential cache. Force NTLM explicitly.
Also disable require_signing since many consumer NAS devices don't
enforce it (TrueNAS, Synology, etc).
2026-04-02 16:39:25 +00:00
TailScan Bot 48f844f5ea fix: disable elFinder thumbnails to prevent full-size image loads
- Set tmb: False on all file entries so elFinder never requests
  thumbnails (previously it would load the full file to generate them)
- Set loadTmbs: 0 in elFinder config
- Folders with lots of images should now open instantly
2026-04-02 16:37:34 +00:00
TailScan Bot 29f3cd1910 fix: elFinder folder navigation + dark theme inputs
Folder navigation:
- All elFinder connector commands (open, ls, tree, get, file, upload,
  mkdir, rm) now decode the share from the target hash instead of
  relying on the connector URL share param
- This fixes empty folder listings when navigating into subdirectories
  or SMB shares, since the share was being lost after the initial open

Dark theme:
- Complete elFinder jQuery UI dark overrides: all inputs, selects,
  textareas, widget backgrounds, state variants
- Dialog button pane and close button themed
- Rename inline input and toolbar search input now dark
- Focus ring uses accent colour with subtle glow
2026-04-02 16:33:23 +00:00
TailScan Bot fa32909781 refactor: full UI rework with Alpine.js + Shoelace
- Replace all hand-rolled JS state with Alpine.js reactive data
- Replace custom CSS components with Shoelace web components:
  sl-button, sl-input, sl-dialog, sl-spinner, sl-tag, sl-icon-button
- Shoelace themed via CSS custom properties mapping to existing
  --bg/--surface/--accent/--border/--text vars, so both Dark Slate
  and Rose Pine themes work automatically
- Taskbar and task panels fully integrated into Alpine state
- File browser credentials now use sl-dialog with sl-input fields
- Port scan queue, countdown, device table all reactive via Alpine
- Removed all direct DOM manipulation in favor of x-data/x-show/x-for
- Guac and proxy chip handlers bridge into Alpine app via _tsApp ref
- elFinder still jQuery-based internally, launched after Alpine mounts
2026-04-02 16:28:31 +00:00
TailScan Bot f1dab10daf fix: taskbar home tab, web chips, guac direct URL, SMB share listing
- Taskbar: permanent Home tab always visible, clicking it returns to
  main page without closing other tasks
- Taskbar: always visible (no longer hidden/shown), task panels overlay
  only shown when a non-home task is active
- Web/Copyparty chips now open correctly in iframe tasks (removed
  overly restrictive sandbox attribute)
- Guacamole: skip guac-launch redirect, load client URL directly in
  iframe so it goes straight into the session instead of the lobby
- SMB: when share field is blank, enumerate shares via smbclient CLI
  and return them as browseable directories in elFinder
- SMB: elFinder correctly encodes share name into hash when displaying
  share listing, so clicking a share navigates into it
2026-04-02 16:17:22 +00:00
TailScan Bot 331c3e62aa feat: taskbar + SMB path fix
Taskbar:
- Fixed taskbar along the bottom, appears when first task opens
- Each task gets its own tab with icon, label, close button
- Task panels overlay the full viewport (above taskbar)
- Web/proxy chips open in iframe tasks instead of new tabs
- Guacamole sessions open as iframe tasks
- File browser (FTP/SMB) opens elFinder inside a task panel
- Tasks can be switched, minimised (click tab), closed individually
  or all at once
- Taskbar hides itself when all tasks are closed

SMB fix:
- Refactor _smb_unc() helper for correct UNC path construction
- Fix _smb_conn() to not pass username/password kwargs when empty
  (prevents 'invalid logon' errors on guest/anonymous shares)
- More robust stat() handling in smb_list()
2026-04-02 16:10:38 +00:00
TailScan Bot 6788cb2ac2 feat: replace custom file browser with elFinder UI
- Add elFinder 2.1.66 as the file browser frontend (js/css/img/sounds
  served from /static/elfinder/)
- Mount FastAPI StaticFiles at /static
- Add full elFinder connector at /api/elfinder supporting:
  open, ls, tree, get, file (download), upload, mkdir, rm
  for both FTP and SMB backends
- elFinder opens in a fullscreen modal with credential/share prompt
- Custom CSS overrides theme both Dark Slate and Rose Pine themes
  by applying .elf-dark class with CSS var() references
- Remove old hand-rolled fb-modal and all associated JS
2026-04-02 16:03:17 +00:00
TailScan Bot 0ff3d81b5d fix: SMB share enumeration fallback + manual share entry
- Replace non-existent smbclient.listshares() with proper enumeration:
  tries smbclient CLI, then impacket, then falls back gracefully
- When enumeration fails or returns empty, show manual share name input
  instead of a dead end
- fbConnect now goes straight to browsing if share name is already filled
- Always reset SMB session before connecting to avoid stale auth cache
2026-04-02 15:54:08 +00:00
TailScan Bot 90059807e9 feat: FTP/SMB file browser + SFTP in Guacamole
- Built-in FTP browser: list, download, upload, mkdir, delete
- Built-in SMB browser: share listing, browse, download, upload, mkdir, delete
- Orange chips for port 21 (FTP) and 445 (SMB) now clickable, open
  the file browser modal directly in TailScan
- SMB via smbprotocol (pip), FTP via stdlib ftplib
- Guacamole SSH connections now have SFTP enabled (enable-sftp: true)
  so the file transfer drawer works in terminal sessions
- File browser modal: credential fields, breadcrumb nav, upload/download,
  delete, new folder, share picker for SMB
2026-04-02 15:48:53 +00:00
TailScan Bot 8271bfb99f feat: built-in SOCKS5 proxy
Adds a lightweight asyncio SOCKS5 proxy that starts with TailScan.
Supports both authenticated (user/pass) and unauthenticated modes,
IPv4/IPv6/domain targets, and full TCP CONNECT forwarding.

Configure via .env:
  SOCKS5_PORT=1080
  SOCKS5_USER=tailscan
  SOCKS5_PASSWORD=yourpassword  (leave empty for no auth)
2026-04-02 15:34:31 +00:00
TailScan Bot 9a97898fc2 fix: mobile OSK and guac-launch intermediary page
- Add /guac-launch route that pre-sets Guacamole's inputMethod preference
  to 'osk' in localStorage before redirecting to the session, so the
  on-screen keyboard is available on mobile without needing to swipe-open
  the Guacamole menu (which conflicts with browser back gesture)
- Route all guac-connect URLs through /guac-launch
2026-04-02 15:12:01 +00:00
TailScan Bot 063100fc5e fix: use request host for Guacamole client URL
Instead of hardcoding GUAC_BASE in the browser-facing URL, derive the
host from the incoming request headers. This makes the Guacamole link
work correctly whether accessed via localhost, LAN IP, or a domain name.

Internal server-side API calls to Guacamole still use GUAC_BASE.
2026-04-02 07:37:59 +00:00
Pizza 35e3de90b3 fix: install tailscale CLI in container 2026-04-01 23:30:50 -06:00
Pizza cca84fc9c9 fix: correct tailscale socket path to /run/tailscale 2026-04-01 23:28:14 -06:00
Pizza 63581fd486 chore: internal docker network, expose only 6226+6225 2026-04-01 23:04:56 -06:00
Pizza 03b38ed74d chore: internal docker network, expose only 6226+6225 2026-04-01 23:04:54 -06:00
Pizza 31825cc45f chore: change ports to 6226 (TailScan) and 6225 (Guacamole) 2026-04-01 23:04:05 -06:00
Pizza 100aeec1a0 chore: change ports to 6226 (TailScan) and 6225 (Guacamole) 2026-04-01 23:04:03 -06:00
Pizza f9cb58c23b chore: change ports to 6226 (TailScan) and 6225 (Guacamole) 2026-04-01 23:04:02 -06:00
Pizza 6815e7be12 docs: Docker-first setup, add Dockge instructions 2026-04-01 22:58:36 -06:00
Pizza e127b60fef fix: guac-net bridge network for postgres<->guacamole communication 2026-04-01 22:56:48 -06:00
Pizza 2502906610 chore: add Docker Compose setup 2026-04-01 22:53:14 -06:00
Pizza c0eb08ccaf chore: add Docker Compose setup 2026-04-01 22:53:12 -06:00
Pizza 0f0f14a827 chore: add Docker Compose setup 2026-04-01 22:53:11 -06:00
Pizza 0b4128cbbd chore: add Docker Compose setup 2026-04-01 22:53:09 -06:00
Pizza dec8726b3c docs: rewrite README for v0.04 — Guacamole, chip colors, multi-subnet, Rocky setup 2026-04-01 22:50:11 -06:00
Pizza ffe23fb294 deploy: add guacamole/docker-compose.yml 2026-04-01 22:14:55 -06:00
Pizza b1297225c7 v0.04: Guacamole deployed + integrated — green chips open SSH/RDP/VNC sessions 2026-04-01 22:14:30 -06:00
Pizza 49367446e3 v0.04: Guacamole deployed + integrated — green chips open SSH/RDP/VNC sessions 2026-04-01 22:14:28 -06:00
Pizza 32122ab694 v0.03: orange copyparty/file-transfer chips, add ports 3923/30266, fix guac chips tooltip 2026-04-01 22:04:22 -06:00
Pizza e8e5dc98c0 v0.03: orange copyparty/file-transfer chips, add ports 3923/30266, fix guac chips tooltip 2026-04-01 22:04:19 -06:00
Pizza 603f840d65 docs: add Guacamole integration plan 2026-04-01 21:57:55 -06:00
Pizza c96973711e v0.03: themes (Dark Slate + Rosé Pine), Guacamole green chips, click logo to cycle themes 2026-04-01 21:57:54 -06:00
Pizza 0935f63617 v0.03: themes (Dark Slate + Rosé Pine), Guacamole green chips, click logo to cycle themes 2026-04-01 21:57:51 -06:00
Pizza 0992bf6e1d v0.02: proxy overhaul, form intercept, base href removal, window.location patch, version badge 2026-04-01 21:42:37 -06:00
Pizza 3ce02f3d55 v0.02: proxy overhaul, form intercept, base href removal, window.location patch, version badge 2026-04-01 21:42:35 -06:00
Pizza 9941cb8e68 docs: update README with port list; fix proxy query param passthrough; purple cached rows 2026-04-01 21:35:34 -06:00
Pizza 5c3265d83d docs: update README with port list; fix proxy query param passthrough; purple cached rows 2026-04-01 21:35:32 -06:00
Pizza e63bc7b63c docs: update README with port list; fix proxy query param passthrough; purple cached rows 2026-04-01 21:35:30 -06:00
Pizza 633a5d3081 feat: proxy ?t= URL format; device cache by exit node 2026-04-01 21:29:50 -06:00
Pizza 103423ad79 feat: proxy ?t= URL format; device cache by exit node 2026-04-01 21:29:48 -06:00
Pizza e4bb2092f9 fix: port labels always use curated names; proxy handles SPA navigation 2026-04-01 21:20:40 -06:00
Pizza ff0d45956e fix: port labels always use curated names; proxy handles SPA navigation 2026-04-01 21:20:39 -06:00
Pizza b5d00ce19b fix: yield every device in SSE stream (indentation bug) 2026-04-01 21:11:58 -06:00
Pizza 47b6a1a5a1 fix: keep rows visible while port scan pending/running 2026-04-01 21:07:33 -06:00