Page 1 of 6 123 ... LastLast
Results 1 to 10 of 57

Thread: GSM Capturing, Decoding with USRP and SDR in Kali Linux Rolling Edition

  1. #1
    Junior Member
    Join Date
    Oct 2013
    Posts
    24

    GSM Capturing, Decoding with USRP and SDR in Kali Linux Rolling Edition

    Hello All,

    Tutorial is in this thread now, Slick added rtl-sdr support, you may still view/download from the link.

    Thanks



    https://docs.google.com/document/d/1...4ue_WXezI0/pub

    http://https://docs.google.com/docum...4ue_WXezI0/pub

    Okay gonna start getting this transfered a piece at a time! (Please forgive the formatting, I am copying and pasting then adding the screen shots etc... it looks pretty in the PDF format you can download from the link or we can email it to you, I know there is people waiting for this be put up with the rtl-sdr steps included from slick's notes)



    GSM Capturing, Decoding with USRP and SDR in Kali Linux Rolling Edition

    This is a full, step by step, tutorial installing GR-GSM, libosmocore, gnuradio companion and everything needed to capture GSM packets and decode in Wireshark. Using the USRP device Hackrf One.

    By Community member Scoyok (Scott)

    I could not put this together without community member Slick97477 (Bryon)

    (He has also modified this tutorial for compatibility with Kali Sana 2.0 KDE(rtl-sdr) coming soon)

    I got all the information contained herein from too many places to name them all, here is a few:

    https://github.com/mossmann/hackrf
    http://www.rtl-sdr.com/tag/airprobe/
    https://gnuradio.org/redmine/project...RadioCompanion
    http://sdr.osmocom.org/trac/wiki/GrO...ckRFSourceSink
    https://z4ziggy.wordpress.com/2015/0...c-with-hackrf/
    https://github.com/ptrkrysik/gr-gsm/wiki
    http://bb.osmocom.org/trac/wiki/libosmocore
    http://hackaday.com/2015/10/10/sdr-t...chael-ossmann/

    DISCLAIMER:

    IF YOU BREAK ANY OF YOUR DEVICES IN ANY WAY, CAUSE THE END OF THE WORLD, GET ARRESTED, OR NERD RAGE ON YOUR FAMILY, I AM NOT RESPONSIBLE.
    I AM NOT RESPONSIBLE FOR HOW YOU USE ANY INFORMATION CONTAINED HEREIN, IT IS INTENDED FOR EDUCATIONAL AND RESEARCH PURPOSES ONLY. IT IS SOLELY YOUR RESPONSIBILITY TO UNDERSTAND AND FOLLOW LOCAL, AND INTERNATIONAL LAWS. DO NOT INTERACT WITH ANY SIGNAL BUT YOUR OWN!


    Equipment: Software Defined Radio device, I used the Hackrf One to make this tutorial, it was modified to work in Kali Sana 2.0 with the Rtl-Sdr by Slick97477 aka Bryon (he will post that separately)I installed this dual booting with windows 10 on an amd quad core laptop and on my primary custom machine. Keep in mind that if you have a different SDR you may have to change a few of the drivers specific to yours.
    Recommended: I tested this tutorial with fresh install, I only ran these commands before starting this tutorial.

    apt update
    apt upgrade -y
    apt-get install kali-linux-all
    apt-get install flashplugin-nonfree
    update-flashplugin-nonfree --install

    I suggest your install be as fresh as possible, brand new if you can.

    WARNING: You have probably noticed that there isn’t a working tutorial up anywhere else yet for Sana or Rolling release. I tried all the different methods from all the sites I could find before coming to this exact order and combInation. DO NOT USE PYBOMBS! DO NOT TRY USING ORIGINAL AIRPROBE! (or the patch airprobe method) these methods will pretty much nuke your install. We are gonna be installing a whole bunch of dependencies that are not native to Kali, the exact order and directory you are in while compiling (using a lot make cmds) has everything to do with success. If you mess up you may have to re-install Kali so have an .iso handy. I run as root all the time, add sudo to the majority of commands if you do not.
    Feel free to email me with any questions and I will provide as much support as possible. The second email is Bryon and I’s linked development account solely for support, one of us will get back to you.

    Just for me (Scott) scoyok@gmail.com or for both of us twobrothersdevs@gmail.com
    Just for Bryon slick97477@gmail.com

    Finally, this isn’t perfect, I spent a couple of hours late night for a week working on this so there may be a few extra packages that get installed. Posting my progress to Bryon via comments in google docs then playing catch up after working 14 hour days and coming home to a wife and kids. Bryon and I have made the decision to become more publicly active, so look for more coming from us in the future. This is our passion and our work, but family always come first. Be respectful and patient, one of us will get back to you. We want to learn from others and help others learn. If you happen to catch something feel free to let us know.

    Keep in mind that some are installed twice on purpose. For whatever reason the package talloc, for example, can be installed now and then later during make it will say “...make failed package libtalloc…” not found. So then you go back into package manager and search again and all of the sudden more talloc dev packages pop up. So, I ask that you just follow the tutorial all the way through step by step and if you have the Hackrf One I know it will work.

    EDIT: It is 100% confirmed working on the rtl-sdr now too, tested on three different pc's. Thanks to slick, I will be adding his notes as optional steps where they correspond in this tutorial.

    Follow the step by step instructions to make sure your Hackrf One is updated and the drivers are installed. You can check by running hackrf_info:

    Selection_031.jpg

    STEP 1: Package Downloader

    Applications (drop down menu), then to Usual Applications (drop down) then System and Select Package Downloader (has picture of a blue down arrow)

    Selection_001.jpg

    Once opened search in the search bar for “osmo” and download everything that you even think has anything to do with SDR, GSM, or gr-gsm. Since the programs run on std=gnu++11 and std=c++11 do the same, now we are going to search Talloc (for the first time) as well and select ALL packages for install to meet requirements for libosmocore.

    This is necessary to integrate C++ and Python, gr-gsm/gnuradio relies primarily on C++
    DOWNLOAD IT ALL, TRUST ME YOU WOULD RATHER HAVE MORE THAN LESS!

    STEP: 2 Commands for Dependencies

    More dependencies through apt-get and git commands, these are pretty self explanatory

    apt-get install hackrf libhackrf-dev libhackrf0

    apt-get -y install git-core autoconf automake libtool g++ python-dev swig libpcap0.8-dev

    apt-get install gnuradio gnuradio-dev gr-osmosdr gr-osmosdr

    apt-get install git cmake libboost-all-dev libcppunit-dev swig doxygen liblog4cpp5-dev python-scipy

    STEP3: Libosmocore

    Have to have libosmocore and you will need the following tools:

    apt-get install build-essential libtool shtool autoconf automake git-core pkg-config make gcc

    and the following (optional) libraries:

    apt-get install libpcsclite-dev

    git clone https://github.com/ptrkrysik/gr-gsm.git

    cd gr-gsm

    ************PAUSE***********

    Go back to Package Downloader and search for Talloc again, there should be somewhere around 7 more 2.1.x packages now the other dependencies have opened up, download them or you will return a “make” failure. Trust me do it.

    So, things should be going good, make sure you are in the right directory and that you do this in the right order or any one of these could become very frustrating.

    From the gr-gsm directory clone into Libosmocore

    git clone git://git.osmocom.org/libosmocore.git
    cd libosmocore
    autoreconf -i
    ./configure
    make
    make install
    ldconfig -i
    cd ..

    STEP 4: Back to setting up gr-gsm now that the dependencies are resolved

    ****START****

    mkdir build
    cd build
    cmake ..
    make
    make install
    ldconfig

    now using a text editor, create a text file named:

    config.conf

    then paste the following into it:

    [grc]
    local_blocks_path=/usr/local/share/gnuradio/grc/blocks

    ****NOTE****

    (the places “Home” function in rolling release does not search actual root, go to computer)
    You may have to manually locate the file using Places, click Home, click Other Locations (at the bottom), click Computer, (this is the REAL root) open ETC, then Gnuradio, then you save as in text editor ( I used GEDIT) to this location. (If you have a different desktop environment this could be different, email Bryon at slick97477@gmail.com with any issues)

    So when you're done, wherever your gnuradio folder is located in the root of your drive /gnuradio (you will see a conf.d folder in there, that is where the global gnu config file is) place your text file next to it. Your ~/etc/gnuradio folder should look like this:

    Selection_002.jpg

    STEP: 5 Time for Kalibrate-hackrf

    EDIT: If you are using the rtl-sdr please skip to next step 5b

    If you are NOT using the Hackrf One you may have to do a little googling to see how to get the correct version for your device. Bryon used the rtl-sdr version located here https://github.com/steve-m/kalibrate-rtl

    Now we need Kalibrate-hackrf(dependent on which device you have)

    git clone https://github.com/scateu/kalibrate-hackrf.git
    cd kalibrate-hackrf
    ./bootstrap
    ./configure
    make
    make install
    ldconfig

    STEP:5b Kalibrate for the rtl-sdr

    git clone https://github.com/steve-m/kalibrate-rtl
    cd kalibrate-rtl
    ./bootstrap
    ./configure
    make
    make install
    ldconfig

    You should have had no errors thus far, if you did more than likely you didn’t fill a dependency or installed something in the wrong directory.

    Now let’s test everything out and run a scan for GSM base stations using Kalibrate. You will have to use the proper GSM parameter (‘-s’) to correspond to your local operator, check your countries band range here:


    END POST 1
    Last edited by scoyok; 2016-02-09 at 11:36 PM. Reason: Full tutorial in thread now, added rtl-sdr support.

  2. #2
    Senior Member
    Join Date
    Aug 2013
    Location
    lost in space
    Posts
    580
    Thanks scoyok and welcome,

    This is very interesting to me and to others also. If you made it work, I would appreciate if you can post a step-by-step howto here. The information provided on RTL-SDR.com and other sites is incomplete and all over the place. Take as many posts as you need.
    Kali Linux USB Installation using LinuxLive USB Creator
    Howto Install HDD Kali on a USB Key
    Clean your laptop fan | basic knowledge

  3. #3
    Junior Member
    Join Date
    Oct 2013
    Posts
    24
    Quote Originally Posted by Quest View Post
    Thanks scoyok and welcome,

    This is very interesting to me and to others also. If you made it work, I would appreciate if you can post a step-by-step howto here. The information provided on RTL-SDR.com and other sites is incomplete and all over the place. Take as many posts as you need.

    It works! Put a lot of work with my brother into this guide. We tested it 10 times from scratch, we are almost done testing his modified version that works in Sana. We had the same problem, the information is scattered and incomplete. I would be more than willing to get it up here, give me a few days to take it apart piece by piece and upload the screenshots one at a time and I can make it happen. I work full time and have a wofe and kids, so for those eager to try it, check out the link.

  4. #4
    Junior Member
    Join Date
    Feb 2016
    Location
    Oregon
    Posts
    12
    Quote Originally Posted by scoyok View Post
    It works! Put a lot of work with my brother into this guide. We tested it 10 times from scratch, we are almost done testing his modified version that works in Sana. We had the same problem, the information is scattered and incomplete. I would be more than willing to get it up here, give me a few days to take it apart piece by piece and upload the screenshots one at a time and I can make it happen. I work full time and have a wofe and kids, so for those eager to try it, check out the link.
    I can assure you we have got it working. I have followed this tutorial on a fresh install of kali 2.0 64 bit sana (not rolling release) with kde. Also i have the rtl-sdr. I had to make a couple changes to make it work on sana kde but it is functioning. Gonna try to upload a couple screenshots from just now showing it is 100 percent functioning. As you can see from my screenshots it working 100 percent. Will be adding the couple simple fixes to the tutorial later when we had the how-to directly to kali.org forums instead of the link we provided earlier

    gsm.jpg
    Attached Images Attached Images
    Last edited by slick97477; 2016-02-09 at 06:37 AM. Reason: Added different Screenshot for clearer viewing

  5. #5
    Senior Member
    Join Date
    Jul 2013
    Location
    United States
    Posts
    519
    Excellent post! I'll be following this.

  6. #6
    Senior Member
    Join Date
    Aug 2013
    Location
    lost in space
    Posts
    580
    oh I'll be waiting also

    Thanks again you two



    OT: didn't know that you were also into SDR, soxrok. Been following airplanes and some other amazing cool stuff...
    Kali Linux USB Installation using LinuxLive USB Creator
    Howto Install HDD Kali on a USB Key
    Clean your laptop fan | basic knowledge

  7. #7
    Senior Member
    Join Date
    Jul 2013
    Location
    United States
    Posts
    519
    Quote Originally Posted by Quest View Post
    oh I'll be waiting also

    Thanks again you two



    OT: didn't know that you were also into SDR, soxrok. Been following airplanes and some other amazing cool stuff...
    Right! Really interesting stuff! I was also thinking about building some antennas to listen in to the ISS when it passes by and capture some NOAA satellite images.

    Also, I'll have to wait for RTL-SDR info, don't have a HackRF One, very expensive :P

  8. #8
    Senior Member
    Join Date
    Aug 2013
    Location
    lost in space
    Posts
    580
    Yeah satellites!! I have a howto for windows7 to do that. There's been more development under W7 than Linux.

    *sorry scoyok & slick, we are known to chat. We just don't get many SDR topics*
    Kali Linux USB Installation using LinuxLive USB Creator
    Howto Install HDD Kali on a USB Key
    Clean your laptop fan | basic knowledge

  9. #9
    Junior Member
    Join Date
    Feb 2016
    Location
    Oregon
    Posts
    12
    Quote Originally Posted by soxrok2212 View Post
    Right! Really interesting stuff! I was also thinking about building some antennas to listen in to the ISS when it passes by and capture some NOAA satellite images.

    Also, I'll have to wait for RTL-SDR info, don't have a HackRF One, very expensive :P
    So i currently have a rtl-sdr as well and have done testing and it works flawlessly. The screenshots from earlier are form my rtl-sdr. I too cannot afford a hackrf so went the route of rtl-sdr. The biggest thing i saw, I followed the tutorial to the end. Instead of the "kalibrate-hack-rf" you use "kalibrate-rtl" when building kalibrate at the end of the tutorial. Also if you have installed the "kali-linux-all" the "kalibrate-rtl" might be there by default. You can check within the package manager
    to see if kalibrate is installed or from terminal type "kal" and see if it runs. if the command "kal" runs you should see something similar to this screenshot below.kal.jpg
    Attached Images Attached Images
    Last edited by slick97477; 2016-02-09 at 06:30 AM.

  10. #10
    Junior Member
    Join Date
    Oct 2013
    Posts
    24
    Don't apologize! It is great to see so much conversation on the subject! We are very excited to be apart of this community! Please, anyone reading this, do not be afraid to ask for support at any part of the tutorial, provide constructive feedback! We hope to continue with tutorials and active participation within the Kali community, I do love to write... and its the one place my over explaining of everything is helpful! Lol

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •