关于Osmocom-BB GSM-SMS 嗅探出现的一些问题的解决方案
安装教程直接参考freebuf上的这个
在安装这个项目之前建议sudo -s
一下,不然以后会有点麻烦。
错误A
在安装libosmocore执行./configure 的时候很多人会遇到
> No package ‘talloc’ found
这种错误,因为找不到talloc,下面是解决办法(以下代码均是在sudo -s
的情况下)
# wget https://www.samba.org/ftp/talloc/talloc-2.1.7.tar.gz
# tar -zxvf talloc-2.1.7.tar.gz
# cd talloc-2.1.7/
# ./configure
# make
# make install
紧接着有可能出现
No package 'gnutls' found
的情况,使用
apt-get install libgnutls28-dev
解决这个问题
错误B
> /root/osmocom-bb/src/target/firmware/include/asm/swab.h: Assembler messages:
> /root/osmocom-bb/src/target/firmware/include/asm/swab.h:32: Error: no such instruction: `eor %edx,%ecx,%ecx,ror’
> make[4]: *** [gsmtap_util.lo] 错误 1
> make[4]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target/src’
> make[3]: *** [all] 错误 2
> make[3]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target/src’
> make[2]: *** [all-recursive] 错误 1
> make[2]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target’
> make[1]: *** [all] 错误 2
> make[1]: Leaving directory `/root/osmocom-bb/src/shared/libosmocore/build-target’
> make: *** [shared/libosmocore/build-target/src/.libs/libosmocore.a] 错误 2
此问题的出现是OsmocomBB交叉编译环境出现问题,网上几乎所有文章都没有明确的解决方案,有大部分文章的答案都是下面这个,但是此链接已经过期
所以我们选择自己去github
https://github.com/koushik2506/exp/tree/master/arm
上下载这个包拖进虚拟机你的osm项目的二级目录里并进行解包
# mv ../Desktop/bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2 ./
# tar xf bu-2.16.1_gcc-4.0.2-c-c++_nl-1.14.0_gi-6.4_x86-64.tar.bz2
# mv gnuarm-* ~/gnuarm
# export PATH=~/gnuarm/bin:$PATH
同样你也可以使用git命令下载项目后解压
接下来应该会出现
make[1]: *** [board/compal_e88/hello_world.compalram.elf] 错误 1
make[1]: Leaving directory `/root/osmocom-bb/src/target/firmware’
make: *** [firmware] 错误 2
解决:
执行
git clean -dfx
make
最后我是装完了环境,可是刷不进去,初步估计是数据线的问题,等过段时间有时间了自己组一个,如果有大佬知道怎么弄,请务必告诉我一下呀!(・ω・)ノ