CalypsoBTS GPRS testing

OS Kali rolling 2018.1. Hello after making a 2G IMSI-catcher (for this article you will need to install the stuff of my article IMSI-Catcher you can skip lcr asterisk sofia sip opencore amr if you don’t want to install all the stuff but you will not handle calls…) we will see how to add GPRS connection with two osmocombb phones. To do that you have to compile transceiver application and trx with osmocom-bb. After that you have to do the following

# apt install osmocom-sgsn libosmoabis5 openggsn libsmpp34-0 libosmosccp0libosmonetif3 libgtpnl2 libc-ares-dev
# git clone https://github.com/bbaranoff/calypsogprs
# cd calypsogprs

# cd githubcalypso
# mkdir /root/.config/osmocom
# cp * /root/.config/osmocom

# chmod +x osmobts-trx

# chmod +x osmo-pcu

# mkdir /var/lib/ggsn/

Running :

# ifconfig wlan0 192.168.1.56

# ifconfig wlan0:0 192.168.1.250
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables -A POSTROUTING -s 192.168.0.0/24 -t nat -o wlan0 -j MASQUERADE

# iptables -t nat -I PREROUTING -i tun0 -p udp --dport 53 -j DNAT --to-dest 8.8.8.8
# osmo-nitb -s -c /root/.config/osmocom/open-bsc.conf -l /root/.config/osmocom/hlr.sqlite3 -P -C --debug=DSQL:DLSMS:DRLL:DCC:DMM:DRR:DMSC:DHO:DGPRS:DNS:DLLC:DCTRL
# ggsn -c /root/.config/osmocom/ggsn.conf -f -d
#osmo-sgsn -c /root/.config/osmocom/osmo-sgsn.cfg -d DRLL:DCC:DMM:DRR:DNM:DMSC:DHO:DGPRS:DNS:DLLC:DCTRL
# cd ~/trx/src
# host/osmocon/osmocon -m c123xor -p /dev/ttyUSB0 -s /tmp/osmocom_l2 -c target/firmware/board/compal_e88/trx.highram.bin -r 99
# host/osmocon/osmocon -m c123xor -p /dev/ttyUSB1 -s /tmp/osmocom_l2.2 -c target/firmware/board/compal_e88/trx.highram.bin -r 99
# cd ~/trx/src/host/layer23/src/transceiver/
# ./transceiver -a {arfcn with high rssi] -2 -r 99
# cd ~/calypsogprs
# ./osmobts-trx --debug DRSL:DOML:DLAPDM -r 99 -c /root/.config/osmocom/osmo-bts.cfg
# cd ~/calypsogprs
#./osmo-pcu -c /root/.config/osmocom/osmo-pcu.cfg

when running you should see that

4 Comments

  1. fixmer says:

    hi bastienbaranoff,

    i like your tutorials very much.
    currently i am trying to port your calypsobts gprs project to an older 32bit notebook with ubuntu 18.04.
    i have build osmocombb firmware successfully and i am able to load firmware into my phones.

    unfortunately, it seems that the osmobts-trx binary from your git is compiled for 64bit systems.
    can you please provide sourcecode or upload a 32bit i686 version?
    i have searched at http://download.opensuse.org/repositories/network:/osmocom:/latest/xUbuntu_18.04/ but there are only osmo-bts OR osmo-trx files 😀

    it would be nice to complete this project and have some fun with my oldschool notebook.

    thank you in advance

    fixmer

    Like

    1. fixmer says:

      ich habe aus dem osmocom irc channel folgende information bekommen:
      https://osmocom.org/issues/2828

      ich hoffe das problem wird bald behoben

      Like

Leave a Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.