Skip to content
colorlesspilgrimagePublic

About

Text interface for creating, configuring, and monitoring Wi-Fi hotspots

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

97 Commits

Folders and files

Repository files navigation

hotmon

terminal UI for creating and managing wireless hotspots, monitoring devices on network, and capturing packets.

dependencies

build

  • your C++ compiler of choice
  • CMake
  • pkg-config
  • ncurses
  • yyjson
  • gtest []

per distro packages below.

packages
Arch base-devel cmake pkgconf ncurses yyjson gtest
Debian, Ubuntu g++ cmake pkgconf libncurses-dev libyyjson-dev libgtest-dev
Fedora gcc-c++ cmake pkgconf-pkg-config ncurses-devel yyjson-devel gtest-devel
openSUSE gcc-c++ cmake pkgconf-pkg-config ncurses-devel yyjson-devel gtest

runtime

Arch Debian / Ubuntu Fedora openSUSE
pkexec polkit pkexec polkit pkexec
iw iw iw iw iw
ip iproute2 iproute2 iproute iproute2
NetworkManager networkmanager network-manager NetworkManager NetworkManager
iwd iwd iwd iwd iwd
hostapd hostapd hostapd hostapd hostapd
nftables nftables nftables nftables nftables
dnsmasq dnsmasq dnsmasq dnsmasq dnsmasq

install

Install the AUR package:

yay -S hotmon

Or install a release file:

sudo apt install ./hotmon_<version>-1_amd64.deb

sudo dnf install ./hotmon-<version>-1.<dist>.x86_64.rpm

sudo pacman -U hotmon-<version>-1-x86_64.pkg.tar.zst

Check the checksum file:

sha256sum -c --ignore-missing SHA256SUMS

build a package

The compiler needs GCC 13 or newer. Debian 12 is not supported. Ubuntu 24.04 has no libyyjson-dev package. Use Ubuntu 25.10 or newer.

Make the source tarball first:

scripts/packaging/make-source-tarball.sh 0.1.1 dist

Then run one build script. Use Debian for the deb, Fedora for the rpm, and Arch for the pacman package.

scripts/packaging/build-deb.sh 0.1.1 dist/hotmon-0.1.1.tar.gz dist

scripts/packaging/build-rpm.sh 0.1.1 dist/hotmon-0.1.1.tar.gz dist

scripts/packaging/build-pacman.sh 0.1.1 dist/hotmon-0.1.1.tar.gz dist

build

`cmake -S . -B build -DCMAKE_BUILD_TYPE=Release``
`cmake --build build -j``

to run tests:

`ctest --test-dir build --output-on-failure`

keybinds

key
m traffic
f toggle FakeMii (status view, hotspot running)
s, Esc back to status
w wizard again
c start a capture (asks first)
z stop the capture
k stop the hotspot
q quit

FakeMii

fake Nintendo 3DS connection test server for the hotspot, so a 3DS can use a network with no internet.

  • listens on <hotspot gateway ip>:3000 only.
  • answers only http://conntest.nintendowifi.net/. everything else gets 404.
  • never forwards traffic. it is not a real proxy.
  • press f in the status view while the hotspot runs. press f again to stop it.
  • only for a hotspot with upstream none. with an upstream connection the 3DS reaches the real test server, so f shows a notice instead.
  • stops when the hotspot stops, when the wizard applies again, and when hotmon quits.
  • not saved in the profile.
  • the popup needs a tall terminal. on a short terminal you get a one-line hint.

if you use pretendo network, make sure to load your NNID in ninbus. otherwise, the network test challenge is routed to a pretemdo URL, which FakeMii cannot serve against.

method comes from the OG FakeMii: (https://github.com/Lectem/FakeMii).

backend selection

  1. NetworkManager, then
  2. iwd, then
  3. an existing hostapd config, if /etc/hostapd/hostapd.conf then,
  4. hostapd, dnsmasq, and nftables, if nothing else is managing wireless.

settings

all configs are written in $XDG_CONFIG_HOME/hotmon.

About

Text interface for creating, configuring, and monitoring Wi-Fi hotspots

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages