Rabdomància
Descobreix amb els sentits el que fan els teus dispositius!
Una manera bonica i divertida de visualitzar peticions DNS a la teva xarxa
Discover with your senses what your devices are up to!
A pretty and fun way to visualise DNS requests in your network
About the sound concept
Bells indicate regular web and string plucks indicate big tech. Pitch changes according to the frequency of the visits; the more frequent visit, the deeper the note.
You may see announcements for new users as they join, punctuated by a string swell.
If this sounds awfully familiar, it is because we use the exact same algorithm and sounds as Hatnote's Listen to Wikipedia.
Setting things up
This documentation can be improved, relies on a lot of invisible knowledge, and can certainly be more friendly to people who are learning networking.
If that is you, and you are willing to help improve the documentation, please reach out, you may learn a lot (you don't have to be alone!), have a blast, and while at it, the next person who tries to use this will have a much easier time.
You'll need a device which has one upstream WAN interface (where the internet will come from), and at least another local interface.
Ideally one of the local interfaces is wireless in nature, or if it is wired, you set up an access point that does not perform DHCP or masquerading.
The device will act as the Access Point, gateway and DNS resolver, and will have a private subnet that is masqueraded to the WAN port.
All of this is done with standard OS tooling (Debian is used as an example), it's not too difficult if you are familiar with the terms and tools, but might be a bit daunting otherwise:
- We may need to
bridge LAN and Wireless interfaces:
- we use interface
br0
- we use interface
- Configure a DHCP server:
- we use the subnet
10.42.42.1/24onbr0
- we use the subnet
- Configure masquerading on WAN port:
- we call the WAN port
eth0
- we call the WAN port
- Configure the DNS resolver:
- we may use unbound
- any dnstap-enabled resolver will do
If your routing device has graphics and sound cards, you can plug in a screen
and speakers, and run rabdomancia on it.
Otherwise, you'll have to run rabdomancia on a different machine which does
support graphics and sound, and transport in real-time the data from the DNS
resolver.
Running rabdomancia
Getting data from the DNS resolver
The easiest way to do this is to use a network socket(!) on unbound this is done with:
server:
interface: lo
interface: br0
interface-action: br0 allow
interface-action: lo allow
dnstap:
dnstap-enable: yes
# Where 10.42.42.2 is your graphics+sound device
# If the machines are the same, use 10.42.42.1
dnstap-ip: 10.42.42.2@5342
dnstap-tls: no
dnstap-sample-rate: 1
dnstap-log-client-query-messages: yes
Start rabdomancia
See rabdomancia --help for all possible inputs.
By default rabdomancia will listen on port 5342 for DNSTAP connections.
Make sure you limit where this connections come from by using your firewall.
Orígen del projecte
Idea original
Sembla que el projecte original era molt més, però a nosaltres només ens interessava la part de la visualització.
La idea de reutilitzar l'arbre de fitxers que necessita gource és super bona, i la hem volgut portar una mica més enllà.
Anàlisi de viabilitat per nosaltres
D'entrada intentem fer servir Dowse, amb els repositoris i codi originals.
Després d'invertir-hi cert temps sense que funcioni, ens posem en contacte amb la comunitat de Dowse.
Finalment abans no ens contestin aconseguim fer anar Dowse i comencem a iterar, trobant-nos-hi limitacions, punts de millora, i afegint-hi les nostres pròpies idees:
- Documentar tot el procés
- Afegir so
- Actualitzar llistes de dominis d'entitats, sense que hagi de ser un esforç específic d'aquest projecte
- Treballar les llistes, de forma que afegim "pseudo" jerarquies (
BigTechiMidTech) - Usar DNSTAP en comptes d'un resolver amb pedaços
Tot plegat ho documentem en un anàlisi/report que enviem a la comunitat per si ho volen reutilitzar; i mencionant que hi podríem contribuir.
Lis desenvolupadiris ens diuen:
rather than fixing the software for all generic cases, the best route is to try the specific installation and hack a bit on it to smooth the edges
embrace the way of the patch
Així que entenem que si volem mantenir els pedaços, ho fem nosaltres mateixis. Cap problema!
En trobar-nos amb algunes limitacions, i havent reimplementat algunes coses, decidim deixar estar totalment el codi original de Dowse.
El nom: rabdomància
La versió curta és que és una manera d'anomenar "dowse" (anglès) en català.
Per què rabdomància?
f. [LC] Radioestèsia 2 .
1 f. [LC] Pretesa sensibilitat de certes persones a les radiacions emeses o absorbides pels cossos que tenen a prop.
2 f. [LC] Pràctica no científica de detecció de corrents d’aigua, de minerals, d’objectes amagats, etc., basada en la radioestèsia.
intransitive verb : to use a divining rod
transitive verb : to find (something, such as water) by dowsing
Metadata
Release files for rabdomancia 26.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| rabdomancia-26.2.0.tar.gz | 17.2 kB | Without provenance | Details for rabdomancia-26.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rabdomancia-26.2.0-py3-none-any.whl | Python 3 | none | any | Details for rabdomancia-26.2.0-py3-none-any.whl |
Total release size: 29.2 kB
Release files / rabdomancia-26.2.0.tar.gz
| Download URL | rabdomancia-26.2.0.tar.gz |
|---|---|
| Size | 17.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a501daa5e44b91703c01ed1ff2de0eee83458bf8510bca2d22594eaa8435a849
|
|
BLAKE2b-256 checksum How to use checksums |
6d1ea711a24fe0a5c46711117b5555b7040967b9d3bd0c1afc9fc031f77cbec0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
|
Release files / rabdomancia-26.2.0-py3-none-any.whl
| Download URL | rabdomancia-26.2.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b30986d7aaba25bd3353d971e137924c66939cff03d0817ca323c4089d65046a
|
|
BLAKE2b-256 checksum How to use checksums |
1c44f1048ec9ebf514d4fc690edafe7bb5f3c3db52010aa6cf37607c52ee3733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Hatch/1.16.5 cpython/3.13.12 HTTPX/0.28.1
|
Security for rabdomancia 26.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.