Code Monkey home page Code Monkey logo

ubertooth's People

Contributors

adamlaurie avatar aholler avatar cathyz64 avatar cpn18 avatar dominicgs avatar dragorn avatar el-han avatar etherealflux avatar jboone avatar jeltef avatar jonathanwminer avatar kxynos avatar lisaparty avatar mar-kub avatar miek avatar mikeryan avatar mnaberez avatar mossmann avatar nerade avatar r0wnin avatar rsaxvc avatar samyk avatar sgstair avatar straithe avatar tomsaul avatar torstenrobitzki avatar troth avatar willcode avatar xbarte14 avatar zerochaos- 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  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  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  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

ubertooth's Issues

on/off flag for libpcap

find_package(PCAP)
if( ${PCAP_FOUND} )
include_directories(${PCAP_INCLUDE_DIRS})
LIST(APPEND LIBUBERTOOTH_LIBS ${PCAP_LIBRARIES})
add_definitions( -DUSE_PCAP )
endif( ${PCAP_FOUND}

Current pcap code is only automagic. please add an on/off like done for bluez

kismet-ubertooth double frees in ubertooth::poll

Hi there,

Everytime I run kismet_server -c ubertooth, the ubertooth::poll method seems to cause a double free at line 508 in packetsource_ubertooth.cc after it receives its second packet (this happens even if the two LAPs are not the same). I'm using libbtbb, ubertooth, kismet and kismet-ubertooth all from git, this also happens with non-git versions of the software as well (ubertooth 2014.04.1 and kismet 2013.03.1). Tested with original/purchase firmware and 2014-04-R1 firmware.

I'm happy to provide any further diagnostics that might help narrow down the issue. Just let me know what you need. 5:)

INFO: Started source 'ubertooth'
rx blocks of 64 bytes in 512 byte transfers
INFO: kismet_capture pid 21183 synced with Kismet server, starting service 
      loop
GOT PACKET ch=49 LAP=1928c7 err=0 clk100ns=235484
GOT PACKET ch=19 LAP=1928c7 err=0 clk100ns=235757
INFO: Detected new Bluetooth baseband device 00:00:00:19:28:C7
*** Error in `/usr/bin/kismet_server': double free or corruption (out): 0x00007fffec000ac0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x730db)[0x7ffff67b70db]
/lib64/libc.so.6(+0x785ce)[0x7ffff67bc5ce]
/lib64/libc.so.6(+0x78dbb)[0x7ffff67bcdbb]
/usr/lib64/kismet/ubertooth.so(_ZN22PacketSource_Ubertooth4PollEv+0xab)[0x7ffff58a70fb]
/usr/bin/kismet_server(_ZN19Packetsourcetracker4PollER6fd_setS1_+0x31a)[0x468f7a]
/usr/bin/kismet_server(main+0x17ed)[0x42e99d]
/lib64/libc.so.6(__libc_start_main+0xf0)[0x7ffff6763fa0]
/usr/bin/kismet_server[0x42faa0]
======= Memory map: ========
00400000-005aa000 r-xp 00000000 08:02 6861207                            /usr/bin/kismet_server
007a9000-007aa000 r--p 001a9000 08:02 6861207                            /usr/bin/kismet_server
007aa000-007ad000 rw-p 001aa000 08:02 6861207                            /usr/bin/kismet_server
007ad000-00817000 rw-p 00000000 00:00 0                                  [heap]
7fffec000000-7fffec021000 rw-p 00000000 00:00 0 
7fffec021000-7ffff0000000 ---p 00000000 00:00 0 
7ffff2914000-7ffff2915000 ---p 00000000 00:00 0 
7ffff2915000-7ffff3115000 rw-p 00000000 00:00 0                          [stack:21185]
7ffff3115000-7ffff3116000 ---p 00000000 00:00 0 
7ffff3116000-7ffff3916000 rw-p 00000000 00:00 0                          [stack:21184]
7ffff3916000-7ffff392b000 r-xp 00000000 08:02 3020476                    /lib64/libz.so.1.2.8
7ffff392b000-7ffff3b2a000 ---p 00015000 08:02 3020476                    /lib64/libz.so.1.2.8
7ffff3b2a000-7ffff3b2b000 r--p 00014000 08:02 3020476                    /lib64/libz.so.1.2.8
7ffff3b2b000-7ffff3b2c000 rw-p 00015000 08:02 3020476                    /lib64/libz.so.1.2.8
7ffff3b2c000-7ffff3d37000 r-xp 00000000 08:02 6828741                    /usr/lib64/libcrypto.so.1.0.0
7ffff3d37000-7ffff3f36000 ---p 0020b000 08:02 6828741                    /usr/lib64/libcrypto.so.1.0.0
7ffff3f36000-7ffff3f52000 r--p 0020a000 08:02 6828741                    /usr/lib64/libcrypto.so.1.0.0
7ffff3f52000-7ffff3f5e000 rw-p 00226000 08:02 6828741                    /usr/lib64/libcrypto.so.1.0.0
7ffff3f5e000-7ffff3f61000 rw-p 00000000 00:00 0 
7ffff3f61000-7ffff3f74000 r-xp 00000000 08:02 7347906                    /usr/lib64/kismet/aircrack-kismet.so
7ffff3f74000-7ffff4173000 ---p 00013000 08:02 7347906                    /usr/lib64/kismet/aircrack-kismet.so
7ffff4173000-7ffff4174000 r--p 00012000 08:02 7347906                    /usr/lib64/kismet/aircrack-kismet.so
7ffff4174000-7ffff4175000 rw-p 00013000 08:02 7347906                    /usr/lib64/kismet/aircrack-kismet.so
7ffff4175000-7ffff4183000 rw-p 00000000 00:00 0 
7ffff4183000-7ffff418f000 r-xp 00000000 08:02 7348388                    /usr/lib64/kismet/spectool_net.so
7ffff418f000-7ffff438f000 ---p 0000c000 08:02 7348388                    /usr/lib64/kismet/spectool_net.so
7ffff438f000-7ffff4390000 r--p 0000c000 08:02 7348388                    /usr/lib64/kismet/spectool_net.so
7ffff4390000-7ffff4391000 rw-p 0000d000 08:02 7348388                    /usr/lib64/kismet/spectool_net.so
7ffff4391000-7ffff4396000 r-xp 00000000 08:02 7348389                    /usr/lib64/kismet/kismet-syslog.so
7ffff4396000-7ffff4596000 ---p 00005000 08:02 7348389                    /usr/lib64/kismet/kismet-syslog.so
7ffff4596000-7ffff4597000 r--p 00005000 08:02 7348389                    /usr/lib64/kismet/kismet-syslog.so
7ffff4597000-7ffff4598000 rw-p 00006000 08:02 7348389                    /usr/lib64/kismet/kismet-syslog.so
7ffff4598000-7ffff45b6000 r-xp 00000000 08:02 6849727                    /usr/lib64/libbluetooth.so.3.18.1
7ffff45b6000-7ffff47b5000 ---p 0001e000 08:02 6849727                    /usr/lib64/libbluetooth.so.3.18.1
7ffff47b5000-7ffff47b6000 r--p 0001d000 08:02 6849727                    /usr/lib64/libbluetooth.so.3.18.1
7ffff47b6000-7ffff47b9000 rw-p 0001e000 08:02 6849727                    /usr/lib64/libbluetooth.so.3.18.1
7ffff47b9000-7ffff47cc000 r-xp 00000000 08:02 7348217                    /usr/lib64/kismet/btscan.so
7ffff47cc000-7ffff49cc000 ---p 00013000 08:02 7348217                    /usr/lib64/kismet/btscan.so
7ffff49cc000-7ffff49cd000 r--p 00013000 08:02 7348217                    /usr/lib64/kismet/btscan.so
7ffff49cd000-7ffff49ce000 rw-p 00014000 08:02 7348217                    /usr/lib64/kismet/btscan.so
7ffff49ce000-7ffff49d5000 r-xp 00000000 08:02 7347951                    /usr/lib64/kismet/autowep-kismet.so
7ffff49d5000-7ffff4bd4000 ---p 00007000 08:02 7347951                    /usr/lib64/kismet/autowep-kismet.so
7ffff4bd4000-7ffff4bd5000 r--p 00006000 08:02 7347951                    /usr/lib64/kismet/autowep-kismet.so
7ffff4bd5000-7ffff4bd6000 rw-p 00007000 08:02 7347951                    /usr/lib64/kismet/autowep-kismet.so
7ffff4bd6000-7ffff4bda000 r-xp 00000000 08:02 3018580                    /lib64/libattr.so.1.1.0
7ffff4bda000-7ffff4dd9000 ---p 00004000 08:02 3018580                    /lib64/libattr.so.1.1.0
7ffff4dd9000-7ffff4dda000 r--p 00003000 08:02 3018580                    /lib64/libattr.so.1.1.0
7ffff4dda000-7ffff4ddb000 rw-p 00004000 08:02 3018580                    /lib64/libattr.so.1.1.0
7ffff4ddb000-7ffff4ddf000 r-xp 00000000 08:02 3020480                    /lib64/libcap.so.2.22
7ffff4ddf000-7ffff4fdf000 ---p 00004000 08:02 3020480                    /lib64/libcap.so.2.22
7ffff4fdf000-7ffff4fe0000 r--p 00004000 08:02 3020480                    /lib64/libcap.so.2.22
7ffff4fe0000-7ffff4fe1000 rw-p 00005000 08:02 3020480                    /lib64/libcap.so.2.22
7ffff4fe1000-7ffff4fe8000 r-xp 00000000 08:02 3018827                    /lib64/librt-2.20.so
7ffff4fe8000-7ffff51e7000 ---p 00007000 08:02 3018827                    /lib64/librt-2.20.so
7ffff51e7000-7ffff51e8000 r--p 00006000 08:02 3018827                    /lib64/librt-2.20.so
7ffff51e8000-7ffff51e9000 rw-p 00007000 08:02 3018827                    /lib64/librt-2.20.so
7ffff51e9000-7ffff51f1000 r-xp 00000000 08:02 6844907                    /usr/lib64/libubertooth.so.0.2
7ffff51f1000-7ffff53f1000 ---p 00008000 08:02 6844907                    /usr/lib64/libubertooth.so.0.2
7ffff53f1000-7ffff53f2000 r--p 00008000 08:02 6844907                    /usr/lib64/libubertooth.so.0.2
7ffff53f2000-7ffff53f3000 rw-p 00009000 08:02 6844907                    /usr/lib64/libubertooth.so.0.2
7ffff53f3000-7ffff53f4000 rw-p 00000000 00:00 0 
7ffff53f4000-7ffff5404000 r-xp 00000000 08:02 6862312                    /usr/lib64/libbtbb.so.0.3
7ffff5404000-7ffff5603000 ---p 00010000 08:02 6862312                    /usr/lib64/libbtbb.so.0.3
7ffff5603000-7ffff5604000 r--p 0000f000 08:02 6862312                    /usr/lib64/libbtbb.so.0.3
7ffff5604000-7ffff5605000 rw-p 00010000 08:02 6862312                    /usr/lib64/libbtbb.so.0.3
7ffff5605000-7ffff5685000 rw-p 00000000 00:00 0 
7ffff5685000-7ffff569b000 r-xp 00000000 08:02 3020863                    /lib64/libusb-1.0.so.0.1.0
7ffff569b000-7ffff589b000 ---p 00016000 08:02 3020863                    /lib64/libusb-1.0.so.0.1.0
7ffff589b000-7ffff589c000 r--p 00016000 08:02 3020863                    /lib64/libusb-1.0.so.0.1.0
7ffff589c000-7ffff589d000 rw-p 00017000 08:02 3020863                    /lib64/libusb-1.0.so.0.1.0
7ffff589d000-7ffff58b1000 r-xp 00000000 08:02 7348216                    /usr/lib64/kismet/ubertooth.so
7ffff58b1000-7ffff5ab1000 ---p 00014000 08:02 7348216                    /usr/lib64/kismet/ubertooth.so
7ffff5ab1000-7ffff5ab2000 r--p 00014000 08:02 7348216                    /usr/lib64/kismet/ubertooth.so
7ffff5ab2000-7ffff5ab3000 rw-p 00015000 08:02 7348216                    /usr/lib64/kismet/ubertooth.so
7ffff5ab3000-7ffff5abe000 r-xp 00000000 08:02 3018834                    /lib64/libnss_files-2.20.so
7ffff5abe000-7ffff5cbd000 ---p 0000b000 08:02 3018834                    /lib64/libnss_files-2.20.so
7ffff5cbd000-7ffff5cbe000 r--p 0000a000 08:02 3018834                    /lib64/libnss_files-2.20.so
7ffff5cbe000-7ffff5cbf000 rw-p 0000b000 08:02 3018834                    /lib64/libnss_files-2.20.so
7ffff5cbf000-7ffff5cc9000 r-xp 00000000 08:02 3018835                    /lib64/libnss_nis-2.20.so
7ffff5cc9000-7ffff5ec8000 ---p 0000a000 08:02 3018835                    /lib64/libnss_nis-2.20.so
7ffff5ec8000-7ffff5ec9000 r--p 00009000 08:02 3018835                    /lib64/libnss_nis-2.20.so
7ffff5ec9000-7ffff5eca000 rw-p 0000a000 08:02 3018835                    /lib64/libnss_nis-2.20.so
7ffff5eca000-7ffff5edf000 r-xp 00000000 08:02 3018840                    /lib64/libnsl-2.20.so
7ffff5edf000-7ffff60de000 ---p 00015000 08:02 3018840                    /lib64/libnsl-2.20.so
7ffff60de000-7ffff60df000 r--p 00014000 08:02 3018840                    /lib64/libnsl-2.20.so
7ffff60df000-7ffff60e0000 rw-p 00015000 08:02 3018840                    /lib64/libnsl-2.20.so
7ffff60e0000-7ffff60e2000 rw-p 00000000 00:00 0 
7ffff60e2000-7ffff60e9000 r-xp 00000000 08:02 3018838                    /lib64/libnss_compat-2.20.so
7ffff60e9000-7ffff62e8000 ---p 00007000 08:02 3018838                    /lib64/libnss_compat-2.20.so
7ffff62e8000-7ffff62e9000 r--p 00006000 08:02 3018838                    /lib64/libnss_compat-2.20.so
7ffff62e9000-7ffff62ea000 rw-p 00007000 08:02 3018838                    /lib64/libnss_compat-2.20.so
7ffff62ea000-7ffff6328000 r-xp 00000000 08:02 6816765                    /usr/lib64/libdbus-1.so.3.8.11
7ffff6328000-7ffff6527000 ---p 0003e000 08:02 6816765                    /usr/lib64/libdbus-1.so.3.8.11
7ffff6527000-7ffff6528000 r--p 0003d000 08:02 6816765                    /usr/lib64/libdbus-1.so.3.8.11
7ffff6528000-7ffff6529000 rw-p 0003e000 08:02 6816765                    /usr/lib64/libdbus-1.so.3.8.11
7ffff6529000-7ffff653f000 r-xp 00000000 08:02 3018824                    /lib64/libpthread-2.20.so
7ffff653f000-7ffff673e000 ---p 00016000 08:02 3018824                    /lib64/libpthread-2.20.so
7ffff673e000-7ffff673f000 r--p 00015000 08:02 3018824                    /lib64/libpthread-2.20.so
7ffff673f000-7ffff6740000 rw-p 00016000 08:02 3018824                    /lib64/libpthread-2.20.so
7ffff6740000-7ffff6744000 rw-p 00000000 00:00 0 
7ffff6744000-7ffff68d7000 r-xp 00000000 08:02 3018887                    /lib64/libc-2.20.so
7ffff68d7000-7ffff6ad7000 ---p 00193000 08:02 3018887                    /lib64/libc-2.20.so
7ffff6ad7000-7ffff6adb000 r--p 00193000 08:02 3018887                    /lib64/libc-2.20.so
7ffff6adb000-7ffff6add000 rw-p 00197000 08:02 3018887                    /lib64/libc-2.20.so
7ffff6add000-7ffff6ae1000 rw-p 00000000 00:00 0 
7ffff6ae1000-7ffff6af6000 r-xp 00000000 08:02 1322882                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_s.so.1
7ffff6af6000-7ffff6cf6000 ---p 00015000 08:02 1322882                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_s.so.1
7ffff6cf6000-7ffff6cf7000 r--p 00015000 08:02 1322882                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_s.so.1
7ffff6cf7000-7ffff6cf8000 rw-p 00016000 08:02 1322882                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libgcc_s.so.1
7ffff6cf8000-7ffff6df2000 r-xp 00000000 08:02 3018795                    /lib64/libm-2.20.so
7ffff6df2000-7ffff6ff1000 ---p 000fa000 08:02 3018795                    /lib64/libm-2.20.so
7ffff6ff1000-7ffff6ff2000 r--p 000f9000 08:02 3018795                    /lib64/libm-2.20.so
7ffff6ff2000-7ffff6ff3000 rw-p 000fa000 08:02 3018795                    /lib64/libm-2.20.so
7ffff6ff3000-7ffff700f000 r-xp 00000000 08:02 6838916                    /usr/lib64/libnl-3.so.200.20.0
7ffff700f000-7ffff720f000 ---p 0001c000 08:02 6838916                    /usr/lib64/libnl-3.so.200.20.0
7ffff720f000-7ffff7211000 r--p 0001c000 08:02 6838916                    /usr/lib64/libnl-3.so.200.20.0
7ffff7211000-7ffff7212000 rw-p 0001e000 08:02 6838916                    /usr/lib64/libnl-3.so.200.20.0
7ffff7212000-7ffff7217000 r-xp 00000000 08:02 6874333                    /usr/lib64/libnl-genl-3.so.200.20.0
7ffff7217000-7ffff7416000 ---p 00005000 08:02 6874333                    /usr/lib64/libnl-genl-3.so.200.20.0
7ffff7416000-7ffff7417000 r--p 00004000 08:02 6874333                    /usr/lib64/libnl-genl-3.so.200.20.0
7ffff7417000-7ffff7418000 rw-p 00005000 08:02 6874333                    /usr/lib64/libnl-genl-3.so.200.20.0
7ffff7418000-7ffff7457000 r-xp 00000000 08:02 6850347                    /usr/lib64/libpcap.so.1.6.2
7ffff7457000-7ffff7657000 ---p 0003f000 08:02 6850347                    /usr/lib64/libpcap.so.1.6.2
7ffff7657000-7ffff7659000 r--p 0003f000 08:02 6850347                    /usr/lib64/libpcap.so.1.6.2
7ffff7659000-7ffff765a000 rw-p 00041000 08:02 6850347                    /usr/lib64/libpcap.so.1.6.2
7ffff765a000-7ffff765b000 rw-p 00000000 00:00 0 
7ffff765b000-7ffff774c000 r-xp 00000000 08:02 1322925                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libstdc++.so.6.0.20
7ffff774c000-7ffff794c000 ---p 000f1000 08:02 1322925                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libstdc++.so.6.0.20
7ffff794c000-7ffff7954000 r--p 000f1000 08:02 1322925                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libstdc++.so.6.0.20
7ffff7954000-7ffff7956000 rw-p 000f9000 08:02 1322925                    /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/libstdc++.so.6.0.20
7ffff7956000-7ffff796b000 rw-p 00000000 00:00 0 
7ffff796b000-7ffff79d5000 r-xp 00000000 08:02 3014709                    /lib64/libpcre.so.1.2.4
7ffff79d5000-7ffff7bd5000 ---p 0006a000 08:02 3014709                    /lib64/libpcre.so.1.2.4
7ffff7bd5000-7ffff7bd6000 r--p 0006a000 08:02 3014709                    /lib64/libpcre.so.1.2.4
7ffff7bd6000-7ffff7bd7000 rw-p 0006b000 08:02 3014709                    /lib64/libpcre.so.1.2.4
7ffff7bd7000-7ffff7bd9000 r-xp 00000000 08:02 3018802                    /lib64/libdl-2.20.so
7ffff7bd9000-7ffff7dd9000 ---p 00002000 08:02 3018802                    /lib64/libdl-2.20.so
7ffff7dd9000-7ffff7dda000 r--p 00002000 08:02 3018802                    /lib64/libdl-2.20.so
7ffff7dda000-7ffff7ddb000 rw-p 00003000 08:02 3018802                    /lib64/libdl-2.20.so
7ffff7ddb000-7ffff7dfd000 r-xp 00000000 08:02 3018886                    /lib64/ld-2.20.so
7ffff7f43000-7ffff7fb3000 rw-p 00000000 00:00 0 
7ffff7fdb000-7ffff7fe0000 rw-p 00000000 00:00 0 
7ffff7fe0000-7ffff7ff4000 r-xp 00000000 08:02 6869250                    /usr/lib64/libudev.so.1.6.2
7ffff7ff4000-7ffff7ff5000 r--p 00013000 08:02 6869250                    /usr/lib64/libudev.so.1.6.2
7ffff7ff5000-7ffff7ff6000 rw-p 00014000 08:02 6869250                    /usr/lib64/libudev.so.1.6.2
7ffff7ff6000-7ffff7ff8000 rw-p 00000000 00:00 0 
7ffff7ff8000-7ffff7ffa000 r--p 00000000 00:00 0                          [vvar]
7ffff7ffa000-7ffff7ffc000 r-xp 00000000 00:00 0                          [vdso]
7ffff7ffc000-7ffff7ffd000 r--p 00021000 08:02 3018886                    /lib64/ld-2.20.so
7ffff7ffd000-7ffff7ffe000 rw-p 00022000 08:02 3018886                    /lib64/ld-2.20.so
7ffff7ffe000-7ffff7fff000 rw-p 00000000 00:00 0 
7ffffffdd000-7ffffffff000 rw-p 00000000 00:00 0                          [stack]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

Program received signal SIGABRT, Aborted.
0x00007ffff6777a27 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
55  ../sysdeps/unix/sysv/linux/raise.c: No such file or directory.

(gdb) bt full
#0  0x00007ffff6777a27 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
        resultvar = 0
        pid = 21179
        selftid = 21179
#1  0x00007ffff6778dba in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x64765b2020202020, sa_sigaction = 0x64765b2020202020}, sa_mask = {__val = {7378697426076266355, 3472328516180522854, 7365468305578407725, 
              3274715270390768742, 3544948840217997357, 3475151841819373616, 4051049648732971058, 2314885530818453558, 2314885530818453536, 7596498486491619360, 3615656491659572834, 3966104962339975726, 
              7234582239544501862, 7378697426660503600, 3472328524770457446, 0}}, sa_flags = 95, sa_restorer = 0x7fffffffcd70}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff67b70e0 in __libc_message (do_abort=do_abort@entry=2, fmt=fmt@entry=0x7ffff68ab438 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
        ap = {{gp_offset = 40, fp_offset = 0, overflow_arg_area = 0x7fffffffcd80, reg_save_area = 0x7fffffffcd10}}
        fd = 11
        on_2 = <optimized out>
        list = <optimized out>
        nlist = <optimized out>
        cp = <optimized out>
        written = <optimized out>
#3  0x00007ffff67bc5ce in malloc_printerr (action=3, str=0x7ffff68ab590 "double free or corruption (out)", ptr=<optimized out>) at malloc.c:4958
        buf = "00007fffec000ac0"
        cp = <optimized out>
#4  0x00007ffff67bcdbb in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3829
        size = <optimized out>
        fb = <optimized out>
        nextchunk = <optimized out>
        nextsize = <optimized out>
        nextinuse = <optimized out>
        prevsize = <optimized out>
        bck = <optimized out>
        fwd = <optimized out>
        errstr = <optimized out>
        locked = <optimized out>
        __func__ = "_int_free"
#5  0x00007ffff58a70fb in PacketSource_Ubertooth::Poll (this=0x7ffff7f43010) at packetsource_ubertooth.cc:508
        newpack = 0x7bb570
        pkt = 0x7fffec000ac0
        rawchunk = 0x7dcd50
        x = 0
        rx = 98 'b'
        read_size = <optimized out>
        process_packet = <optimized out>
#6  0x0000000000468f7a in Packetsourcetracker::Poll (this=0x7b9180, in_rset=..., in_wset=...) at packetsourcetracker.cc:629
        capd = 27
        x = {first = 1, second = }
#7  0x000000000042e99d in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at kismet_server.cc:1327
        x = 2
        startroot = <optimized out>
        rset = {fds_bits = {134217728, 0 <repeats 15 times>}}
        wset = {fds_bits = {0 <repeats 16 times>}}
        nlwc = <optimized out>
        hdwc = <optimized out>
        chantracker = <optimized out>
        configfilename = <optimized out>
        option_idx = 0
        startup_ipc_id = 6
...

'make plugins' fails to runs on OS 10.7.5 "-bundle not allowed with -dynamiclib"

PLUGIN: plugin-alertsyslog/
g++ -bundle -flat_namespace -undefined suppress  -framework Foundation -framework CoreFoundation -F/System/Library/PrivateFrameworks -framework Apple80211 -framework IOKit -rdynamic -shared -rdynamic alertsyslog.o -o alertsyslog.so -ldl -lpcre -lstdc++ 
i686-apple-darwin11-llvm-g++-4.2: -bundle not allowed with -dynamiclib
make[1]: *** [alertsyslog.so] Error 1

PLUGIN: plugin-btscan/
g++ -bundle -flat_namespace -undefined suppress  -framework Foundation -framework CoreFoundation -F/System/Library/PrivateFrameworks -framework Apple80211 -framework IOKit -rdynamic -shared -rdynamic packetsource_linuxbt.o tracker_btscan.o dumpfile_btscantxt.o kismet_btscan.o -o btscan.so -ldl -lpcre -lstdc++ -lbluetooth -lpthread
i686-apple-darwin11-llvm-g++-4.2: -bundle not allowed with -dynamiclib
make[1]: *** [btscan.so] Error 1

PLUGIN: plugin-spectools/
g++ -bundle -flat_namespace -undefined suppress  -framework Foundation -framework CoreFoundation -F/System/Library/PrivateFrameworks -framework Apple80211 -framework IOKit -rdynamic -shared -rdynamic spectool_netclient.o spectool_kismet.o -o spectool_net.so -ldl -lpcre -lstdc++ 
i686-apple-darwin11-llvm-g++-4.2: -bundle not allowed with -dynamiclib
make[1]: *** [spectool_net.so] Error 1

PLUGIN: plugin-syslog/
g++ -bundle -flat_namespace -undefined suppress  -framework Foundation -framework CoreFoundation -F/System/Library/PrivateFrameworks -framework Apple80211 -framework IOKit -rdynamic -shared -rdynamic kismet-syslog.o -o kismet-syslog.so -ldl -lpcre -lstdc++ 
i686-apple-darwin11-llvm-g++-4.2: -bundle not allowed with -dynamiclib
make[1]: *** [kismet-syslog.so] Error 1

make: *** [plugins] Error 2

The rest of kismet installs fine with 'sudo make suidinstall'.

UAP discovery broken

Git HEAD doesn't discover UAP for a given sample file that Josh sent to me. 2012-10-R1 Finds the UAP within the first ~15 packets.

Kismet server exited unexpectedly with error 0

Hi everyone!

yesterday I installed the newest ubertooth tools and fetched the current kismet installation. I'm working with Kali Linux in a Virtual Machine (VMware Fusion) on a MacBook.

I have an issue with the ubertooth when running kismet. If i use ubertooth-btle or ubertooth-specan-ui it shows me everything as expected.

Here is what I see when kismet is launched:
screenshot from 2014-10-09 08 59 15

If I take an other Bluetooth device (in this case the Apple iPhone) and do a Bluetooth scan with it, the kismet server crashes and no packets are captured:
screenshot from 2014-10-09 09 09 36

Have you any hint for me what I'm doing wrong? If you need further Information don't hesitate to ask! Thank yo in advance for your help!

Seetting up btbb with Wireshark

@mikeryan I've decided to make a separate ticket from #55 for the Wireshark configuration since I can't really get how it's supposed to work. It's probably one small detail I'm missing but the packet parsing seems not to be working on my side. I've just rebuilt the btbb.so from master branch ob libbtbb repository and followed the instructions from ubertooth wiki Wireshark setup section.

What I've got after building btbb.so is a file exactly the same size as one built from libbtbb-2014-02-R4 release:

$ ls -la /usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.1
...
-rw-r--r-- 1 root root 123024 lut 18 10:38 btbb.so
-rw-r--r-- 1 root root 123024 lut 17 12:48 btbb.so-old
...

I first thought that it might actually be the same file but checksums seem to differ:

$ sudo md5sum /usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.1/btbb.so
e42bc1c54020ca56fa918778014b2ccd  /usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.1/btbb.so
$ sudo md5sum /usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.1/btbb.so-old 
c79c7f8c9324218d3f7ca58391a55ee1  /usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.1/btbb.so-old

In both cases of btbb I have only unparsed PPI packets shown in Wireshark:
wireshark PPI only

I even tried running Wireshark as root but it's always PPI. Please, help me out :)

plugin-ubertooth compile fails

It fails when using latest Kismet source (commit 1e637714) from https://www.kismetwireless.net/gitweb/?p=kismet.git;a=summary

make[1]: Entering directory /xxx/ubertooth-2014-02-R2/host/kismet/plugin-ubertooth' g++ -pthread -I/usr/include/ncurses -Wall -g -O2 -I/home/silverk/util_src/kismet -I/usr/include/libusb-1.0 -I/usr/local/include/libusb-1.0 -I/usr/include -g -fPIC -c ubertooth_ui.cc -o ubertooth_ui.o ubertooth_ui.cc: In function ‘int panel_plugin_init(GlobalRegistry*, KisPanelPluginData*)’: ubertooth_ui.cc:208:40: error: ‘class Kis_Main_Panel’ has no member named ‘AddSortSeparator’ ubertooth_ui.cc: In function ‘void UbertoothProtoBTBBDEV(GlobalRegistry*, std::string, std::vector<smart_word_token>*, KisNetClient*, void*)’: ubertooth_ui.cc:372:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ubertooth_ui.cc: In function ‘int UbertoothDevlistCB(Kis_Panel_Component*, int, void*, GlobalRegistry*)’: ubertooth_ui.cc:577:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ubertooth_ui.cc: In function ‘int Ubertooth_Details_ButtonCB(Kis_Panel_Component*, int, void*, GlobalRegistry*)’: ubertooth_ui.cc:595:1: warning: no return statement in function returning non-void [-Wreturn-type] ubertooth_ui.cc: In member function ‘virtual void Ubertooth_Details_Panel::DrawPanel()’: ubertooth_ui.cc:640:6: warning: unused variable ‘selected’ [-Wunused-variable] make[1]: *** [ubertooth_ui.o] Error 1 make[1]: Leaving directory/xxx/ubertooth-2014-02-R2/host/kismet/plugin-ubertooth'
make: *** [plugins] Error 2cd

Error while cross compiling wireshark plugins

Hi,

I've been following the instructions contained here: https://github.com/greatscottgadgets/ubertooth/wiki/Build-Guide

But, when I'm installing the plugin for Wireshark, I'm basically obtaining the following error:

seb@penetraitor:~/tools/ubertooth/libbtbb-2014-02-R2/wireshark/plugins/btbb$ cmake .
-- Plugin will be installed in: /usr/lib/x86_64-linux-gnu/wireshark/libwireshark3/plugins
CMake Error at cmake/FindWireshark.cmake:26 (MESSAGE):
  Could NOT find the wireshark library and headers
Call Stack (most recent call first):
  CMakeLists.txt:42 (find_package)


CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
WIRESHARK_INCLUDE_DIRS
   used as include directory in directory /home/seb/tools/ubertooth/libbtbb-2014-02-R2/wireshark/plugins/btbb

-- Configuring incomplete, errors occurred!

Any idea?

Thanks,

Can't install on Mac - Mavericks

Thanks for all the work that has resulted in your recent release! I bought an Ubertooth One, and have followed the Build Guide. I get through all the steps including the libbtbb build with no problems. I have tried a couple times to install the Ubertooth Tools, but get some errors (below). Any help you have would be appreciated - I know using a Mac is not ideal, but it's all I've got :-)

libbtbb $ tar xf ubertooth-2014-02-R2.tar.gz
libbtbb $ cd ubertooth-2014-02-R2/host
host $ mkdir build
host $ cd build
build $ cmake ..
-- The C compiler identification is AppleClang 5.1.0.5030040
-- The CXX compiler identification is AppleClang 5.1.0.5030040
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Found LIBBTBB: /usr/local/lib/libbtbb.dylib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find LIBUSB (missing: LIBUSB_INCLUDE_DIR)
-- Pcap include dirs set to /usr/include
-- Pcap library set to /usr/lib/libpcap.dylib
-- Looking for pcap_version
-- Looking for pcap_version - found
-- Looking for pcap_open_dead
-- Looking for pcap_open_dead - found
-- Looking for pcap_freecode
-- Looking for pcap_freecode - found
-- Looking for pcap_breakloop
-- Looking for pcap_breakloop - found
-- Looking for pcap_create
-- Looking for pcap_create - found
-- Looking for pcap_datalink_name_to_val
-- Looking for pcap_datalink_name_to_val - found
-- Looking for pcap_datalink_val_to_description
-- Looking for pcap_datalink_val_to_description - found
-- Looking for pcap_datalink_val_to_name
-- Looking for pcap_datalink_val_to_name - found
-- Looking for pcap_findalldevs
-- Looking for pcap_findalldevs - found
-- Looking for pcap_free_datalinks
-- Looking for pcap_free_datalinks - found
-- Looking for pcap_get_selectable_fd
-- Looking for pcap_get_selectable_fd - found
-- Looking for pcap_lib_version
-- Looking for pcap_lib_version - found
-- Looking for pcap_list_datalinks
-- Looking for pcap_list_datalinks - found
-- Looking for pcap_set_datalink
-- Looking for pcap_set_datalink - found
-- Looking for pcap_open
-- Looking for pcap_open - not found
-- Looking for pcap_findalldevs_ex
-- Looking for pcap_findalldevs_ex - not found
-- Looking for pcap_createsrcstr
-- Looking for pcap_createsrcstr - not found
-- Found PCAP: /usr/include
-- Pcap include dirs set to /usr/include
-- Pcap library set to /usr/lib/libpcap.dylib
-- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
-- Could NOT find LIBBLUETOOTH (missing: LIBBLUETOOTH_LIBRARIES LIBBLUETOOTH_INCLUDE_DIR)
-- Found PythonInterp: /usr/bin/python (found version "2.7.5")
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
LIBUSB_INCLUDE_DIR (ADVANCED)
used as include directory in directory /Users/jeff/libbtbb/ubertooth-2014-02-R2/host/libubertooth/src
used as include directory in directory /Users/jeff/libbtbb/ubertooth-2014-02-R2/host/ubertooth-tools/src
used as include directory in directory /Users/jeff/libbtbb/ubertooth-2014-02-R2/host/ubertooth-tools/src
used as include directory in directory /Users/jeff/libbtbb/ubertooth-2014-02-R2/host/ubertooth-tools/src
used as include directory in directory /Users/jeff/libbtbb/ubertooth-2014-02-R2/host/ubertooth-tools/src
used as include directory in directory /Users/jeff/libbtbb/ubertooth-2014-02-R2/host/ubertooth-tools/src

-- Configuring incomplete, errors occurred!
See also "/Users/jeff/libbtbb/ubertooth-2014-02-R2/host/build/CMakeFiles/CMakeOutput.log".
See also "/Users/jeff/libbtbb/ubertooth-2014-02-R2/host/build/CMakeFiles/CMakeError.log".

Can't use ubertooth-scan -U<#> with multiple Ubertooth Ones

::Version 2014-04-R1::
::ubertooth git-4412704 (dominicgs@mercury) Wed Jan 29 20:38:22 GMT 2014::

I'm attempting to run ubertooth-scan with multiple Ubertooth Ones plugged in and the software is failing.
Obviously I get the standard, "multiple Ubertooth devices found! Use '-U' to specify device number" message if I don't indicate the -U option. However, adding the -U option returns, "ubertooth-scan: invalid option -- 'U'".

Thanks. --Truitt

ubertooth-btle channel map support

If the host sends a LL_CHANNEL_MAP_REQ the ubertooth can not follow the connection anymore. This happens because the ubertooth does not register the new channel map which is a part of the LL_CHANNEL_MAP_REQ data packet. If the slave confirms the new channel map request the ubertooth is out of sync and stops following. The LL_CHANNEL_MAP_REQ consists of:

  • channel map (ChM) / 5 octets
  • Instant / 2 octets

(see Bluetooth Specification v.4.0 / 2.4.2.2 LL_CHANNEL_MAP_REQ / p.2212)

For example it could be: ff:07:c0:ff:1f:58:00

  • ff:07:c0:ff:1f Channel map (ChM)
  • 58:00 Instant

Each bit of the channel map represents a channel (1=used, 0=unused):

Channel 38 ---------------------------------- Channel 0
11111111-00000111-11000000-11111111-00011111

Example leads to the following active / used channels: 1-4, 8-15, 22-26, 32-37.
(Adv. channels are already excluded)

Next channel hop: If there has been a channel map update the next channel hop (in btle_next_hop) has to be calculated different. The Bluetooth specification says if the calculated channel is an unused channel we have to use a different algorithm:

remappingIndex = unmappedChannel mod numUsedChannels

  • numUsedChannels = number of used channels in the channel map.
  • This would be 23 used channel for the example above.

(see Bluetooth Specification v.4.0 / 4.5.8.2 Channel Selection / p.2238)

I added some thoughts to the end of this post. Actually i did some changes at bluetooth_le.h, bluetooth_le.c and bluetooth_rxtx.c. It's just a starting point for discussions and some tests :)

see: branch channel_map_support


Additional stuff:

  • The Opcode for LL_CHANNEL_MAP_REQ is 0x01.

Some easy thoughts:

btle_next_hop
connection_follow_cb

Ubertooth-follow reports incorrect channel

The ubertooth-follow tool always reports the channel as 0 even though it is apparently hopping.

We (I) need to check if this is misreporting of the channel, as I suspect it is, or if it's really not hopping at all.

Example output:

~$ sudo ubertooth-follow -b hci0 -l abcdef -u 63 -w 7
Address given, assuming address is remote
Address: 00:00:63:ab:cd:ef
systime=1420555476 ch= 0 LAP=abcdef err=0 clk100ns=1515019001 clk1=3912419 s=-22 n=-89 snr=67
Packet decoded with clock 0x40 (rv=1)
  Type: NULL
  Type: NULL
systime=1420555477 ch= 0 LAP=abcdef err=0 clk100ns=1517030440 clk1=3912741 s=-23 n=-89 snr=66
Packet decoded with clock 0x40 (rv=1)
  Type: NULL
  Type: NULL
systime=1420555477 ch= 0 LAP=abcdef err=1 clk100ns=1519843799 clk1=3913191 s=-73 n=-87 snr=14
Packet decoded with clock 0x40 (rv=0)
  Type: DM5/2-DH5
  Data:  63 81 1e f8 f7 75 7e 51 f2 cb d1 0a f8 86 6f b4 93 c3 ed 0c e2 37 4a 8a f4 ad 3c 03 04 83 4f eb c2 bf dc 1f b8 c6 71 54 eb a9 fb b2 49 10 72 8e
  Type: DM5/2-DH5
  Data:  63 81 1e f8 f7 75 7e 51 f2 cb d1 0a f8 86 6f b4 93 c3 ed 0c e2 37 4a 8a f4 ad 3c 03 04 83 4f eb c2 bf dc 1f b8 c6 71 54 eb a9 fb b2 49 10 72 8e
systime=1420555477 ch= 0 LAP=abcdef err=2 clk100ns=1521224669 clk1=3913412 s=-57 n=-87 snr=30
Packet decoded with clock 0x40 (rv=1)
  Type: NULL
  Type: NULL
systime=1420555480 ch= 0 LAP=abcdef err=1 clk100ns=1554931587 clk1=3918805 s=-77 n=-89 snr=12
Packet decoded with clock 0x40 (rv=1)
  Type: NULL
  Type: NULL
systime=1420555481 ch= 0 LAP=abcdef err=0 clk100ns=1557894208 clk1=3919279 s=-22 n=-85 snr=63
Packet decoded with clock 0x40 (rv=0)
  Type: DM5/2-DH5
  Data:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0 ff 60 22 6b 78 ef fd f8 b1 0a fc f8 0f fc ff 8f c7 c5 fd 1f 4c a1 1d c0 4e 30 09 d8 61 ff 1d 21 c8 5a 61 7e 1d e2 cd c8 07
  Type: DM5/2-DH5
  Data:  00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0 ff 60 22 6b 78 ef fd f8 b1 0a fc f8 0f fc ff 8f c7 c5 fd 1f 4c a1 1d c0 4e 30 09 d8 61 ff 1d 21 c8 5a 61 7e 1d e2 cd c8 07

Named pipe, kismet OSX and Ubuntu freeeze

Hi,

I've been trying to set up Ubertooth with Wireshark on both OSX 10.10 and Ubuntu 14.10 under a VM. I've got through the tutorials and actually got some data into wireshark but the scanning fails very quickly.
I've got a few questions regarding the whole setup:

  1. The whole scanning freezes after ~5 seconds on native OSX and around 60 sec in a VM. This is a bit awkward. How could i make the scanning process work for longer than that?
  2. Trying to run kismet under Ubuntu caused a "uh oh, full_buf not emptied" error quite fast.
  3. I get a segfault sometimes with kismet server. dmesg output shows:
[  411.271988] kismet_server[2752]: segfault at 200 ip 00007fae5b4e0b79 sp 00007fae59fede00 error 4 in libusb-1.0.so.0.1.0[7fae5b4d8000+15000]
[  454.429413] atkbd serio0: Spurious NAK on isa0060/serio0. Some program might be trying to access hardware directly.
  1. The ubertooth-specan-ui program seems to work fine without freezing for 2 minutes. What's the difference between it and the mkfifo tmp/pipe approach?
  2. When Wireshark works it doesn't show "source" and "destination" addresses even though they are shown in the packet details view (in OSX). How do I get to display these values?
  3. Under Ubuntu The protocol column shows "PPI". What is that and where it be changed?

find_package(PCAP) commented out

I submitted #39 to fix this.

In commit number 00b38e6 host/libubertooth/src/CMakeLists.txt
was modified like bellow:
-find_package(PCAP)
+#find_package(PCAP)

I don't know if that is intentional but any attempt to build cleanly on debian now results in:
CMakeFiles/ubertooth-btle.dir/ubertooth-btle.c.o: In function main': ubertooth-btle.c:(.text+0x439): undefined reference toh_pcap_le'
ubertooth-btle.c:(.text+0x44a): undefined reference to h_pcap_le' ubertooth-btle.c:(.text+0x493): undefined reference toh_pcap_le'
ubertooth-btle.c:(.text+0x4a4): undefined reference to `h_pcap_le'
collect2: error: ld returned 1 exit status
make[2]: *** [ubertooth-tools/src/ubertooth-btle] Error 1
make[1]: *** [ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/all] Error 2
make: *** [all] Error 2

uncommenting it fixes everything.

Building host utils from source

Hi,

While trying to figure out what's wrong with my setup in #55 I've built the firmware from latest checkout from master branch. The firmware built without any problems but I've also attempted to build latest host utils and it seems that the dependancies are different than in build 2014-02-R2.

Whan I build host utils form 2014-02-R2 i get the following output:

$ make
Scanning dependencies of target ubertooth
[  7%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o
[ 15%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth_control.c.o
Linking C shared library libubertooth.so
[ 15%] Built target ubertooth
Scanning dependencies of target ubertooth-btle
[ 23%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/ubertooth-btle.c.o
Linking C executable ubertooth-btle
[ 23%] Built target ubertooth-btle
Scanning dependencies of target ubertooth-debug
[ 30%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-debug.dir/ubertooth-debug.c.o
[ 38%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-debug.dir/cc2400.c.o
[ 46%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-debug.dir/arglist.c.o
Linking C executable ubertooth-debug
[ 46%] Built target ubertooth-debug
Scanning dependencies of target ubertooth-dump
[ 53%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-dump.dir/ubertooth-dump.c.o
Linking C executable ubertooth-dump
[ 53%] Built target ubertooth-dump
Scanning dependencies of target ubertooth-follow
[ 61%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-follow.dir/ubertooth-follow.c.o
Linking C executable ubertooth-follow
[ 61%] Built target ubertooth-follow
Scanning dependencies of target ubertooth-rx
[ 69%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-rx.dir/ubertooth-rx.c.o
Linking C executable ubertooth-rx
[ 69%] Built target ubertooth-rx
Scanning dependencies of target ubertooth-scan
[ 76%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-scan.dir/ubertooth-scan.c.o
Linking C executable ubertooth-scan
[ 76%] Built target ubertooth-scan
Scanning dependencies of target ubertooth-util
[ 84%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-util.dir/ubertooth-util.c.o
Linking C executable ubertooth-util
[ 84%] Built target ubertooth-util
Scanning dependencies of target specan
[ 92%] Generating build/timestamp
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/specan
copying /home/pb/Desktop/ubertooth/ubertooth-2014-02-R2/host/python/specan_ui/specan/Ubertooth.py -> build/lib.linux-x86_64-2.7/specan
copying /home/pb/Desktop/ubertooth/ubertooth-2014-02-R2/host/python/specan_ui/specan/__init__.py -> build/lib.linux-x86_64-2.7/specan
[ 92%] Built target specan
Scanning dependencies of target ubertooth-specan-ui
[ 92%] Built target ubertooth-specan-ui
Scanning dependencies of target dfu
[100%] Generating build/timestamp
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/dfu
copying /home/pb/Desktop/ubertooth/ubertooth-2014-02-R2/host/python/usb_dfu/dfu/__init__.py -> build/lib.linux-x86_64-2.7/dfu
copying /home/pb/Desktop/ubertooth/ubertooth-2014-02-R2/host/python/usb_dfu/dfu/dfu.py -> build/lib.linux-x86_64-2.7/dfu
[100%] Built target dfu
Scanning dependencies of target ubertooth-dfu
[100%] Built target ubertooth-dfu

When I try from git sources I get:

$ make
Scanning dependencies of target ubertooth
[  7%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o
In file included from /home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:30:0:
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.h:67:8: error: unknown type name ‘btbb_pcap_handle’
 extern btbb_pcap_handle * h_pcap_bredr;
        ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.h:68:8: error: unknown type name ‘lell_pcap_handle’
 extern lell_pcap_handle * h_pcap_le;
        ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.h:70:8: error: unknown type name ‘btbb_pcapng_handle’
 extern btbb_pcapng_handle * h_pcapng_bredr;
        ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.h:71:8: error: unknown type name ‘lell_pcapng_handle’
 extern lell_pcapng_handle * h_pcapng_le;
        ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:62:1: error: unknown type name ‘btbb_pcap_handle’
 btbb_pcap_handle * h_pcap_bredr = NULL;
 ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:63:1: error: unknown type name ‘lell_pcap_handle’
 lell_pcap_handle * h_pcap_le = NULL;
 ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:65:1: error: unknown type name ‘btbb_pcapng_handle’
 btbb_pcapng_handle * h_pcapng_bredr = NULL;
 ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:66:1: error: unknown type name ‘lell_pcapng_handle’
 lell_pcapng_handle * h_pcapng_le = NULL;
 ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c: In function ‘print_version’:
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:70:6: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat=]
      btbb_get_version(), btbb_get_release());
      ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:70:6: warning: format ‘%s’ expects argument of type ‘char *’, but argument 5 has type ‘int’ [-Wformat=]
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c: In function ‘cb_br_rx’:
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:447:16: error: ‘UAP_ANY’ undeclared (first use in this function)
  uint8_t uap = UAP_ANY;
                ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:447:16: note: each undeclared identifier is reported only once for each function it appears in
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:488:34: error: ‘BTBB_MOD_GFSK’ undeclared (first use in this function)
  btbb_packet_set_modulation(pkt, BTBB_MOD_GFSK);
                                  ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:489:33: error: ‘BTBB_TRANSPORT_ANY’ undeclared (first use in this function)
  btbb_packet_set_transport(pkt, BTBB_TRANSPORT_ANY);
                                 ^
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c: In function ‘cb_btle’:
/home/pb/Desktop/ubertooth/ubertooth/host/libubertooth/src/ubertooth.c:609:2: error: unknown type name ‘lell_packet’
  lell_packet * pkt;
  ^
libubertooth/src/CMakeFiles/ubertooth.dir/build.make:54: recipe for target 'libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o' failed
make[2]: *** [libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o] Error 1
CMakeFiles/Makefile2:121: recipe for target 'libubertooth/src/CMakeFiles/ubertooth.dir/all' failed
make[1]: *** [libubertooth/src/CMakeFiles/ubertooth.dir/all] Error 2
Makefile:113: recipe for target 'all' failed
make: *** [all] Error 2

Should I get some other version of libbtbb?

Issues with getting ubertooth one to work in kismet - ubuntu 14.04

Hi there,

I've followed the wiki for the installation of the ubertooth one tools and then compiled and installed kismet as per these instructions:

sudo apt-get install libpcap0.8-dev libcap-dev pkg-config build-essential libnl-dev libncurses-dev libpcre3-dev libpcap-dev libcap-dev
wget https://kismetwireless.net/code/kismet-2013-03-R1b.tar.xz
tar xf kismet-2013-03-R1b.tar.xz
cd kismet-2013-03-R1b
ln -s ../ubertooth-2014-02-R2/host/kismet/plugin-ubertooth .
./configure
make && make plugins
sudo make suidinstall
sudo make plugins-install
Add "pcapbtbb" to the "logtypes=..." line in kismet.conf

But kismet still doesn't recongnise the ubertooth as a source and there is no ubertooth plugin to select in the plugins list.

Has anyone managed to get this working in Ubuntu 14.04 LTS and can they share how please?

Many thanks!

ubertooth-specan-ui requires more modules to be installed

You might want to add some additional instructions for installing the modules needed to run ubertooth-specan-ui. I had to do:

sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nos
sudo apt-get install python-qt4
sudo apt-get install python-pyside

It's working now and I am very excited!

Add version numbers to commandline tools

It would be nice to have version numbers added to the tools in the same way that we add them to the firmware. Running ubertooth-rx -v would give the output for Ubertooth and probably libbtbb, e.g. Ubertooth 2014-02-R2, libbtbb 2014-02-R2 or Ubertooth git-ae7923f, libbtbb git-83b7ca6.

Issue Compiling Ubertooth on ubuntu.

Previously had everything running 2012 version. ran cleanup.sh, new libtbb, everything compiled and installed fine. issue is after cmake .. on ubertooth/host/build.
output is below. any info would be awesome!

root@ubuntu:build# cmake ..
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found LIBBTBB: /usr/local/lib/libbtbb.so
-- checking for module 'libusb-1.0'
-- found libusb-1.0, version 1.0.8
-- Found LIBUSB: /usr/lib/i386-linux-gnu/libusb-1.0.so
-- Pcap include dirs set to /usr/include
-- Pcap library set to /usr/lib/i386-linux-gnu/libpcap.so
-- Looking for pcap_version
-- Looking for pcap_version - found
-- Looking for pcap_open_dead
-- Looking for pcap_open_dead - found
-- Looking for pcap_freecode
-- Looking for pcap_freecode - found
-- Looking for pcap_breakloop
-- Looking for pcap_breakloop - found
-- Looking for pcap_create
-- Looking for pcap_create - found
-- Looking for pcap_datalink_name_to_val
-- Looking for pcap_datalink_name_to_val - found
-- Looking for pcap_datalink_val_to_description
-- Looking for pcap_datalink_val_to_description - found
-- Looking for pcap_datalink_val_to_name
-- Looking for pcap_datalink_val_to_name - found
-- Looking for pcap_findalldevs
-- Looking for pcap_findalldevs - found
-- Looking for pcap_free_datalinks
-- Looking for pcap_free_datalinks - found
-- Looking for pcap_get_selectable_fd
-- Looking for pcap_get_selectable_fd - found
-- Looking for pcap_lib_version
-- Looking for pcap_lib_version - found
-- Looking for pcap_list_datalinks
-- Looking for pcap_list_datalinks - found
-- Looking for pcap_set_datalink
-- Looking for pcap_set_datalink - found
-- Looking for pcap_open
-- Looking for pcap_open - not found
-- Looking for pcap_findalldevs_ex
-- Looking for pcap_findalldevs_ex - not found
-- Looking for pcap_createsrcstr
-- Looking for pcap_createsrcstr - not found
-- Found PCAP: /usr/include
-- Pcap include dirs set to /usr/include
-- Pcap library set to /usr/lib/i386-linux-gnu/libpcap.so
-- checking for module 'bluez'
-- found bluez, version 4.96
-- Found LIBBLUETOOTH: /usr/lib/libbluetooth.so
-- Found PythonInterp: /usr/bin/python (found version "2.7.2")
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user-guy/ubertooth-2014-02-R1/host/build
root@ubuntu:build# make
Scanning dependencies of target ubertooth
[ 7%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o
/home/user-guy/ubertooth-2014-02-R1/host/libubertooth/src/ubertooth.c: In function ‘handle_events_wrapper’:
/home/user-guy/ubertooth-2014-02-R1/host/libubertooth/src/ubertooth.c:227:5: warning: format ‘%s’ expects argument of type ‘char ’, but argument 3 has type ‘int’ [-Wformat]
[ 15%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth_control.c.o
Linking C shared library libubertooth.so
[ 15%] Built target ubertooth
Scanning dependencies of target ubertooth-btle
[ 23%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/ubertooth-btle.c.o
Linking C executable ubertooth-btle
../../libubertooth/src/libubertooth.so.0.2: undefined reference to `libusb_error_name'
collect2: ld returned 1 exit status
make[2]: *
* [ubertooth-tools/src/ubertooth-btle] Error 1
make[1]: *** [ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/all] Error 2
make: *** [all] Error 2

Max errors limit should apply to known LAPs

Seeing output like this when running ubertooth-rx -l cbb87a -i dumpfile.uber, using the file sent by Josh:

systime=1391437698 ch=12 LAP=cbb87a err=0 clk100ns=3052061829 clk1=8352650 s=-70 n=-87 snr=17
systime=1391437698 ch=12 LAP=cbb87a err=0 clk100ns=3052073824 clk1=8352652 s=-70 n=-87 snr=17
systime=1391437698 ch=12 LAP=cbb87a err=0 clk100ns=3052073824 clk1=8352652 s=-26 n=-87 snr=61

Three packets on the same channel - assuming the first one is valid and the next two are the same packets, perhaps one with errors and one without? If that's the case, we're mis-reporting the error count for known LAPs.

ubertooth-scan fails to find device

most all other ubertooth tools work fine, ubertooth-rx shows packets/etc, but ubertooth-scan just keeps reporting back:

root@raspberrypi:~# ubertooth-scan
opening socket: No such device

more info:


root@raspberrypi:~# ubertooth-util -v
Firmware revision: git-4412704
root@raspberrypi:~# ubertooth-util -V
ubertooth git-4412704 (dominicgs@mercury) Wed Jan 29 20:38:22 GMT 2014
root@raspberrypi:~#

android support

i made a request here mikeryan/crackle#4 (comment) and it would be possible to make an app for android to use ubertooth, i was thinking of having ubertooth connected to my nexus(nethunter) so would that be possible?

ubertooth-btle reports strange channels

This is what I get:

  • Set the channel to 2404
  • Start ubertooth-btle in promiscuous mode (-p)
  • Channel is 2440 (all the time)
ut@ut-VirtualBox ~ % ubertooth-util -V
ubertooth git-c9d3ed7 (ut@ut-VirtualBox) Do 12. Feb 17:21:12 CET 2015

ut@ut-VirtualBox ~ % ubertooth-util -r
Resetting ubertooth device number 0

ut@ut-VirtualBox ~ % ubertooth-util -c2402

ut@ut-VirtualBox ~ % ubertooth-util -c    
Current frequency: 2402 MHz (Bluetooth channel 0)

ut@ut-VirtualBox ~ % ubertooth-btle -p    
systime=1424861944 freq=2440 addr=f61f626a delta_t=15159.477 ms
01 00 99 f3 65 
Data / AA f61f626a (valid) /  0 bytes
    Channel Index: 17
    LLID: 1 / LL Data PDU / empty or L2CAP continuation
    NESN: 0  SN: 0  MD: 0

    Data: 
    CRC:   99 f3 65

systime=1424861944 freq=2440 addr=f61f626a delta_t=40.822 ms
01 00 99 f3 65 
Data / AA f61f626a (valid) /  0 bytes
    Channel Index: 17
    LLID: 1 / LL Data PDU / empty or L2CAP continuation
    NESN: 0  SN: 0  MD: 0

    Data: 
    CRC:   99 f3 65

[...]

^C
ut@ut-VirtualBox ~ % ubertooth-util -c    
Current frequency: 2440 MHz (Bluetooth channel 38)

Questions:

  • Why is ubertooth-btle not sniffing on 2404?
  • If it had found a connection and now follows it, why it the channel not hopping (always 2440).
  • Maybe related to #48 ?

btbb wirehshark complie issue on ubuntu 12.04

Hi,
I'm facing exactly the same issue reported in http://sourceforge.net/p/ubertooth/mailman/message/32050659/

I followed the suggestions in that issue by upgrading wireshark to latest version.
Here's the wireshark version i have wireshark 1.12.0 (Git Rev Unknown from unknown)

I don't have plans of upgrading my ubuntu to latest version hence I have to figure out someway to have this plugin working on ubuntu 12.04.

Any help would be highly appreciated.

Thanks,
Chandra

installing ubertooth- kali linux

i'm tring to install ubertooth on my vm kali linux. i followed the steps one by one.
first i had a problam with livusb:

"CheckFunctionExists.c:(.text+0x15): undefined reference to pcap_createsrcstr' make[1]: Leaving directory/root/ubertooth-2014-02-R2/host/build/CMakeFiles/CMakeTmp'
collect2: error: ld returned 1 exit status
make[1]: *** [cmTryCompileExec1385275149] Error 1
make: *** [cmTryCompileExec1385275149/fast] Error 2
"

so i installed manually libusb 1.0.9.

now i'm have other error in compilling.
the error:
root@kali:/ubertooth-2014-02-R2/host/build# cmake ..
FATAL Pcap include dirs cannot be found
FATALPcap library cannot be found
-- Could NOT find PCAP (missing: PCAP_INCLUDE_DIRS PCAP_LIBRARIES)
FATAL Pcap include dirs cannot be found
FATALPcap library cannot be found
-- Could NOT find PCAP (missing: PCAP_INCLUDE_DIRS PCAP_LIBRARIES)
-- Configuring done
-- Generating done
-- Build files have been written to: /root/ubertooth-2014-02-R2/host/build
root@kali:
/ubertooth-2014-02-R2/host/build# make
[ 7%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o
/root/ubertooth-2014-02-R2/host/libubertooth/src/ubertooth.c:30:33: fatal error: bluetooth_le_packet.h: No such file or directory
compilation terminated.
make[2]: *** [libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o] Error 1
make[1]: *** [libubertooth/src/CMakeFiles/ubertooth.dir/all] Error 2
make: *** [all] Error 2
there is solution?

Stale documentation at SourceForge site

Hello Ubertooth Team,

I am very glad to be here with my Ubertooth in hand. I just wanted to perhaps suggest that the sourceforge documentation http://ubertooth.sourceforge.net/usage/build/ either update itself and/or link to the current instructions found in the GitHub wiki of this project.

The reason is, as a first time user I started compiling a stale version of the tools/libraries.. only just realizing near the end there were updates.

Ubertooth-rx "uh oh, full_buf not emptied"

After running "ubertooth-rx -l LAP" for several minutes and pressing "CTRL+C" to quit spits out endless "uh oh, full_buf not emptied" messages to the console.

Afterward, the Ubertooth One has to be removed and reinserted for use, otherwise a USB error is generated:

# ubertooth-rx
usb_claim_interface error -6
ubertooth-rx - passive Bluetooth discovery/decode

This is on Ubuntu 12.04, Ubertooth host and firmware code from git as of 2/3/14:

# ubertooth-util -v
Firmware revision: git-e3d85ca

BLE Follow-Mode loses sync after ignoring connection update requests

Sniffing a connection between an iPad 4 and a Garmin Oregon 600 device, the iPad connects, then reads services and characteristics, then does a Find Information Request for Handle 0x0009 (which is the Service Changed characteristic) and after that the packages in the pcap file start to be garbage, at least there are invalid LLIND's and Opcodes, and Wireshark cannot interpret it as ATT protocol anymore.

Issues with installing wireshark plugin in ubuntu 14.10 (Utopic)

Hi there,

I'm trying to get the wireshark plugin to work in ubuntu 14.10 (Utopic)... I have started following the guide by:

sudo apt-get install wireshark wireshark-dev libwireshark5 libwireshark-dev cmake

Please note that libwireshark3 is not in the repo, so had to get libwireshark5.

Then:

cd libbtbb-2014-02-R2/wireshark/plugins/btbb
mkdir build
cd build

I had to alter the DCMAKE_INSTALL_LIBDIR to:

cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.0 ..

But I get:

:~/libbtbb-2014-02-R2/wireshark/plugins/btbb/build$ cmake -DCMAKE_INSTALL_LIBDIR=/usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.0 ..
-- The C compiler identification is GNU 4.9.1
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Plugin will be installed in: /usr/lib/x86_64-linux-gnu/wireshark/plugins/1.12.0
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.28")
-- checking for one of the modules 'glib-2.0>=2.4.0'
-- Found GLib2: glib-2.0 /usr/include/glib-2.0;/usr/lib/x86_64-linux-gnu/glib-2.0/include
-- Looking for include file glib/gregex.h
-- Looking for include file glib/gregex.h - not found
-- Looking for include file glib/gchecksum.h
-- Looking for include file glib/gchecksum.h - not found
CMake Error at cmake/FindWireshark.cmake:26 (MESSAGE):
Could NOT find the wireshark library and headers
Call Stack (most recent call first):
CMakeLists.txt:42 (find_package)

CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
WIRESHARK_INCLUDE_DIRS
used as include directory in directory /home/user/libbtbb-2014-02-R2/wireshark/plugins/btbb

-- Configuring incomplete, errors occurred!
See also "/home/user/libbtbb-2014-02-R2/wireshark/plugins/btbb/build/CMakeFiles/CMakeOutput.log".
See also "/home/user/libbtbb-2014-02-R2/wireshark/plugins/btbb/build/CMakeFiles/CMakeError.log".

Is there something I can do to resolve this?

How to install Kismet on Mac?

Following the Build Guide along with some great help, I've gotten to the point of trying to install Kismet. I'm running on a Mac, so the apt-get is not available. I've tried both port and brew as alternatives, but both end up with a similar error:

sudo port install libpcap0.8-dev libcap-dev pkg-config build-essential libnl-dev libncurses-dev libpcre3-dev libpcap-dev libcap-dev
Password:
Error: Port libpcap0.8-dev not found

brew install libpcap0.8-dev libcap-dev pkg-config build-essential libnl-dev libncurses-dev libpcre3-dev libpcap-dev libcap-dev
Error: No available formula for libpcap0.8-dev
Searching taps...

The Kismet site, but it is rather daunting. Any suggestions would be much appreciated! At least my Ubertooth One is lighting up now - when I ran Ubertooth.py! So, things are looking up!

MacPorts requires more dependencies.

After installing the dependencies listed on the wiki page, I also had to install several more before I could get Ubertooth working on a clean system. Here's the relevant part of my history file:

34 sudo port install libusb wget py-pyusb-devel cmake
[...]
80 tar xf ubertooth-2014-02-R2.tar.gz
81 cd ubertooth-2014-02-R2/host
82 mkdir build
83 cd build
84 cmake ..
85 make
86 sudo make install
87 ubertooth-specan-ui
88 port installed
89 sudo port install python
90 sudo port install python27
91 port select --list python
92 port select --set python27
93 port select --set python python27
94 sudo port select --set python python27
95 ubertooth-specan-ui
96 sudo port install py27-numpy
97 ubertooth-specan-ui
98 sudo port install pyside
99 py27-pyside
100 sudo port install py27-pyside
101 ubertooth-specan-ui

At that point ubertooth-specan-ui worked.

Channel always 0 when following a piconet

After extracting the UAP and CLK, ubertooth-rx attempts to follow a connection, but it reports all packets as being received on channel 0.

When sniffing LAPs or UAPs it reports the correct channel.

Error running kismet_server

So I followed the latest build guide on the most recent release here and was successful. Everything was going great. Then I got the "uh oh, full_buf not emptied" error (#4), killed kismet_server and ever since then I've been getting segmentation faults after a couple packets are captured.

I've tried doing a fresh build, I've made sure to upgrade the firmware (tried downgrading as well) and no matter what, I get something like this as a result:

INFO: Kismet starting to gather packets
INFO: Started source 'ubertooth'
rx blocks of 64 bytes in 512 byte transfers
GOT PACKET ch=59 LAP=9e8b33 err=0 clk100ns=876919
first sighting 9e8b33
GOT PACKET ch=44 LAP=9e8b33 err=0 clk100ns=897236
new network 9e8b33
Segmentation fault

Sometimes it'll run a tad longer (10 seconds):

INFO: Kismet starting to gather packets
INFO: Started source 'ubertooth'
rx blocks of 64 bytes in 512 byte transfers
GOT PACKET ch=72 LAP=9e8b33 err=0 clk100ns=1322791
first sighting 9e8b33
GOT PACKET ch=63 LAP=9e8b33 err=0 clk100ns=1323881
new network 9e8b33
GOT PACKET ch=16 LAP=9e8b33 err=0 clk100ns=1323912
GOT PACKET ch= 1 LAP=9e8b33 err=0 clk100ns=1324071
GOT PACKET ch= 3 LAP=9e8b33 err=0 clk100ns=1324370
GOT PACKET ch= 3 LAP=9e8b33 err=0 clk100ns=1324386
GOT PACKET ch= 5 LAP=9e8b33 err=0 clk100ns=1324710
GOT PACKET ch= 5 LAP=9e8b33 err=0 clk100ns=1324728
GOT PACKET ch= 7 LAP=9e8b33 err=0 clk100ns=1325049

Then quit without error, but syslog shows:

kernel: [ 4474.980885] kismet_server[6253]: segfault at 131ffb618 ip 00007f2e31cedbe6 sp 00007fffbf5a25a0 error 4 in libc-2.13.so[7f2e31c74000+182000]

All ubertooth CLI tools kind of work. I'll get fairly consistent errors of this sort:

:~$ ubertooth-util -n
Starting range test

:~$ ubertooth-util -m
libUSB Error: Timeout: (-7)

:~$ ubertooth-util -r
Resetting ubertooth device number 0
usb_claim_interface error -6

As far as my setup goes, I'm running latest Kali Linux in VMware Fusion on OS X Mavericks w/ a rMBP. Any help appreciated.

stack smashing detected

There is a *** stack smashing detected *** error when sniffing with the -r and -f options.
This happens when the device I am sniffing initiates a connection.
Here is the full stack

*** stack smashing detected ***:
 /usr/local/bin/ubertooth-btle terminated Program received signal SIGABRT, Aborted. 0x00007ffff75a9cc9 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56  ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) backtrace
#0  0x00007ffff75a9cc9 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff75ad0d8 in __GI_abort () at abort.c:89
#2  0x00007ffff75e6f24 in __libc_message (do_abort=do_abort@entry=1, 
    fmt=fmt@entry=0x7ffff76f30cb "*** %s ***: %s terminated\n")
    at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff767e82c in __GI___fortify_fail (msg=<optimized out>, 
    msg@entry=0x7ffff76f30b3 "stack smashing detected") at fortify_fail.c:37
#4  0x00007ffff767e7d0 in __stack_chk_fail () at stack_chk_fail.c:28
#5  0x00007ffff7947f8a in lell_pcapng_append_packet (h=0x604010, 
    ns=1424141496096431138, sigdbm=-120 '\210', noisedbm=-55 '\311', 
    refAA=2391391958, pkt=0x6046c0)
    at /home/test/libbtbb/lib/src/pcapng-bt.c:474
#6  0x00007ffff7bd398f in cb_btle (args=0x7fffffffe510, rx=0x7fffffffe560, 
    bank=0) at /home/test/ubertooth/host/libubertooth/src/ubertooth.c:694
#7  0x0000000000401ceb in main (argc=4, argv=0x7fffffffe6a8)
    at /home/test/ubertooth/host/ubertooth-tools/src/ubertooth-btle.c:293
(gdb) backtrace full
#0  0x00007ffff75a9cc9 in __GI_raise (sig=sig@entry=6)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
        resultvar = 0
        pid = 28422
        selftid = 28422
#1  0x00007ffff75ad0d8 in __GI_abort () at abort.c:89
        save_stage = 2
        act = {__sigaction_handler = {sa_handler = 0x7fffffffe200, 
            sa_sigaction = 0x7fffffffe200}, sa_mask = {__val = {555573836, 2, 
              140737351925404, 140737353983848, 524302793, 3, 14, 
              140737353983848, 140737351927830, 140737347034312, 
              140737488347456, 140737343089960, 140737488347728, 
              140737343100784, 8192231, 140737488347712}}, sa_flags = 6309680, 
          sa_restorer = 0x0}
        sigs = {__val = {32, 0 <repeats 15 times>}}
#2  0x00007ffff75e6f24 in __libc_message (do_abort=do_abort@entry=1, 
    fmt=fmt@entry=0x7ffff76f30cb "*** %s ***: %s terminated\n")
    at ../sysdeps/posix/libc_fatal.c:175
        ap = {{gp_offset = 32, fp_offset = 0, 
            overflow_arg_area = 0x7fffffffe350, 
            reg_save_area = 0x7fffffffe2e0}}
        fd = 13
        on_2 = <optimized out>
---Type <return> to continue, or q <return> to quit---
        list = <optimized out>
        nlist = <optimized out>
        cp = <optimized out>
        written = <optimized out>
#3  0x00007ffff767e82c in __GI___fortify_fail (msg=<optimized out>, 
    msg@entry=0x7ffff76f30b3 "stack smashing detected") at fortify_fail.c:37
        do_abort = 1
#4  0x00007ffff767e7d0 in __stack_chk_fail () at stack_chk_fail.c:28
No locals.
#5  0x00007ffff7947f8a in lell_pcapng_append_packet (h=0x604010, 
    ns=1424141496096431138, sigdbm=-120 '\210', noisedbm=-55 '\311', 
    refAA=2391391958, pkt=0x6046c0)
    at /home/test/libbtbb/lib/src/pcapng-bt.c:474
        flags = 51
        pcapng_pkt = {blk_header = {block_type = 6, block_total_length = 92, 
            interface_id = 0, timestamp_high = 331583781, 
            timestamp_low = 817404962, captured_len = 53, packet_len = 53, 
            packet_data = 0x7fffffffe3fc}, le_ll_header = {
            rf_channel = 0 '\000', signal_power = -120 '\210', 
            noise_power = -55 '\311', access_address_offenses = 0 '\000', 
            ref_access_address = 2391391958, flags = 51, 
            le_packet = 0x7fffffffe406 "־\211\216\005\"\277\371\310\356\313", <incomplete sequence \340>}, 
---Type <return> to continue, or q <return> to quit---
          le_packet = "־\211\216\005\"\277\371\310\356\313\340\000v\b>\004\000TSeP\322V\243\003\n\000'\000\000\000\320\a\377\377\377\377\037\255\345\032\315\344\377\377\000"}
        retval = 0
#6  0x00007ffff7bd398f in cb_btle (args=0x7fffffffe510, rx=0x7fffffffe560, 
    bank=0) at /home/test/ubertooth/host/libubertooth/src/ubertooth.c:694
        pkt = 0x6046c0
        opts = 0x7fffffffe510
        i = 0
        access_address = 0
        prev_ts = 559938203
        refAA = 2391391958
        sig = -120 '\210'
        noise = -55 '\311'
        nowns = 1424141496096431138
        ts_diff = 32767
        len = 0
#7  0x0000000000401ceb in main (argc=4, argv=0x7fffffffe6a8)
    at /home/test/ubertooth/host/ubertooth-tools/src/ubertooth-btle.c:293
        r = 64
        pkt = {pkt_type = 0 '\000', status = 0 '\000', channel = 0 '\000', 
          clkn_high = 0 '\000', clk100ns = 559943243, rssi_max = -128 '\200', 
          rssi_min = 127 '\177', rssi_avg = 0 '\000', rssi_count = 0 '\000', 
---Type <return> to continue, or q <return> to quit---
          reserved = "\000", 
          data = "־\211\216\005\"\277\371\310\356\313\340\000v\b>\004\000TSeP\322V\243\003\n\000'\000\000\000\320\a\377\377\377\377\037\255\345\032\315l]L\004\222\000"}
        opt = -1
        do_follow = 1
        do_file = 0
        do_promisc = 0
        do_get_aa = 0
        do_set_aa = 0
        do_crc = -1
        do_adv_index = 37
        do_slave_mode = 0
        do_target = 0
        ubertooth_device = -1 '\377'
        cb_opts = {allowed_access_address_errors = 32}
        r = 4197219
        access_address = 32767
        mac_address = "\000\000\000\000\000"

Issue Compiling ubertooth on Arch Linux on Raspherry

Hi,
I try to compile ubertooth on Arch linux.
But it shows the following message.

I checked the files, it actually has the /libubertooth.so.0.2 file
and it has the corresponding objects.
00000000 UND 00000000 btbb_find_ac
00000000 UND 00000000 btbb_init
00000000 UND 00000000 btbb_packet_get_ac_errors
00000000 UND 00000000 btbb_piconet_get_clk_offset
00000000 UND 00000000 btbb_packet_get_clkn
00000000 UND 00000000 btbb_piconet_get_flag
00000000 UND 00000000 btbb_gen_syncword
00000000 UND 00000000 btbb_packet_set_data
00000000 UND 00000000 btbb_packet_unref
00000000 UND 00000000 btbb_packet_get_lap
00000000 UND 00000000 btbb_packet_get_channel
00000000 UND 00000000 btbb_process_packet
00000000 UND 00000000 btbb_piconet_get_lap
Does it mean that all these objects are undefined?
How can I solve this problem?
Thank you so much.

-- Pcap include dirs set to /usr/include
-- Pcap library set to /usr/lib/libpcap.so
-- Pcap include dirs set to /usr/include
-- Pcap library set to /usr/lib/libpcap.so
-- Configuring done
-- Generating done
-- Build files have been written to: /root/bluetooth/ubertooth-2014-02-R1/host/build
Scanning dependencies of target ubertooth
make[2]: Warning: File '../libubertooth/src/ubertooth.c' has modification time 1391023161 s in the future
[ 7%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth.c.o
[ 15%] Building C object libubertooth/src/CMakeFiles/ubertooth.dir/ubertooth_control.c.o
Linking C shared library libubertooth.so
make[2]: warning: Clock skew detected. Your build may be incomplete.
[ 15%] Built target ubertooth
Scanning dependencies of target ubertooth-btle
make[2]: Warning: File '../ubertooth-tools/src/ubertooth-btle.c' has modification time 1391023149 s in the future
[ 23%] Building C object ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/ubertooth-btle.c.o
Linking C executable ubertooth-btle
../../libubertooth/src/libubertooth.so.0.2: undefined reference to decode_le' ../../libubertooth/src/libubertooth.so.0.2: undefined reference tobtbb_packet_get_ac_errors'
../../libubertooth/src/libubertooth.so.0.2: undefined reference to btbb_gen_syncword' ../../libubertooth/src/libubertooth.so.0.2: undefined reference tobtbb_piconet_get_clk_offset'
../../libubertooth/src/libubertooth.so.0.2: undefined reference to btbb_packet_unref' ../../libubertooth/src/libubertooth.so.0.2: undefined reference tobtbb_init'
../../libubertooth/src/libubertooth.so.0.2: undefined reference to btbb_piconet_get_flag' ../../libubertooth/src/libubertooth.so.0.2: undefined reference tobtbb_packet_set_data'
../../libubertooth/src/libubertooth.so.0.2: undefined reference to btbb_packet_get_clkn' ../../libubertooth/src/libubertooth.so.0.2: undefined reference tobtbb_packet_get_lap'
../../libubertooth/src/libubertooth.so.0.2: undefined reference to btbb_packet_get_channel' ../../libubertooth/src/libubertooth.so.0.2: undefined reference tobtbb_find_ac'
../../libubertooth/src/libubertooth.so.0.2: undefined reference to btbb_piconet_get_lap' ../../libubertooth/src/libubertooth.so.0.2: undefined reference tobtbb_process_packet'
../../libubertooth/src/libubertooth.so.0.2: undefined reference to `le_print'
collect2: error: ld returned 1 exit status
ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/build.make:90: recipe for target 'ubertooth-tools/src/ubertooth-btle' failed
make[2]: *** [ubertooth-tools/src/ubertooth-btle] Error 1
CMakeFiles/Makefile2:198: recipe for target 'ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/all' failed
make[1]: *** [ubertooth-tools/src/CMakeFiles/ubertooth-btle.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

device not recognized.

Hi. I'm using tip of git master at 241874e and an ubertooth one device i purchased from Rysc (http://ryscc.com/products/UBERTOOTH1/).

lsusb returns the following id:

ID 1d50:6003 OpenMoko, Inc.

Which is not in the list here:

I can of course trivially add this number, but this also strikes me as a red flag that the device I bought isn't being recognized without me adjusting that code.

Any thoughts? Thanks.

query: BLE support / node.js support

hi. sorry if these are dumb questions:

  • does the ubertooth one "do" bluetooth version 4?
  • i have a number of BLE devices around the house (sigh) and i'd really like to have one device (perhaps a beagle bone black or raspberry pi) talk to them. it is possible to use an ubertooth one as a central station for BLE?
  • have you heard of anyone working on a node.js module to talk to the ubertooth one?

thanks in advance for the illumination!

Unable to make bluetooth_rxtx

Thanks for your help in the past! I bought a Ubuntu laptop after seeing that running ubertooth on my Mac would not work. I've gotten much further, but I'm running into a problem:

When trying to run make in the bluetooth_rxtx directory, I get the following:

fatal: Not a git repository (or any of the parent directories): .git

------- begin -------
make: arm-none-eabi-gcc: Command not found
make: *** [gccversion] Error 127

I had downloaded the ubertooth-2014-02-R2 using wget as directed in the Build Guide. Do I actually need to clone the project?

Or maybe my directory structure is causing a problem. I just created an 'uber' subdirectory in my home directory. I have successfully unpacked and installed the following projects, each in their own directory under my 'uber' directory:

kismet-2013-03-R1b
libbtbb2014-02-R2
pyusb-1.0.0b1
ubertooth2014-02-R2

Thanks in advance for any ideas that might help me get to the next step - looking forward to seeing some packets being sniffed sometime soon!

Jeff

Firmware hangs after a while when sniffing BLE with high traffic

When I start sniffing BLE data in following mode, the ubertooth will start showing advertising packets going by (as it should).

ubertooth-btle -f

If I then start a BLE device that spews out a moderately high volume of packets (an iBeacon transmitting ~30 advertising packets/second), the Ubertooth will output the packets it captures for a few seconds, and then hang. It typically takes 2 to 20 seconds for the Ubertooth to hang at this traffic level. If I pause the iBeacon after a few seconds (before the Ubertooth hangs), the Ubertooth will not hang while the traffic volume is low. If I then restart the iBeacon transmitter and run it for a few seconds, the Ubertooth will hang.

Once the Ubertooth hangs, its USB LED stays on, and it stops responding to any USB commands, including the reset command. If I end the ubertooth-btle process (Ctrl-C) and try to re-run the utility, it will not capture any data in any subsequent runs. I had also written a Python library for the Ubertooth using PyUSB and created a script with functionality similar to the ubertooth-btle utility. The Python script experiences the same issue. The Ubertooth only starts working again after it is unplugged and replugged.

I have not yet tried to debug the issue at the firmware level.

I'm running Ubertooth 2014-04-R1 and libbtbb 2014-02-R2 on Mac OS X 10.9 with an Ubertooth One running the 2014-04-R1 firmware. I have not yet tested this on Linux.

I am using a 5th Generation iPod Touch with Apple's AirLocate example app as the iBeacon transmitter.

Segfaults in new PCAP code

New PCAP code segfaults on me with long packets. The issue is related to long packets overrunning fixed length buffers in the PCAP dump code.

Example:

$ ubertooth-btle -f -c foo.pcap
......
*** stack smashing detected ***: ubertooth-btle terminated
Aborted

ubertooth-btle can only set -A channel once

ubertooth-btle utility has -A option that lets to choose an advertising channel to listen.

For example,

$ ubertooth-btle -f -A38
systime=1389573511 freq=2426 addr=8e89bed6 delta_t=19292.768 ms
00 09 cc 57 6e e5 c5 78 02 01 05 a2 13 4c 
Advertising / AA 8e89bed6 /  9 bytes
    Channel Index: 38
    Type:  ADV_IND
    AdvA:  78:c5:e5:6e:57:cc (public)
    AdvData: 02 01 05
        Type 01 (Flags)
           00000101

    Data:  cc 57 6e e5 c5 78 02 01 05
    CRC:   a2 13 4c

That's fine, because the intercepted packet has channel index: 38.

Now, let's choose -A39:

$ ubertooth-btle -f -A39
systime=1389573565 freq=2426 addr=8e89bed6 delta_t=73208.165 ms
00 09 cc 57 6e e5 c5 78 02 01 05 a2 13 4c 
Advertising / AA 8e89bed6 /  9 bytes
    Channel Index: 38
    Type:  ADV_IND
    AdvA:  78:c5:e5:6e:57:cc (public)
    AdvData: 02 01 05
        Type 01 (Flags)
           00000101

    Data:  cc 57 6e e5 c5 78 02 01 05
    CRC:   a2 13 4c

Not good. It's still 38. Let's reset the Ubertooth One:

$ ubertooth-util -r
Resetting ubertooth device number 0

and now, request -A39 again:

$ ubertooth-btle -f -A39
systime=1389573655 freq=2480 addr=8e89bed6 delta_t=20769.670 ms
00 09 cc 57 6e e5 c5 78 02 01 05 a2 13 4c 
Advertising / AA 8e89bed6 /  9 bytes
    Channel Index: 39
    Type:  ADV_IND
    AdvA:  78:c5:e5:6e:57:cc (public)
    AdvData: 02 01 05
        Type 01 (Flags)
           00000101

    Data:  cc 57 6e e5 c5 78 02 01 05
    CRC:   a2 13 4c

Aha! Channel index: 39, as expected. But what if we ask for -A38 again?

$ ubertooth-btle -f -A38
systime=1389573688 freq=2480 addr=8e89bed6 delta_t=54174.680 ms
00 09 cc 57 6e e5 c5 78 02 01 05 a2 13 4c 
Advertising / AA 8e89bed6 /  9 bytes
    Channel Index: 39
    Type:  ADV_IND
    AdvA:  78:c5:e5:6e:57:cc (public)
    AdvData: 02 01 05
        Type 01 (Flags)
           00000101

    Data:  cc 57 6e e5 c5 78 02 01 05
    CRC:   a2 13 4c

Unfortunately, channel index: 39.

Clearly UBERTOOTH_SET_CHANNEL is only effective once. Probably, because it's done before UBERTOOTH_BTLE_SNIFFING that sets requested_mode = MODE_BT_FOLLOW_LE and the following code is not executed on the consequent UBERTOOTH_SET_CHANNEL calls (bluetooth_rxtx.c:518):

if (mode != MODE_BT_FOLLOW_LE) {
                channel = requested_channel;
                requested_channel = 0;

                /* CS threshold is mode-dependent. Update it after
                 * possible mode change. TODO - kludgy. */
               cs_threshold_calc_and_set();
}

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.