Coder Social home page Coder Social logo

lte-ciphercheck's Introduction

lte-ciphercheck's People

Contributors

agelonch avatar agmagor avatar aleksander0m avatar alvasman avatar andrepuschmann avatar davidrupprecht avatar ecefelix avatar eschreiber-alink avatar fabianeckermann avatar falkenber9 avatar faluco avatar frankist avatar guillemforeman avatar igorskh avatar ismagom avatar jgiovatto avatar laf0rge avatar luispereira87 avatar marojevic avatar mmtorni avatar mrlnc avatar paul-srs avatar pespin avatar suttonpd avatar tiagofalves avatar trondeau avatar velichkov avatar wangqiang1588 avatar xavierarteaga avatar yagoda avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

lte-ciphercheck's Issues

Compilation errors on ubuntu 20.04.1

Issue Description

Unable to compile from git on Ubuntu 20.04 due to multiple errors.

Setup Details

$ lsb_release -a
LSB Version: core-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

$ gcc --version
gcc version 9.3.0 (Ubuntu 9.3.0-10ubuntu2)

Expected Behavior

(complete compilation)

Actual Behaviour

  1. error in argument numbers between
    LTE-ciphercheck/srsue/test/upper/rrc_meas_test.cc and
    LTE-ciphercheck/srsue/hdr/stack/rrc/rrc.h

1 is resolved by adding one additional 'nullptr' argument to the rrc::init arglest prior to the vararg {}

  1. I'm not familiar enough with c++ do diagnose this error:
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc: In function ‘int security_command_test()’:
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc:216:13: error: cannot declare variable ‘rrc_dummy’ to be of abstract type ‘srslte::rrc_dummy
    216 | rrc_dummy rrc_dummy;
    | ^~~~~~~~~
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc:94:7: note: because the following virtual functions are pure within ‘srslte::rrc_dummy’:
    94 | class rrc_dummy : public rrc_interface_nas
    | ^~~~~~~~~
    In file included from /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc:25:
    /usr/local/src/LTE-work/LTE-ciphercheck/lib/include/srslte/interfaces/ue_interfaces.h:210:23: note: ‘virtual void srsue::rrc_interface_nas::leave_connected()
    210 | virtual void leave_connected() = 0;
    | ^~~~~~~~~~~~~~~
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc: In function ‘int mme_attach_request_test()’:
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc:281:14: error: cannot declare variable ‘rrc_dummy’ to be of abstract type ‘srslte::rrc_dummy
    281 | rrc_dummy rrc_dummy;
    | ^~~~~~~~~
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc: In function ‘int esm_info_request_test()’:
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc:358:13: error: cannot declare variable ‘rrc_dummy’ to be of abstract type ‘srslte::rrc_dummy
    358 | rrc_dummy rrc_dummy;
    | ^~~~~~~~~
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc: In function ‘int dedicated_eps_bearer_test()’:
    /usr/local/src/LTE-work/LTE-ciphercheck/srsue/test/upper/nas_test.cc:412:13: error: cannot declare variable ‘rrc_dummy’ to be of abstract type ‘srslte::rrc_dummy
    412 | rrc_dummy rrc_dummy;
    | ^~~~~~~~~
    make[2]: *** [srsue/test/upper/CMakeFiles/nas_test.dir/build.make:63: srsue/test/upper/CMakeFiles/nas_test.dir/nas_test.cc.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:7816: srsue/test/upper/CMakeFiles/nas_test.dir/all] Error 2

--
i don't know if there are any additional errors after this, that are dependent on this file compiling correctly, but I think this is the only standout, based on make's output.

Steps to reproduce the problem

clone from git, mkdir build && cd build; cmake ..; make -j4

Additional Information

full build log available upon request

Could not attach to the network. Check configuration.

Before filing an issue, search for solutions here:

Issue Description

I'm using an commercial SIM card with a pcsc based SIM card reader but I keep on getting the following error:

sudo ./srsue 
linux; GNU C++ version 7.4.0; Boost_106501; UHD_003.010.003.HEAD-0-gef157678

Reading configuration file /home/ubuntu16/.config/srslte/ue.conf...

Built-in Release mode using commit 4925f48a on branch sec_algo_test.

