Keep your target in sight.
LaserSight is a lightweight Xfce panel tool for Kali Linux and other Xfce-based systems. It pins your current target directly to the taskbar so you never have to dig through notes, terminal history, or browser tabs just to remember an IP address or hostname.
Built for CTFs, HackTheBox, TryHackMe, internal assessments, and any security workflow where context-switching kills momentum.
| Feature | Detail |
|---|---|
| Persistent target display | Your target stays visible in the panel across reboots |
| One-click copy | Click the panel text to copy the value to clipboard |
| One-click edit | Click the icon to update the target via a dialog |
| Auto panel setup | Installer wires itself into the Xfce panel automatically |
| Dependency management | Required packages installed automatically on apt-based systems |
| Safe reinstall | Re-running the installer preserves your existing target |
git clone https://github.com/Sec-Dan/lasersight.git
cd lasersight
chmod +x install.sh
chmod +x bin/*.sh
./install.shThe installer handles everything: dependencies, file placement, and panel configuration. Run it from inside an active Xfce desktop session to get the full auto-setup.
Panel bar
+--------------------------------+
| [icon] Target: 10.10.11.25 |
+--------------------------------+
^ ^
| |
Click to Click to
edit target copy to clipboard
The panel item runs a Generic Monitor script every second that outputs the current target value. Clicking the icon opens a Zenity dialog to update it. Clicking the text copies it to the clipboard.
The installer runs the following steps:
- Install dependencies -- skips packages already present
- Copy files to
~/.local/share/lasersight - Create config at
~/.config/lasersight/target.txt - Detect the active Xfce panel
- Add a Generic Monitor plugin (or reuse an existing one)
- Configure the plugin with the correct command path
- Restart the panel and verify the setup
If the installer is run outside of an active Xfce session (e.g., over SSH), it installs the files and skips the panel step. Re-run from within Xfce to complete panel setup.
Installed automatically on apt-based systems:
xfce4-genmon-plugin
xclip
libnotify-bin
zenity
xfconfClick the crosshair icon in the panel. A dialog will appear where you can type any value:
10.10.11.25
dc01.roomname.htb
administrator@domain.local
192.168.1.0/24
Click the target text in the panel. The value is copied to the clipboard and a notification confirms it.
echo "10.10.11.25" > ~/.config/lasersight/target.txtThe panel updates automatically within 1 second.
lasersight/
+-- install.sh Entry point
+-- VERSION
+-- LICENSE
+-- README.md
+-- assets/
| +-- lasersight.svg Panel icon
+-- bin/
| +-- lasersight-common.sh Shared functions
| +-- lasersight-copy.sh Clipboard handler
| +-- lasersight-doctor.sh Diagnostics
| +-- lasersight-edit.sh Edit dialog
| +-- lasersight-genmon.sh Panel output script
| +-- lasersight-install.sh Full installer
| +-- lasersight-uninstall.sh Uninstaller
+-- config/
+-- target.txt.example Default target placeholder
Install locations:
| Path | Purpose |
|---|---|
~/.local/share/lasersight |
Application files |
~/.config/lasersight/target.txt |
Active target value |
~/.local/share/lasersight/bin/lasersight-doctor.shThis checks that the install path exists, the script is executable, and shows all configured genmon commands in the panel.
~/.local/share/lasersight/bin/lasersight-install.shSafe to run multiple times. Existing target value is preserved.
xfce4-panel -rIf you cloned the repo to a different location and reinstalled, the old path may still be in the panel config. Run the installer again to update it automatically, or set the command path directly:
xfconf-query -c xfce4-panel -p /plugins/plugin-N/command \
-s ~/.local/share/lasersight/bin/lasersight-genmon.sh
xfce4-panel -rReplace N with the correct plugin ID (shown in doctor output).
~/.local/share/lasersight/bin/lasersight-uninstall.shThen right-click the panel and remove the Generic Monitor item.
- v0.1 -- basic genmon display
- v0.1.2 -- one-command install with auto panel setup
- v0.2 -- cleaner uninstall with automatic panel item removal
- v0.3 -- multiple fields (Target, VPN IP, Hostname)
- v0.4 --
.debpackage - v1.0 -- stable release
MIT. See LICENSE.