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

ifconfig wlan0:0

echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -A POSTROUTING -s -t nat -o wlan0 -j MASQUERADE

# iptables -t nat -I PREROUTING -i tun0 -p udp --dport 53 -j DNAT --to-dest
# 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

Exit mobile version