multimon-ng
Overview
섹션 제목: “Overview”multimon-ng is a digital radio transmission decoder for various digital radio protocols including POCSAG (Paging), FLEX (Flexible), EAS (Emergency Alert System), SSTV (Slow Scan Television), and many others. It’s essential for RF security professionals analyzing pager traffic, emergency systems, and digital radio communications. The tool decodes FM-modulated digital signals captured from software-defined radios (SDRs) or audio files.
Installation
섹션 제목: “Installation”Prerequisites
섹션 제목: “Prerequisites”# Install dependencies
sudo apt-get update
sudo apt-get install build-essential git libsndfile1-dev sox
# Optional: For radio capture
sudo apt-get install rtl-sdr librtlsdr-dev
From Source
섹션 제목: “From Source”# Clone repository
git clone https://github.com/EliasOenal/multimon-ng.git
cd multimon-ng
# Compile
mkdir build
cd build
cmake ..
make
# Install
sudo make install
# Verify installation
multimon-ng --version
Pre-compiled Binary
섹션 제목: “Pre-compiled Binary”# Download binary
wget https://github.com/EliasOenal/multimon-ng/releases/download/v1.1.8/multimon-ng
# Make executable
chmod +x multimon-ng
sudo mv multimon-ng /usr/local/bin/
Docker Installation
섹션 제목: “Docker Installation”# Build Docker image
docker build -t multimon-ng .
# Run in container
docker run -it multimon-ng multimon-ng --help
Basic Usage
섹션 제목: “Basic Usage”Command Structure
섹션 제목: “Command Structure”multimon-ng [OPTIONS] [INPUT_FILE]
Supported Formats
섹션 제목: “Supported Formats”| Option | Description |
|---|---|
-t raw | Raw audio (default) |
-t wav | WAV audio file |
-t au | AU audio file |
-t mp3 | MP3 audio file |
-A | AFSK 1200 / Bell 202 |
-a | AFSK 2400 / Bell 202 |
-P | POCSAG (paging) |
-F | FLEX (paging) |
-E | EAS (Emergency Alert) |
-S | SSTV (Slow Scan TV) |
-C | CVSD modem |
Basic Decoding
섹션 제목: “Basic Decoding”# Decode WAV file
multimon-ng -t wav -P input.wav
# Decode multiple formats simultaneously
multimon-ng -t wav -P -F -E input.wav
# Real-time decoding from stdin
sox input.wav -r 22050 -t raw -e signed-integer -b 16 - | multimon-ng -t raw -P
# Decode and save output
multimon-ng -t wav -P -A input.wav > decoded.txt
# Verbose output
multimon-ng -t wav -P -v input.wav
POCSAG Paging Decoder
섹션 제목: “POCSAG Paging Decoder”Overview
섹션 제목: “Overview”POCSAG (Post Office Code Standardization Advisory Group) is a radio paging protocol widely used for pagers and emergency alerts.
POCSAG Decoding
섹션 제목: “POCSAG Decoding”# Basic POCSAG decoding
multimon-ng -t wav -P pager.wav
# Decode with signal quality
multimon-ng -t wav -P -v pager.wav
# Real-time POCSAG from RTL-SDR
rtl_fm -f 152.2425M -s 22050 - | multimon-ng -t raw -P
# Capture and decode
rtl_fm -f 152.2425M -s 22050 paging.raw
multimon-ng -t raw -P paging.raw
POCSAG Output Format
섹션 제목: “POCSAG Output Format”POCSAG Address: 123456 Function: 1 (Numeric)
[Time] RIC: 123456, MSG: 1234567890
# RIC = Receiver Identification Code
# Function codes:
# 0 = Numeric
# 1 = Tone only
# 2 = Numeric
# 3 = Alphanumeric
Frequency Common in US
섹션 제목: “Frequency Common in US”| Service | Frequency | Bandwidth |
|---|---|---|
| Public Safety | 152.8225 MHz | 12.5 kHz |
| Commercial | 454.000-454.625 MHz | 12.5 kHz |
| EMS Paging | 157.4500 MHz | 12.5 kHz |
| Private Paging | 162.550 MHz | 12.5 kHz |
FLEX Paging Decoder
섹션 제목: “FLEX Paging Decoder”FLEX Protocol
섹션 제목: “FLEX Protocol”FLEX is a high-capacity paging protocol supporting multiple data rates and message types.
FLEX Decoding
섹션 제목: “FLEX Decoding”# Basic FLEX decoding
multimon-ng -t wav -F flex_traffic.wav
# Verbose FLEX output
multimon-ng -t wav -F -v flex_traffic.wav
# Real-time FLEX from SDR
rtl_fm -f 929.0425M -s 22050 - | multimon-ng -t raw -F
# FLEX with all decoders
multimon-ng -t wav -F -P -E audio.wav
FLEX Output Format
섹션 제목: “FLEX Output Format”FLEX Frame:
Mode: 1 (1600 bps)
Time: [timestamp]
RIC: 123456
Type: Numeric
Message: 1234567890
FLEX Frequencies (US)
섹션 제목: “FLEX Frequencies (US)”| Band | Frequency Range | Notes |
|---|---|---|
| 929 MHz | 929.0125-929.6875 MHz | Most common paging |
| 931 MHz | 931.0125-931.6875 MHz | Regional paging |
| 934-936 MHz | 934.000-936.000 MHz | WACS band (deprecated) |
EAS (Emergency Alert System) Decoder
섹션 제목: “EAS (Emergency Alert System) Decoder”EAS Protocol
섹션 제목: “EAS Protocol”The Emergency Alert System uses specific tones and protocols for emergency broadcasts.
EAS Decoding
섹션 제목: “EAS Decoding”# Decode EAS signals
multimon-ng -t wav -E eas_alert.wav
# EAS with verbose output
multimon-ng -t wav -E -v eas_alert.wav
# Monitor FM radio for EAS
rtl_fm -f 101.5M -s 22050 - | multimon-ng -t raw -E
# Real-time EAS monitoring
sox -d -r 22050 -t raw -e signed-integer -b 16 - | multimon-ng -t raw -E
EAS Tone Patterns
섹션 제목: “EAS Tone Patterns”Header Tone: 1000 Hz, 1 second
Data Transmission: 520/1850 Hz, 40-50 ms per bit
End of Message: 1000 Hz, 300 ms
Common EAS Codes
섹션 제목: “Common EAS Codes”| Code | Meaning |
|---|---|
| RWT | Required Weekly Test |
| EAN | Emergency Alert Now |
| CEM | Civil Emergency Message |
| PEP | Primary Entry Point |
SSTV (Slow Scan Television)
섹션 제목: “SSTV (Slow Scan Television)”SSTV Basics
섹션 제목: “SSTV Basics”SSTV transmits images slowly over radio frequencies, allowing reception with basic radio equipment.
SSTV Decoding
섹션 제목: “SSTV Decoding”# Decode SSTV transmission
multimon-ng -t wav -S sstv_signal.wav
# SSTV with verbose output
multimon-ng -t wav -S -v sstv_signal.wav
# Real-time SSTV from audio
sox -d -r 22050 -t raw -e signed-integer -b 16 - | multimon-ng -t raw -S
# Save SSTV output
multimon-ng -t wav -S sstv.wav > sstv_image.raw
SSTV Modes
섹션 제목: “SSTV Modes”| Mode | Lines | Duration | Protocol |
|---|---|---|---|
| Scottie 1 | 256 | 110 sec | 7-bit |
| Scottie 2 | 256 | 111 sec | 7-bit |
| Martin 1 | 256 | 114 sec | 7-bit |
| Martin 2 | 256 | 58 sec | 7-bit |
Advanced Usage
섹션 제목: “Advanced Usage”Multiple Decoder Simultaneous
섹션 제목: “Multiple Decoder Simultaneous”# Decode all formats
multimon-ng -t wav -P -F -E -S -A audio.wav
# Specific combination
multimon-ng -t wav -P -F -E -v audio.wav
# Output to multiple files
multimon-ng -t wav -P audio.wav > pocsag.txt 2>&1
multimon-ng -t wav -F audio.wav > flex.txt 2>&1
Audio Processing
섹션 제목: “Audio Processing”# Convert MP3 to WAV
ffmpeg -i audio.mp3 -acodec pcm_s16le -ar 22050 output.wav
# Resample audio
sox input.wav -r 22050 resampled.wav
# Apply noise reduction
sox input.wav -t raw -r 22050 -b 16 - noisered | multimon-ng -t raw -P
# Split stereo to mono
sox stereo.wav mono.wav remix 1
# Enhance signal
sox input.wav enhanced.wav noisered norm gain -l
Software-Defined Radio Integration
섹션 제목: “Software-Defined Radio Integration”# RTL-SDR with multimon-ng
rtl_fm -f 152.2425M -s 22050 -p 0 - | multimon-ng -t raw -P
# Tune and record
rtl_fm -f 929.0425M -s 22050 > paging.raw
multimon-ng -t raw -P paging.raw
# Real-time with gain adjustment
rtl_fm -f 152.2425M -s 22050 -g 40 - | multimon-ng -t raw -P -v
# Multiple frequencies (sequential)
for freq in 152.2425M 152.4425M 154.2800M; do
echo "Monitoring $freq"
rtl_fm -f $freq -s 22050 - | multimon-ng -t raw -P
done
Hackrf Integration
섹션 제목: “Hackrf Integration”# Capture with HackRF
hackrf_transfer -r paging.bin -f 929000000 -s 5000000 -n 20000000
# Decode HackRF capture (needs conversion)
sox -r 5000000 -b 16 -c 1 -e signed-integer paging.bin \
-r 22050 -t wav output.wav
multimon-ng -t wav -P output.wav
Output and Filtering
섹션 제목: “Output and Filtering”Output Redirection
섹션 제목: “Output Redirection”# Save to file
multimon-ng -t wav -P input.wav > output.txt
# Append to log
multimon-ng -t wav -P input.wav >> paging.log
# JSON output (if supported)
multimon-ng -t wav -P --json input.wav > data.json
# CSV-like format
multimon-ng -t wav -P -v input.wav | grep "POCSAG" > pocsag.csv
Post-Processing
섹션 제목: “Post-Processing”# Filter POCSAG by RIC
multimon-ng -t wav -P input.wav | grep "123456"
# Extract messages only
multimon-ng -t wav -P -v input.wav | grep "MSG:" | cut -d: -f2
# Count occurrences
multimon-ng -t wav -P input.wav | wc -l
# Find specific addresses
multimon-ng -t wav -P input.wav | grep "Address: 999999"
Bash Scripting
섹션 제목: “Bash Scripting”#!/bin/bash
# Batch decode paging files
INPUT_DIR="/samples/paging"
OUTPUT_DIR="/results/pocsag"
for file in "$INPUT_DIR"/*.wav; do
filename=$(basename "$file" .wav)
echo "Processing $filename..."
multimon-ng -t wav -P "$file" > "$OUTPUT_DIR/${filename}.txt"
# Count messages
count=$(grep "MSG:" "$OUTPUT_DIR/${filename}.txt" | wc -l)
echo "Found $count messages"
done
Optimization and Performance
섹션 제목: “Optimization and Performance”Sample Rate Optimization
섹션 제목: “Sample Rate Optimization”# Standard sample rate (22050 Hz)
multimon-ng -t wav -P input.wav
# Higher sample rate for better quality
sox input.wav -r 48000 -t raw - | multimon-ng -t raw -P
# Lower sample rate for faster processing
sox input.wav -r 11025 -t raw - | multimon-ng -t raw -P
Buffer Optimization
섹션 제목: “Buffer Optimization”# Adjust buffer size for performance
# In code or via environment variable
MULTIMON_BUFFER_SIZE=4096 multimon-ng -t wav -P input.wav
# Real-time optimization
nice -n -10 rtl_fm -f 152.2425M -s 22050 - | \
multimon-ng -t raw -P
Troubleshooting
섹션 제목: “Troubleshooting”Common Issues
섹션 제목: “Common Issues”# No output detected
# Check sample rate
sox input.wav -n stat
# Verify frequency range
# Ensure proper audio format
# Garbled/incorrect output
# Verify sample rate matches protocol
# Check for clipping in audio
sox input.wav -n stats
# SDR connection issues
rtl_test
hackrf_info
# Audio format errors
file input.wav
sox input.wav input.raw # Convert if needed
Debug Mode
섹션 제목: “Debug Mode”# Verbose output
multimon-ng -t wav -P -v input.wav
# Multiple verbose levels (if supported)
multimon-ng -t wav -P -vv input.wav
# Check supported modes
multimon-ng --help | grep -i option
Real-World Applications
섹션 제목: “Real-World Applications”Monitoring Emergency Paging
섹션 제목: “Monitoring Emergency Paging”# Monitor 800 MHz band (requires scanner radio)
# Capture from line-in
sox -d -r 22050 -t raw -e signed-integer -b 16 - | multimon-ng -t raw -P
# Continuous monitoring with logging
while true; do
sox -d -r 22050 -t raw -e signed-integer -b 16 - | \
multimon-ng -t raw -P >> paging.log
done
Decoding Captured Traffic
섹션 제목: “Decoding Captured Traffic”# Multi-format analysis
multimon-ng -t wav -P -F -E radio_capture.wav | tee analysis.log
# Statistical analysis
multimon-ng -t wav -P radio_capture.wav | \
awk '{print $NF}' | sort | uniq -c | sort -rn
Integration with Databases
섹션 제목: “Integration with Databases”#!/bin/bash
# Log POCSAG to database
LOGFILE="/var/log/paging.log"
DATE=$(date +"%Y-%m-%d %H:%M:%S")
multimon-ng -t wav -P signal.wav | while read line; do
echo "[$DATE] $line" >> $LOGFILE
done
Operational Security
섹션 제목: “Operational Security”Privacy Considerations
섹션 제목: “Privacy Considerations”- Check local regulations before monitoring radio frequencies
- Understand legal restrictions on paging traffic interception
- Some pagers may contain sensitive information
- Secure captured files appropriately
- Document all monitoring activities
- Follow responsible disclosure procedures
Data Protection
섹션 제목: “Data Protection”# Encrypt captured files
gpg --encrypt paging.log
# Secure deletion
shred -vfz -n 3 captured_data.raw
# Access control
chmod 600 paging_logs.txt
References
섹션 제목: “References”- multimon-ng GitHub: https://github.com/EliasOenal/multimon-ng
- POCSAG Specification: https://en.wikipedia.org/wiki/POCSAG
- RTL-SDR Guide: https://www.rtl-sdr.com/
- Radio Protocols: https://www.sigidwiki.com/wiki/Main_Page
Legal Notice
섹션 제목: “Legal Notice”multimon-ng is designed for authorized radio frequency monitoring and analysis. Radio frequency monitoring is subject to local laws and regulations. Ensure you have proper authorization before monitoring any frequencies or capturing radio transmissions.