GSMEVIL 2 is python web-based tool which use for capturing IMSI numbers and SMS and also you able to see SMS and IMSI on any device using your favorite browser and it's make easy to capture SMS and IMSI numbers for those who not have much knowledge about GSM packets capturing.
This program was made to understand how GSM network works. Not for bad hacking! We are not responsible for any illegal activity!
-
Clone this repository and go into it:
$ git clone https://github.com/ninjhacks/gsmevil2.git $ cd gsmevil2 -
Create and activate
python3virtual environment (venv) namedgsmevil_venv:Virtual environment allows us to avoid cluttering the system with specific versions of packages needed for this project (which can also be managed externally (via
apt) and cannot be installed in other way).$ sudo apt update $ sudo apt install python3-venv python3-pip $ python3 -m venv .gsmevil_venv $ . .gsmevil_venv/bin/activate -
Install dependencies (in virtual environment):
(.gsmevil_venv) $ python -m pip install -r ./requirements.txt
TShark is needed, since its used by pyshark (python wrapper around it, dependency of this project)
$ sudo apt install tshark$ sudo add-apt-repository -y ppa:ptrkrysik/gr-gsm
$ sudo apt update
$ sudo apt install gr-gsmIf gr-gsm failed to setup - follow this guide: https://github.com/ptrkrysik/gr-gsm/wiki/Installation
$ sudo apt install kalibrate-rtlor build it from sources:
$ sudo apt install build-essential libtool automake autoconf librtlsdr-dev libfftw3-dev
$ git clone https://github.com/steve-m/kalibrate-rtl
$ cd kalibrate-rtl
$ ./bootstrap && CXXFLAGS='-W -Wall -O3'
$ ./configure
$ make
$ sudo make install-
You need GSM frequency on which you capture SMS or IMSI. By using
kalibrate-rtlyou will get all your near GSM Base Stations (BS) frequencies.$ kal -s GSM900
Expected output:
kal: Scanning for GSM-900 base stations. GSM-900: chan: 4 (935.8MHz + 320Hz) power: 1829406.95 chan: 11 (937.2MHz + 308Hz) power: 4540354.88 ... -
Now you need to capture GSM traffic using
gr-gsmon frequency of your any GSM Base Station which you get fromkalibrate-rtl.$ grgsm_livemon -f <your_frequency>M
Example:
$ grgsm_livemon -f 935.8M
If you see output that's mean you getting GSM packets than continue other setups else change frequency.
2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b 2b ...This traffic will be send into
lonetwork-interface by default, whichGSMEvlilwill listen. -
Now every thing is ready. You can start capturing SMS or IMSI numbers using
GSMEvil.You able to run IMSI catcher and SMS sniffer both at same time using 2 separate terminals for capture IMSI numbers and SMS both at same time.
$ cd <your gsmevil2 folder> # Example: $ cd gsmevil2
-
Run this command to quick start Gsm Evil 2.
This will start web-server on
localhost:80, listening forgr-gsmpackets onlonetwork-interface .NOTE: Listening network-interface requires
sudoor setting permission once (sudo setcap cap_net_raw,cap_net_admin=eip <executable>).$ sudo .gsmevil_venv/bin/python GsmEvil.py
Options:
$ .gsmevil_venv/bin/python GsmEvil.py --help Usage: GsmEvil.py: [options] Options: -h, --help show this help message and exit -i IFACE, --iface=IFACE Interface (default : lo) -p PORT, --port=PORT Port (default : 80) --host=HOST Host (default : localhost) -
For changing host port:
$ sudo .gsmevil_venv/bin/python GsmEvil.py -p 8080
-
For changing hostname:
$ sudo .gsmevil_venv/bin/python GsmEvil.py --host=localhost
Open localhost or 127.0.0.1 in your favorite browser and use now.
- Linux operating system (Kali linux)
- rtl-sdr (RTL2832U) with antenna (less than 15$) or HackRF
Bitcoin : 192bG3RRAGdbTPSUWqxbTBaAnKyvALm84g
| Website | https://www.ninjhacks.com |
| https://www.facebook.com/ninjhacks | |
| https://twitter.com/ninjhacks | |
| Discord | https://discord.com/invite/uWXmV5wcg6 |
| help@ninjhacks.com |
