(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2

所需积分/C币:39 2019-04-22 19:41:13 3.27MB PDF
308
收藏 收藏
举报

(蓝牙抓包工具使用教程) nRF Sniffer User Guide v2.2 参考:https://blog.csdn.net/wfzlry/article/details/89459027
NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 2 Setting up the nRF Sniffer Set up the Sniffer for the first time by performing the following steps 1. Except for the nRF Sniffer, install all of the software listed in Section 1.2 Required software"on page 2 before plugging in the hardware 2. Connect the hardware to a USB port 3. For Windows-Wait for the hardware drivers to be loaded before continuing You can also click skip obtaining driver software from Windows Update to speed up the driver installation process. 4. Place the hardware between the peripheral and central device. Now you're ready to set up the software 四 口 口Q口 Central Peripheral Figure 1 System overview Page 3 NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 2.1 Install nRF Sniffer 1. For Windows-Go to Help> About Wireshark AThe Wireshark Network Analyzer le Edit View Go Capture Analyze Statstics Telephony Wireess Tools Help Apply a display fil ter..<Ctrl- Marual waur InLer dLe I Device All ad rer tisi y devices Passkey /ooBkey [A Website Welcome to Wireshark Downloads Capture using this flter: Enter a capure filter Sample Captures Che=k for Updates Orare: Virt alRnx Host-only Network Juriper Netwo*k Connect virtual Adapter: Local Abo ut wireshark Microsot: Wireless Network Conection tel()82577LM Gigabit Network Connecton: Local Area Connectlon 2. Click on the folders tab 3. Click on the location for Extcap path 4. Find and copy the nrf_sniffer_<version>_<hash> ZiP file to the folder associated with"Extcap pa Wireshark I Authors Folders I Plugins I Keyboard Shortcuts I License Name Location Typical Files ferBLElsniffer 2 0 capture files Cause AppDatalocallTemp untted capture files Personal configuration C:Vs ata Roaming Wireshark diners, preferences, ethers, Global configuration C: Program Filesiwreshars cf/ers, preferences, manuf System CilProgram EilesiWreshars e的hes积 Program C:pRogram Files Rebars program files Personal Plugins Civ o inaMiresharkplvons dissector plugins Global Plugins CilProgram Eiler wreharsbpl gin 2.4.1 detector plugins Extcap path CilPregram Files lWresharslextean Exteap Plugins search path Page 4 NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 5. Unzip the ZiP's extcap content to the Wireshark Extcap path found in"About Wireshark"(shown here as C: \Program Files\Wiresharklextcap Computer OSDisk (Ci) Program Files Wireshark extcap it view Tool Indude in ibrary v Share with Burn New folder Name Date modified Type o nrf sniffer 2.0.0-beta-1 51296aa 12/1/2017 12: 52 PM Flle folder Sniffer API 11/23/2017 3: 11 PM File folder soi nrf sniffer. bat 10/6/20172:28PM Windows batch file 1 KB P nrf sniffer. py then file 6. For OS X and Linux-Verify that the nrf_ sniffer py file has the""permission. If the x"permission is missing, add it using chmod +x nrf_sniffer. py. 7. For Windows-Verify that the path used for python in the nrf_ sniffer bat file correctly points to the required version as stated in "Required software"on page 2 8. Close Wireshark 2.2 Install firmware with segger j-Link 1. Locate the j-Link software For Windows-Use the jlink. exe program, usually in C: Program Files(x86)\SEGGER\ For oS X and Linux- Use the jlinkexe program 2. Remove all hardware attached to the usB 3. Plug in one of the hardware boards and wait for the drivers to install 4. Open a command window 5. In the command window, type jlink. exe(for Windows) or jlinkexe(for oS X and Linux) and hit Enter to run the program 6. Erase the contents by performing the following steps. Press Enter after each command a. Type erase b Depending on the board you are using, type nRF51422_XXAC (for the nRF 51DK and Dongle) or nRF52832 XXAA (for the nRF 52 DK) C. Type s to specify the SWD interface d For Speed, type 1000 e. Type loadfile then <Path to Wireshark>lextcapInrf_ sniffer_<ver- sion> <hash> \hex\sniffer <board name> <hash>.hex Type r to reset the board g. Type g to run the board firmware Page 5 NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 Firmware: J-Link OB-SAM3U128-02-NordicSemi conpiled Jun 9 201714: 57: 23 10n AN:681349 UTrcF 3 Type " connect"to establish a target connection."?"for help Target tion nat establis hed yet but required for command Please specify device core.(Default>: NRFS1422-XXAA et inter£ace pec Ify target interface speed [kHz 1. <Def ault): 4000 kHz Speed)1001 DeuiceNIRF51422_XXAAW selected S凵D ound sw-DP with Im xBB114 RoM: OxFBB0090g HHB-APSL AHB-AP fuuu AP ROM FFEEE, CID: B105146D. PID: E60BB471 ROM Table CHE PID R0mt:206aHD:e9D:PiD:题B图异自 tex-帕 identifi 5.5 455 ffeF 20.5 Lesewire sharkextcap\nrf_sniffer_2.0.0-beta-1_245 5665.hex Ease:日s, Progran: Verify: 6-601s Restore: 5-647s> Linl>t NORMAL: Resets core peripherals via SYSRESETREQ UEGTRESET bit etting AIRCR. SYSRESETREQ igure 2 J-Link erase Page 6 NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 23 Finalize the set up Verify that the Sniffer firmware is running correctly by checking that lEdi toggles each time a packet is received At least one device must be advertising for the Sniffer to detect the advertisements 2.3.1 Enable the sniffer 1. Open Wireshark. You should see "nRF Sniffer on xxxxx"as one of the interfaces 2. Click view Interface Toolbars > nRF Sniffer to enable the sniffer interface The Wireshark Network Analyzer il= Edit Mew Go Capture AnalyzE Statistics Telephony Wireless Tools Y Mal Toolbar J Filter Toolbar Interface Interface Toolbars v status ear Full Screen F11 w Packet list y Packet de dis 2.3.2 Update the profiles 1. Open Wireshark 2. Open the personal Configuration For Windows-Click Help> About Wireshark For os x and linux -Click Wireshark about wireshark 3. Click the Folders tab 4. Double Click Personal Configuration in the name column Wireshark I Authors Folders plugins I Keyboard Shortcuts I Acknowledgments I Lense I Filter by peth Name Location Typical Files C: Users- capture files emn igar untiTled caohe le Personal confiquration C: Use AppDatalRaamingWiresnark d作 i, preferences, ethers sioNal connguraton iProgrmwiresnTk alters, preterercesr manu C:pRogram Files Wireshark ethers, ipxnets Program C:Proqram Fiesiwireshark program files Personal Plugins CaUses- ApppatalRaamina Wiresnarkipuains 2.6 binary plugins Global Plugins C:pRogram FileslWiresherkinlu 2,6 binary plugins Persons Lua Pugin CaUs叠r ppDatalRaaminglWireenark'plugine la saint Global Lua Plugins C:Program Eiler Wiresharkiplugins lua scripts Extcap path C:Program Ele wiresharkiextcap Extcap plugins search path MaxMnd DB path C: mDatalseoTE MaxMind de database search MaxMnd DB path CA GeolP Maxind de database search MIB/PIB path SMI MIB/PIB search path 5. Copy the folder Profile_ nRF Sniffer_v2_001, which is found in the nRF Sniffer v2 release Zip file to the profiles folder within the Personal Configuration folder Page 7 NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 2.3.3 Add the Sniffer profile 1. Click Wireshark Edit > Confiquration Profiles 2. Select profile nrF Sniffer v2 001 and click oK Wireshark. Configuration Profiles x Bluetooth Profile nre Sniffe w2 c01 C:luser 能M5My CaIle 3. Click on the board to select it and then click the Wireshark icon to start capturing packets. The figure below shows a successful installation File Edit View Go Capture Analyze S atistics Telephony Wireless Tools Help 口|因| apply a display+er<针4> Inter face CoM96 Device All advertising devices Passkey /OoE ke elcome to wireshark Capture sity Us iller: Enile d Lalu e file VIrtualBox Host-Only Network_n/ -oca Area connection.5 Wire ess network connection Loca Area Connection 回 ORF Sniffer CoM9 Extcap inter face nrt snitter, bat Nb capture flter 4. If the packets are not appearing in Wireshark, or are not being displayed correctly, see Chapter 6 Troubleshooting"on page 17 to troubleshoot your installation Page 8 NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 3 Using the Sniffer The Wireshark capture screen is displayed when Wireshark is first launched. It includes the Wireshark nterface for managing packets that are captured, the nRF Sniffer toolbar, and the hardware interfaces connected to the nrf Sniffer To make the n rf Sniffer toolbar visible, click view Interface Toolbars nrF Sniffer. There are two ways to start sniffing Double click on the hardware interface(nRF Sniffer COM54 in Figure 3) Select the hardware interface by clicking on it and then click the Wireshark icon on the top left to start snifting. le Edit Vew Go Capture Analyse Statese Telephony Wiele Toal Help Capture n ack叶< 4ptonexes LAppy a dsplay fiter <cib> →Eesn+ n RF Sniffer Toolbar InterfaceCoM54 Device A advertising devices Passkey/00B key 33百地_Dh」 Welcome to Wireshark Devebpment Budd Capture usng this fiter: I Enter a capture fit nter faces shown VirtualBox Host only Networ Local Area Connection"15 Wreiesy Ne twork Connection Local Area Connection Hardware interface O nRF Sniffer COM5 Learn You are running Wereshark 2.5.0-1595gfa26-ac v25.0rco-1595-gfa2649ac) You receive automatc updates y Ready to load or capture N Packets ‖ Profe: Default Figure 3 Wireshark capture screen Once the Sniffer is running, it reports advertisements and lists nearby devices in the device list. The Sniffer may not pick up all connect requests and will not always pick up on a connection. In such cases, you need to reconnect and try sniffing again. If you aren' t seeing any activity in your Wireshark console, see Section 6 Troubleshooting on page 17 The Sniffer has two modes of operation 1. Listens on all advertising channels to pick up as many packets as possible from as many devices as possible. This is the default mode 2. Follows one particular device and tries to catch all packets sent to or from this particular device This mode will catch all Advertisements and Scan Responses sent from the device Scan Requests and Connect Requests sent to the device Packets in the Connection sent between the two devices in the Connection ge NORDIC SEMICONDUCTOR nRF Sniffer User guide v2. 2 3.1 Sniffer commands The software interface has several commands to for controlling the Sniffer. Below you will find a list of commands and their description along with some examples Fie Edit View Go Capture Analyze Statistics Telephony Wireless Tools Help 中- E pression.|+ Interface [ 129, Device--87 cm el f: b: 8: 5e: 7d rand Passkey /003 key/279045 Adv Hop F7, 38, 39 Defaults Resets the user interface: clears log fle og Tlle p hardware interface Figure 4 Sniffer interface 3.1.1 All advertising devices This lists nearby devices. If this command is used while sniffing a device, it will stop sniffing that device. This means if the device is in a connection, the sniffer will lose that connection To enable this option, click the Device list drop-down and select All advertising devices. 3.1.2 Passkey Your device asks you to provide your passkey. Type the 6 digit passkey in the passkey text field from Wireshark, followed by Enter. Then enter the passkey into the device. Passkey entry utilizes Just Works pairing, which is described in detail in "Just Works- sniffing an encrypted connection"on page 15 3.13 Out of band key exchange(ooB You are asked to provide the 16 byte out-of-band (oob)key in hexadecimal (starting with Ox, big endian format). This must be carried out before the device enters encryption. If the entered key is shorter than 16 bytes, it will be padded with zeros in front. oOB entry uses Out of Band pairing, which is described in detail in"Sniffing a connection between devices that are already paired"on page 16 3.1.4 Advertising hop sequence Change the order in which the sniffer switches advertising channels when following a device. Define the order with comma separated channel numbers. For example: 37, 38, 39. Press Enter when done This will sniff waiting for a packet on channel 37. After it receives a packet on channel 37 it will transition to sniffing on channel 38. When it receives a packet on channel 38, it will transition to sniffing on channel 39 When it receives a packet on channel 39, it will start sniffing on channel 37, and repeats the operation Page 10

...展开详情
试读 21P (蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2
立即下载 低至0.43元/次 身份认证VIP会员低至7折
一个资源只可评论一次,评论内容不能少于5个字
您会向同学/朋友/同事推荐我们的CSDN下载吗?
谢谢参与!您的真实评价是我们改进的动力~
  • 分享精英

关注 私信
上传资源赚钱or赚积分
最新推荐
(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2 39积分/C币 立即下载
1/21
(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2第1页
(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2第2页
(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2第3页
(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2第4页
(蓝牙ble或者mesh抓包工具使用教程) nRF Sniffer User Guide v2.2第5页

试读结束, 可继续读2页

39积分/C币 立即下载 >