GithubHelp home page GithubHelp logo

danyworks / gsm-scanner Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 998 KB

Using an SDR (Nooelec NESDR SMArTee XTR SDR) which has RTL2832U Demodulator to analyse GSM traffic in cellular networks

Home Page: https://hub.docker.com/repository/docker/daniyal439/gsm-scanner/general

Dockerfile 0.11% Python 52.76% CMake 4.88% Shell 0.48% Makefile 0.04% C++ 41.40% C 0.33%

gsm-scanner's Introduction

Setup GSM Scanner in Docker Container

Requirements:

In command prompt

In windows install usbipd (for forwarding device to wsl)

# list your devices with BusID, VendorID and ProductID
usbipd list
# attach your SDR device to ubuntu  
usbipd wsl attach --busid 2-1 --distribution Ubuntu-18.04

In windows wsl2 (Ubuntu)

sudo apt install linux-tools-virtual hwdata
sudo update-alternatives --install /usr/local/bin/usbip usbip `ls /usr/lib/linux-tools/*/usbip | tail -n1` 20
# check the bus and device number by
 lsusb
# Optional to check if device connected succesfully 
dmesg | tail

In a DB Client (DBeaver)

connect to mysql db and create a table for gathering gsm traffic

    CREATE TABLE imsi (
        num INT NOT NULL AUTO_INCREMENT,
        id int(11) NOT NULL DEFAULT 0,
        tmsi1 varchar(100) ,
        tmsi2 varchar(100),
        imsi varchar(100),
        imsicountry varchar(100),
        imsibrand varchar(100),
        imsioperator varchar(100),
        stamp datetime,
        deviceid varchar(100),
        cell_id varchar(225),
        lac varchar(225),
        mcc varchar(10),
        mnc varchar(10),
        PRIMARY KEY (num)
    ) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Run Docker

docker-compose up -d
# or
docker run -d --name gsm-scanner --hostname gsm-scanner --restart unless-stopped --privileged \
    --env DISPLAY=":0" \
    --device=/dev/bus/usb/001/002:/dev/bus/usb/001/002 \
    --volume /tmp/.X11-unix:/tmp/.X11-unix \
    --volume ./env:/catcher/.env:rw \
    --network gsm_net \
    daniyal439/gsm-scanner:v1.0

Execute

Now run the multi panel terminal for analysing gsm near you

tmuxp load ./init.yml

gsm scanner

Misc

Install the x11 server to run GUI apps from wsl or docker containers

sudo apt install x11-xserver-utils xorg
# allow from anywhere to connect (used for opening gui from within Container)
xhost +    
# for opening multi window terminal 
sudo apt-get install tmuxp

Sources:

- https://osmocom.org/projects/cellular-infrastructure
- https://osmocom.org/projects/osmotrx/wiki/Fairwaves_UmTRX_UmSITE
- https://umtrx.org/applications/driver/
- https://osmocom.org/projects/osmotrx/wiki/LimeNET-micro
- https://wiki.myriadrf.org/LimeNET_Micro

gsm-scanner's People

Contributors

danyworks avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.