Salta ai contenuti

multimon-ng

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.

# 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
# 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
# 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/
# Build Docker image
docker build -t multimon-ng .

# Run in container
docker run -it multimon-ng multimon-ng --help
multimon-ng [OPTIONS] [INPUT_FILE]
OptionDescription
-t rawRaw audio (default)
-t wavWAV audio file
-t auAU audio file
-t mp3MP3 audio file
-AAFSK 1200 / Bell 202
-aAFSK 2400 / Bell 202
-PPOCSAG (paging)
-FFLEX (paging)
-EEAS (Emergency Alert)
-SSSTV (Slow Scan TV)
-CCVSD modem
# 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 (Post Office Code Standardization Advisory Group) is a radio paging protocol widely used for pagers and emergency alerts.

# 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 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
ServiceFrequencyBandwidth
Public Safety152.8225 MHz12.5 kHz
Commercial454.000-454.625 MHz12.5 kHz
EMS Paging157.4500 MHz12.5 kHz
Private Paging162.550 MHz12.5 kHz

FLEX is a high-capacity paging protocol supporting multiple data rates and message types.

# 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 Frame: 
Mode: 1 (1600 bps)
Time: [timestamp]
RIC: 123456
Type: Numeric
Message: 1234567890
BandFrequency RangeNotes
929 MHz929.0125-929.6875 MHzMost common paging
931 MHz931.0125-931.6875 MHzRegional paging
934-936 MHz934.000-936.000 MHzWACS band (deprecated)

The Emergency Alert System uses specific tones and protocols for emergency broadcasts.

# 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
Header Tone: 1000 Hz, 1 second
Data Transmission: 520/1850 Hz, 40-50 ms per bit
End of Message: 1000 Hz, 300 ms
CodeMeaning
RWTRequired Weekly Test
EANEmergency Alert Now
CEMCivil Emergency Message
PEPPrimary Entry Point

SSTV transmits images slowly over radio frequencies, allowing reception with basic radio equipment.

# 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
ModeLinesDurationProtocol
Scottie 1256110 sec7-bit
Scottie 2256111 sec7-bit
Martin 1256114 sec7-bit
Martin 225658 sec7-bit
# 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
# 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
# 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
# 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
# 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
# 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"
#!/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
# 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
# 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
# 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
# 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
# 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
# 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
#!/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
  • 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
# Encrypt captured files
gpg --encrypt paging.log

# Secure deletion
shred -vfz -n 3 captured_data.raw

# Access control
chmod 600 paging_logs.txt

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.