| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Gopher Protocol sysadmin dashboard for executing commands and viewing logs/outputs.
Visiting the dashboard using the gopher client or the Gopher Protocol client I made: Waffle.
Here's an example I copied from gopher visiting the gopherhole (using gopher -p "" 10.1.0.1 7000):
### Dashboard Commands ###
Document Approximately Created At: 2023-12-27 08:26:44
--> [3] Regenerate Dashboard/
[4] Service Status <?>
[5] Disk Usage
### debsecan - the Debian Security Analyzer (..bsecan/report.log) ###
[8] View full /var/log/debsecan/report.log
Last Modified: 2023-12-27 04:16:23
> CVEs found: 1301
>
### chkrootkit - locally checks for signs of a rootkit (..it.log) ###
[14] View full /var/log/chkrootkit.log
Last Modified: 2023-12-27 04:29:58
> Searching for suspicious files and dirs... WARNI..
> WARNING: The following suspicious files and directories were foun..
> Searching for Linux.Xor.DDoS... WARNI..
> WARNING: Possible Linux.Xor.DDoS installed:
> Checking `sniffer'...
Here are some things you can do with a JSON config file (see an example in etc/gopherdashboard.json):
If enabled, this software makes it so you can basically execute arbitrary commands on a computer using the Gopher Protocol. The packaged daemon is set up to run as root by default, which is obviously a security risk. I advise that you restrict how it can be accessed.
In the config the important security options are:
sudo ufw allow from 10.1.0.0/24 to any port 7000 proto tcp comment 'gopherdashboard'
Please use gopherdashboard as the user for now. If you select this you may want to symlink and permissions the symlinks to various logs on your system in /var/gopherdashboard...
What about commands?
You should be able to find a .deb package in one of the releases.
sudo apt-get install -y ./gopherdashboard-amd64.deb
Then edit your /etc/gopherdashboard.json and finally:
sudo service gopherdashboard restart
Now you should be able to view the dashboard with a Gopher client like this:
gopher -p "" 10.1.0.1 7000
Sorry this is very sloppy, but I wanted to get it out-the-door. I'll probably clean it up in the future.
I whipped this up quick because I wanted to have a simple way to keep tabs on security reports (and other stuff) on my server, or the like.
Generate the dashboard (in the demo config.jsonI configured a menu command that allows you to regenerate the dashboard through gopher):
nix run .#gopherdashboard -- generate etc/gopherdashboard.testing.json > dashboard
If you really want you can use cabal:
cabal run gopherdashboard-exe -- generate etc/gopherdashboard.testing.json > dashboard
Or you can use the binary:
gopherdashboard generate etc/gopherdashboard.testing.json > dashboard
gopherdashboard serve etc/gopherdashboard.json
I recommend using the daemon I configured (.deb package release).
Try using this:
sudo journalctl -u gopherdashboard.service
Special thanks to spacecookie.
| Back | FazBrowse Home | New Git URL |