IMSI-catcher: reading GSM air signals with a fifteen dollar dongle
This program show you IMSI numbers of cellphones around you.
At a glance
- What is it?
- IMSI-catcher is a small set of Python scripts that pair GNU Radio's gr-gsm with Scapy to print the IMSI, country, brand and operator of phones that are in range of an SDR receiver. It is receive only, it locks onto one GSM frequency at a time, and it identifies handsets that never agreed to be identified.
- Who is it for?
- IMSI-catcher is a teaching tool for the GSM air interface and a reasonable one to read when you already know what you are looking at on a screen full of hex. It is not a finished application: no releases, a Python 3.9 ctypes trap, a documented flag that the help text does not list, and one frequency per run.
- Can I use it commercially?
- Yes. CC0-1.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 169 days ago.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- Oros42/IMSI-catcher4,619 ★ · +48
| Repository | 2026-09-23 | 2026-11-22 |
|---|---|---|
| Oros42/IMSI-catcher | 4.6k | 4.6k |
48 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Two terminals, one frequency, and root for sniff mode
The working model is two processes talking over localhost. One terminal runs the decoder that reads GSM signals off the air, the other runs the script that turns those signals into readable identifiers:
sudo python3 simple_IMSI-catcher.py -sgrgsm_livemonThe `-s` flag is the important part. Without it the script listens on a port, 4729 by default, and waits for the decoder to feed it. With it, the script sniffs the network interface itself, which the help text notes requires root or suid access. That is why the example is run under sudo rather than for convenience: capturing raw frames is a privileged operation on Linux. You then change frequency in `grgsm_livemon` until the terminal fills with lines of hex. Those lines are GSM frames, and they are what the script consumes. Nothing happens until both a frequency and a working decoder are in place, which is why a first run looks like nothing at all for a while.
The help output and the documented flags disagree
The option list is small, and one entry is worth reading twice. `-a` or `--alltmsi` shows TMSI values that have no IMSI attached, off by default. `-i` picks the interface, defaulting to `lo`, which is the loopback the decoder writes to. `-m` tracks one specific IMSI, given as `123456789101112` or with spaces as `"123 45 6789101112"`, and it defaults to none. `-p` changes the port from 4729, and `-w` takes a SQLite argument that the help text names without explaining. The inconsistency is that the database section later tells you to run the script with `--mysql`, and no `--mysql` option appears in the usage output at all. If you type it and get an error, that is the documentation talking about a flag its own help text does not list, and the script is the only place that settles it. Treat the usage block as partial rather than authoritative.
Python 3.9 is ruled out by a ctypes bug
The dependency set is a single apt line, and it pulls in the whole GNU Radio GSM stack:
sudo apt install python3-numpy python3-scipy python3-scapy gr-gsmImmediately after it comes the warning that matters more than the install line: do not use Python 3.9, because of a ctypes bug. There is a second compatibility note about the old `imp` module, which Python replaced with importlib from version 3.1 and deprecated in 3.11. The fix offered is a two step install of the backport:
apt install python3-pip
pip install importlibSo the supported range is narrower than the package list suggests. The project names Debian 10, Ubuntu 20.04 with LinuxMint 22.2 and later, and Kali 2025 or later as the tested combinations, which means a current rolling distribution may be outside what anyone has confirmed. On top of that, gr-gsm itself is not packaged everywhere, and the project links to the gr-gsm installation wiki on osmocom.org plus a fork, so getting gr-gsm working is the step most likely to consume your afternoon.
The Docker path runs privileged and is marked not recommended
There is a container route for gr-gsm, and the project labels it not recommended while still giving the commands:
sudo xhost +local:docker
docker pull atomicpowerman/imsi-catcher
docker run -ti --net=host -e DISPLAY=$DISPLAY --privileged -v /dev/bus/usb:/dev/bus/usb atomicpowerman/imsi-catcher bashRead those flags as a warning. `--privileged` gives the container far more than the task needs, `--net=host` removes network isolation, the X server is opened up with `xhost +local:docker` on the host, and a USB device is passed through. The Dockerfile behind it starts from `ubuntu:resolute`, installs gnuradio plus development packages, then clones gr-gsm and builds it with cmake, make and `ldconfig` before adding the Python packages and Wireshark. All the `grgsm_*` tools have to be run inside that container. If your goal is a security education setup rather than a hardened deployment, the container is a reasonable way to avoid breaking your distribution's GNU Radio, but it is not the safer choice for a shared machine.
Finding a frequency is a separate step with its own output
Nothing works until you are listening to a channel that carries traffic, so frequency discovery is documented as its own stage:
grgsm_scannerThe sample output is the part that teaches you the vocabulary, because each field is an identifier you will meet again in the decoded data:
ARFCN: 974, Freq: 925.0M, CID: 2, LAC: 1337, MCC: 208, MNC: 20, Pwr: -41
ARFCN: 976, Freq: 925.4M, CID: 4242, LAC: 1007, MCC: 208, MNC: 20, Pwr: -45MCC and MNC are the country and network codes, LAC is the location area, CID the cell id and Pwr the signal level. You then hand the frequency to the monitor with `grgsm_livemon -f 925.4M`. There was once a combined helper that scanned and listened on the first hit in one go, run as `scan-and-livemon`, and the project marks it as no longer used. That is the honest state of the tool: one frequency per session, chosen by hand, with the scanner as a separate program.
HackRF users build kalibrate before grgsm locks on
For a HackRF, the README offers the kalibrate-hackrf tool as an alternative to grgsm_scanner and walks through building it from source:
sudo apt-get install automake autoconf libhackrf-dev
git clone https://github.com/scateu/kalibrate-hackrf
cd kalibrate-hackrf/
./bootstrap
./configure
make
sudo make installThen you calibrate against the base station grid:
kal -s GSM900kal: Scanning for GSM-900 base stations.
GSM-900:
chan: 14 (937.8MHz + 10.449kHz) power: 3327428.82
chan: 15 (938.0MHz + 4.662kHz) power: 3190712.41The power numbers are the point of the exercise, since they tell the scanner which channels are actually nearby. The cost of this route is an autotools build in your toolchain. BladeRF and an OsmocomBB phone are listed as further tested receivers.
Logging to MySQL is a copy of a template file and an undocumented flag
The database route starts from a schema in the repository:
cp .env.dist .env
nano .env
# set your config
sudo apt install python-decouple python3-mysqldb`db-example.sql` creates the database, `.env.dist` is copied to `.env` and edited, and the connection settings are read from there rather than passed as arguments. The run command then adds the flag that the usage block does not mention:
sudo python3 simple_IMSI-catcher.py -s --mysqlTwo things are worth weighing before you set this up. First, you are creating a database whose purpose is a record of which phones were near a given receiver at a given time, which is a sensitive thing to leave running on a machine. Second, the repository contains an `immediate_assignment_catcher.py` script and an `mcc-mnc/` directory that the README never describes, so the file listing is wider than the documentation. There are no published releases for this repository, the licence is CC0, and the last commit is dated 6 June 2026.
Editorial conclusion
IMSI-catcher is a teaching tool for the GSM air interface and a reasonable one to read when you already know what you are looking at on a screen full of hex. It is not a finished application: no releases, a Python 3.9 ctypes trap, a documented flag that the help text does not list, and one frequency per run. Anyone who installs it should also decide what they are going to do with a log of strangers' subscriber identifiers, because the tool records them without asking the phone owner, which is a decision about other people rather than about your own data. Before you run anything, check your own setup against three things: that your SDR and antenna are on the tested list, that your distribution is one of the versions the project names, and that you understand what the sniff mode needs root for, because that is the line between reading radio signals and reading other people's devices.
Frequently asked questions
what is imsi catcher
This project is one Python implementation of it: a set of scripts that decode GSM signals received by an SDR dongle and print the IMSI numbers, country, brand and operator of phones in range. The README states it was made to understand how GSM networks work, and not for bad hacking.
how does imsi catcher work
An SDR receiver picks up GSM radio signals, GNU Radio's grgsm_livemon decodes them on one tuned frequency, and simple_IMSI-catcher.py consumes the decoded frames and prints the identifiers. You need one terminal for the decoder and one for the script, and the script needs root in sniff mode.
what is the range of imsi catcher
The project does not state a range. What it does give is the receiver hardware it was tested with, from a USB DVB-T key based on the RTL2832U with an antenna under fifteen dollars, through an OsmocomBB phone, a HackRF and a BladeRF, and a live signal level figure in the grgsm_scanner output.
what does imsi catcher do
It prints the IMSI numbers, country, brand and operator of cellphones around you, and can log what it collects. It is receive only: the decoder listens on one GSM frequency you tune yourself, and the data is written to standard output or to a MySQL database you configure.
how to imsi catcher
On GNU/Linux, clone the repository, install python3-numpy python3-scipy python3-scapy and gr-gsm, avoid Python 3.9 because of a ctypes bug, plug in an SDR receiver, run grgsm_scanner to find a frequency, then run grgsm_livemon and simple_IMSI-catcher.py side by side.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/oros42-imsi-catcher)Star history chart for your README
[](https://hysenlabs.com/projects/oros42-imsi-catcher)Was this useful?