Opening 1 RF devices with 1 RF channels...
Opening USRP with args: type=b200,master_clock_rate=23.04e6
-- Detected Device: B200
-- Operating over USB 3.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 23.040000 MHz... 
-- Actually got clock rate 23.040000 MHz.
-- Performing timer loopback test... pass
Waiting PHY to initialize ... done!
Saving MAC PCAP file
Saving NAS PCAP file
Searching cell in DL EARFCN=39350, f_dl=2370.0 MHz, f_ul=2370.0 MHz
.
.
.
.
Found Cell:  Mode=TDD, PCI=133, PRB=100, Ports=4, CFO=-5.5 kHz
Enabling subframe interpolation for TDD cells (recommended setting)
Enabling subframe interpolation for TDD cells (recommended setting)
Enabling subframe interpolation for TDD cells (recommended setting)
Could not attach to the network. Check configuration.

Saving MAC PCAP file
Saving NAS PCAP file
---  exiting  ---

Why am I not able to connect to the commercial network?

I've double-checked the EARFCN's used by the network and made changes in the ue.conf regarding the same.

Setup Details

OS: Lubuntu 18.06 x86_64
Hardware: Intel i7-3610QM 3.06ghz, 8GB RAM, 1TB HDD
RF front-end: USRP B200
library and driver versions: 003.010.003(manually compiled)
Network configuration: masqueraded the wi-fi interface of my machine.

Expected Behavior

I should be able to connect to the commercial network using the commercial SIM Card through the PCSC card reader.

Actual Behaviour

I'm receiving the following error...

Could not attach to the network. Check configuration.

Steps to reproduce problem

~$ sudo apt-get install git cmake libfftw3-dev libmbedtls-dev libboost-program-options-dev \
    libconfig++-dev libsctp-dev libpcsclite-dev pcsc-tools libuhd-dev
~$ git clone https://github.com/mrlnc/eia0.git
~$ cd eia0
eia0$ mkdir build && cd build
build$ cmake ..
build$ make -j `nproc` srsue

cp eia0/srsue/ue.conf.example ~/.config/srslte/ue.conf

nano ~/.config/srslte/ue.conf (Added the below paramters)

[pcap]
enable = true
filename = /tmp/sec_results/ue
nas_enable = true
nas_filename = /tmp/sec_results/nas

[usim]
mode = pcsc
#algo = xor
#opc  = 63BFA50EE6523365FF14C1F45F88737D
#k    = 00112233445566778899aabbccddeeff
#imsi = 001010123456789
imei = 353490069873319

eia0/build/srsue/src$ sudo ./srsue 
linux; GNU C++ version 7.4.0; Boost_106501; UHD_003.010.003.HEAD-0-gef157678

Reading configuration file /home/ubuntu16/.config/srslte/ue.conf...

Built-in Release mode using commit 4925f48a on branch sec_algo_test.

Opening 1 RF devices with 1 RF channels...
Opening USRP with args: type=b200,master_clock_rate=23.04e6
-- Detected Device: B200
-- Operating over USB 3.
-- Initialize CODEC control...
-- Initialize Radio control...
-- Performing register loopback test... pass
-- Performing CODEC loopback test... pass
-- Asking for clock rate 23.040000 MHz... 
-- Actually got clock rate 23.040000 MHz.
-- Performing timer loopback test... pass
Waiting PHY to initialize ... done!
Saving MAC PCAP file
Saving NAS PCAP file
Searching cell in DL EARFCN=39350, f_dl=2370.0 MHz, f_ul=2370.0 MHz
.
.
.
.
Found Cell:  Mode=TDD, PCI=133, PRB=100, Ports=4, CFO=-5.5 kHz
Enabling subframe interpolation for TDD cells (recommended setting)
Enabling subframe interpolation for TDD cells (recommended setting)
Enabling subframe interpolation for TDD cells (recommended setting)
Could not attach to the network. Check configuration.

Saving MAC PCAP file
Saving NAS PCAP file
---  exiting  ---

Additional Information

A humble request can you pls share what changes did you make in the eia0 code compared to the vanilla srslte code?

I'm finding it difficult to understand the code would like to have the diff view and understand your implementation.

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.