Flex

From 0dayInc/pwn · View interactive version

Flex is an AI agent skill from the GitHub repository 0dayInc/pwn. Drive PWN::SDR::Decoder::Flex from pwn_eval.

How to use this skill

Skill file

PWN::SDR::Decoder::Flex

Pure-Ruby FLEX™ pager decoder. FLEX is Motorola's synchronous paging protocol running at 1600 or 3200 symbols/s in 2- or 4-level FSK. GQRX's NBFM discriminator audio (48 kHz UDP tap) is fed into a per-sample PLL symbol clock, 4-level quantised, and driven through the Sync-1 → FIW → Sync-2 → 11-block state machine. All four interleaved phases (A/B/C/D) are de-interleaved into 88 × 32-bit BCH(31,21)+parity codewords, error corrected, and walked (BIW → address → vector → message words) to recover short capcode + alphanumeric / numeric / binary payloads. Plain alpha fragments have fragment checksums and whole-message signatures, with bounded per-stream ordered reassembly. Long-address phases, secure payloads, and enhanced symbolic character modes remain unsupported. Numeric/binary message-level integrity is not implemented. The symbol/framing implementation follows multimon-ng demod_flex.c. Offline specs cover Sync-1/FIW and a protected short-address alpha frame. These fixtures do not establish all-mode live-air parity. No multimon-ng, no sox — 100 % Ruby.

When to use

Call PWN::SDR::Decoder::Flex from pwn_eval when the task needs this module.

Do not reimplement it in shell.

Methodologies

Generated from pwn/sdr/decoder/flex.rb. Prefer the public class methods below.

Class methods take (opts = {}) and read opts.

How to call

PWN::SDR::Decoder::Flex.help
PWN::SDR::Decoder::Flex.sync_check(opts)

Public methods

Source

pwn/sdr/decoder/flex.rb

Verification

PWN::SDR::Decoder::Flex.respond_to?(:sync_check) after the

module is loaded. Read the source for parameter names.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.