SlideShare a Scribd company logo
1 of 39
Download to read offline
Getting started with
SDR and GNURadio
Prashanth Varma
23-06-2018
About me
• Security analyst at Defmax
• Full Stack(MERN) & iOS developer
• Part time bug bounty participant
• Beginner in IOT security
• Twitter - @cymtrick
What is Frequency?
What is Radio Frequencies?
What is SDR?
Frequency
Frequency : Frequency is the number of occurrences of a repeating event
per unit of time.
The relation between the frequency and the period of a repeating event or
oscillation is given by f=1/T
Frequency is measured in Hz
High Frequencies
Low Frequencies
Radio Frequencies
Radio frequency (RF) refers to the rate of oscillation of electromagnetic
radio waves in the range of 3 kHz to 300 GHz, as well as the alternating
currents carrying the radio signals.
Radio Frequencies - Bands
Radio Frequencies - Bands
Common RF Protocols
• Bluetooth/BLE (2.4GHz)
• Zigbee(2.4GHz)
• Z-wave (900MHz)
• Wifi(2.4GHz)
• Cellular (900/1800/1900/2100MHz)
Radio Frequencies - Bands
Common ISM bands used in IoT systems
• 315 MHz
• 433 MHz
• 902-928 MHz
• 863 –870 MHz
• 2.4 GHz
• 5.8 GHz
Communication System
General RF Communication Basics
• Channel BandWidth
• Modulation
• Bit rate
• Preamble
• Sync word
• CRC?
Communication Basics
• Channel BandWidth - Channel is a medium through which information
is transmitted between transmitter and receiver. Channel bandwidth is
the frequency range that constitutes the channel.
• Modulation - Modulation is the process of superimposing the
information of a modulating signal on a carrier signal (which is of high
frequency) by varying the characteristic of carrier signal according to
the modulating signal.
Communication Basics
• Bit rate : bit rate (bitrate or as a variable R) is the number of bits
that are conveyed or processed per unit of time. Ex 1M-bps
• Preamble : A preamble is a signal used in network
communications to synchronize transmission timing between two
or more systems.
• Sync word: a syncword, sync character, sync sequence or
preamble is used to synchronize a data transmission by
indicating the end of header.
• CRC : A cyclic redundancy check (CRC) is an error-detecting
code commonly used in digital networks and storage devices to
detect accidental changes to raw data.
Communication Basics
General RF Packet Structure
Warning
• The spectrum is a limited public resource. Playing with illegal radio
might get you arrested.
• It can interfere with critical systems, Marine, Army, etc.
• It is advised to use a Faraday cage (“RF cage”)
SDR
• a radio communication system where components that have been
typically implemented in hardware ( mixers, filters, amplifiers,
modulators, etc.) are instead implemented by means of software
• Drag and drop components and create a flow graph!
SDR
HackRF
• A Software Defined Radio peripheral capable of transmission or
reception of radio signals from 1 MHz to 6 GHz.
• One of the best peripherals that are out there
• Can receive or transmit (half duplex)
• Cost: RS 30000/-
RTL-SDR
• RTL-SDR is a very cheap software defined radio that uses a DVB-T
TV tuner dongle based on the RTL2832U chipset.
• Drawback –receive only. But still great for analysis!
Demo GSM Sniffer
Tools required : SDR(Hackrf), GNURadio, WireShark, GQRX
Modules : gr-gsm
sudo apt-get install gnuradio gnuradio-dev gr-
osmosdr gr-osmosdr gqrx-sdr wireshark
ubuntu
sudo port install gnuradio gnuradio-dev gr-
osmosdr gr-osmosdr gqrx wireshark
Mac Ports
Listening to Radio Signals
Using GQRX
GSM Sniffer
Tools required : SDR(Hackrf), GNURadio, WireShark, GQRX
Modules : gr-gsm
Using Kalibrate to find Channels
git clone https://github.com/scateu/kalibrate-hackrf.git
GSM Sniffer
Tools required : SDR(Hackrf), GNURadio, WireShark, GQRX
Modules : gr-gsm
GRC Block : https://github.com/wi-fi-analyzer/gr-gsm/blob/master/apps/
airprobe_rtlsdr.grc
GSM Sniffer
Setting Frequency according to channel results from kalibrate
GSM Sniffer
Using WireShark to decode the Captured Packets
sudo wireshark -k -Y 'gsmtap && !icmp' -i lo
Bluetooth Sniffer (NRF24)
$ git clone https://github.com/omriiluz/NRF24-BTLE-Decoder
https://wiki.bitcraze.io/misc:hacks:hackrf
Bluetooth Sniffer (NRF24)
$ cat /tmp/fifo | ./nrf24-btle-decoder -d 1
Planning (Demo Car Jacking Using Replay Attack)
• Information gathering
• Frequency
• Modulation
• Preamble and Syncword
• Transmission!
https://www.fcc.gov/general/fcc-id-search-page
http://fcc.io/
Information Gathering
Every Device has it’s own FCC id or you can it by opening your hardware
Finding Frequency
Using GQRX to find my car remote radio frequency.
Swift Dzire remote uses 433.900 MHz
Modulation
Most of the car remotes use OOK(On off shift keying) part of ASK
ASK(Amplitude shift keying)
FSK(Frequency shift keying)
PSK(Phase shift keying)
Capturing the raw data
$ hackrf_transfer -r data.iq -f 433900000 -g 50 -l 24
Analysing the raw data in audacity
Preamble and SyncWord
1 0 1 10 10 01 1 1 0 0 00 1 1 0 0 0 1 0 01 1
Payload
Transmission
$ hackrf_transfer -t data.iq -f 433900000
Transmission
Transmission
Dealing with Rolling Codes
• Jamming the key while transmission
• Capture the signal with another receiver
$ git clone https://github.com/furrtek/portapack-havoc.git
Dealing with Rolling Codes
• Capture the first signal and replay it
• Keep the second signal for future replay attack
Yard Stick One (<1GHz)
Half duplex mode
TC1111-chipset
rfcat pre built
d = RfCat(idx=0)

d.setMdmModulation(MOD_ASK_OOK) #on of key

d.setFreq(433920000) # frequency

d.setMdmDRate(4800)# how long each bit is transmited for

d.setMdmChanBW(60000)# how wide channel is

d.setMdmChanSpc(24000)

d.setChannel(0)

d.setMaxPower() # max power

d.lowball(1) # need inorder to read data
Thank you

More Related Content

What's hot

Yagi Antennas Presentation
Yagi Antennas PresentationYagi Antennas Presentation
Yagi Antennas Presentation
Lee Jennings
 

What's hot (20)

Radar communication
Radar communicationRadar communication
Radar communication
 
3 ECE AWP.pdf
3 ECE AWP.pdf3 ECE AWP.pdf
3 ECE AWP.pdf
 
Cryptography in GSM
Cryptography in GSMCryptography in GSM
Cryptography in GSM
 
Sdr the future of radio
Sdr the future of radioSdr the future of radio
Sdr the future of radio
 
Software Defined Radio (SDR)
Software Defined Radio (SDR)Software Defined Radio (SDR)
Software Defined Radio (SDR)
 
MISSILE CONTROL AND COMMUNICATION
MISSILE CONTROL AND COMMUNICATIONMISSILE CONTROL AND COMMUNICATION
MISSILE CONTROL AND COMMUNICATION
 
Gun diode
Gun diodeGun diode
Gun diode
 
Drive test from a to z
Drive test from a to zDrive test from a to z
Drive test from a to z
 
SPREAD SPECTRUM MODULATION.pptx
SPREAD SPECTRUM MODULATION.pptxSPREAD SPECTRUM MODULATION.pptx
SPREAD SPECTRUM MODULATION.pptx
 
Multiplexing & DE Multiplexing( Time Division Multiplexing(TDM) & Frequency D...
Multiplexing & DE Multiplexing( Time Division Multiplexing(TDM) & Frequency D...Multiplexing & DE Multiplexing( Time Division Multiplexing(TDM) & Frequency D...
Multiplexing & DE Multiplexing( Time Division Multiplexing(TDM) & Frequency D...
 
Ofdma Basics
Ofdma BasicsOfdma Basics
Ofdma Basics
 
Radar Systems- Unit-II : CW and Frequency Modulated Radar
Radar Systems- Unit-II : CW and Frequency Modulated RadarRadar Systems- Unit-II : CW and Frequency Modulated Radar
Radar Systems- Unit-II : CW and Frequency Modulated Radar
 
Alokasi frekuensi
Alokasi frekuensiAlokasi frekuensi
Alokasi frekuensi
 
Angle Modulation
Angle ModulationAngle Modulation
Angle Modulation
 
rf planning
rf planningrf planning
rf planning
 
Introduction of GPS BPSK-R and BOC
Introduction of GPS BPSK-R and BOCIntroduction of GPS BPSK-R and BOC
Introduction of GPS BPSK-R and BOC
 
Yagi Antennas Presentation
Yagi Antennas PresentationYagi Antennas Presentation
Yagi Antennas Presentation
 
Link budget calculation
Link budget calculationLink budget calculation
Link budget calculation
 
Antenna slide
Antenna slideAntenna slide
Antenna slide
 
Advances in polarimetric X-band weather radar
Advances in polarimetric X-band weather radarAdvances in polarimetric X-band weather radar
Advances in polarimetric X-band weather radar
 

Similar to Getting started with sdr

Software defined radio....
Software defined radio....Software defined radio....
Software defined radio....
Bise Mond
 
SDR Training with HackRF - Tonex Training
SDR Training with HackRF - Tonex TrainingSDR Training with HackRF - Tonex Training
SDR Training with HackRF - Tonex Training
Bryan Len
 
1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...
1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...
1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...
Mathavan N
 
OSINT RF Reverse Engineering by Marc Newlin
OSINT RF Reverse Engineering by Marc NewlinOSINT RF Reverse Engineering by Marc Newlin
OSINT RF Reverse Engineering by Marc Newlin
EC-Council
 
Presentation of Software Defined Radio.ppt
Presentation of Software Defined Radio.pptPresentation of Software Defined Radio.ppt
Presentation of Software Defined Radio.ppt
Mathavan N
 

Similar to Getting started with sdr (20)

Software defined radio technology : ITB research activities
Software defined radio technology : ITB research activitiesSoftware defined radio technology : ITB research activities
Software defined radio technology : ITB research activities
 
Software defined radio....
Software defined radio....Software defined radio....
Software defined radio....
 
SDR Training with HackRF - Tonex Training
SDR Training with HackRF - Tonex TrainingSDR Training with HackRF - Tonex Training
SDR Training with HackRF - Tonex Training
 
Unit 2 sdr architecture
Unit 2   sdr architectureUnit 2   sdr architecture
Unit 2 sdr architecture
 
1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...
1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...
1fbciobmrrqmnlyjl1he-signature-a1b6820cbe628a2a167a0a81f2762fc8f340dd4b93d47a...
 
Multiband Transceivers - [Chapter 5] Software-Defined Radios
Multiband Transceivers - [Chapter 5]  Software-Defined RadiosMultiband Transceivers - [Chapter 5]  Software-Defined Radios
Multiband Transceivers - [Chapter 5] Software-Defined Radios
 
LORA.pptx
LORA.pptxLORA.pptx
LORA.pptx
 
spread spectrum communication
spread spectrum communicationspread spectrum communication
spread spectrum communication
 
Is DRM+ the new frontier for digital radio?
Is DRM+ the new frontier for digital radio?Is DRM+ the new frontier for digital radio?
Is DRM+ the new frontier for digital radio?
 
Lect13 multiple access
Lect13 multiple accessLect13 multiple access
Lect13 multiple access
 
Sdr seminar
Sdr seminarSdr seminar
Sdr seminar
 
Software Defined Radio
Software Defined RadioSoftware Defined Radio
Software Defined Radio
 
HACKING THE WIRELESS WORD WITH SOFTWARE DEFINED RADIO
HACKING THE WIRELESS WORD WITH SOFTWARE DEFINED RADIOHACKING THE WIRELESS WORD WITH SOFTWARE DEFINED RADIO
HACKING THE WIRELESS WORD WITH SOFTWARE DEFINED RADIO
 
Multiband Transceivers - [Chapter 3] Basic Concept of Comm. Systems
Multiband Transceivers - [Chapter 3]  Basic Concept of Comm. SystemsMultiband Transceivers - [Chapter 3]  Basic Concept of Comm. Systems
Multiband Transceivers - [Chapter 3] Basic Concept of Comm. Systems
 
[HES2014] HackRF A Low Cost Software Defined Radio Platform by Benjamin Vernoux
[HES2014] HackRF A Low Cost Software Defined Radio Platform by Benjamin Vernoux[HES2014] HackRF A Low Cost Software Defined Radio Platform by Benjamin Vernoux
[HES2014] HackRF A Low Cost Software Defined Radio Platform by Benjamin Vernoux
 
OSINT RF Reverse Engineering by Marc Newlin
OSINT RF Reverse Engineering by Marc NewlinOSINT RF Reverse Engineering by Marc Newlin
OSINT RF Reverse Engineering by Marc Newlin
 
Gigabit Wi-Fi 802.11AC In Depth
Gigabit Wi-Fi 802.11AC In DepthGigabit Wi-Fi 802.11AC In Depth
Gigabit Wi-Fi 802.11AC In Depth
 
Gigabit wifi 802.11 ac in depth_peter thornycroft
Gigabit wifi 802.11 ac in depth_peter thornycroftGigabit wifi 802.11 ac in depth_peter thornycroft
Gigabit wifi 802.11 ac in depth_peter thornycroft
 
LoRa online training for utility guys
LoRa online training for utility guysLoRa online training for utility guys
LoRa online training for utility guys
 
Presentation of Software Defined Radio.ppt
Presentation of Software Defined Radio.pptPresentation of Software Defined Radio.ppt
Presentation of Software Defined Radio.ppt
 

Recently uploaded

原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
ydyuyu
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
ayvbos
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
pxcywzqs
 
PowerDirector Explination Process...pptx
PowerDirector Explination Process...pptxPowerDirector Explination Process...pptx
PowerDirector Explination Process...pptx
galaxypingy
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Monica Sydney
 
75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx
Asmae Rabhi
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
ydyuyu
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Monica Sydney
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
gajnagarg
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Monica Sydney
 

Recently uploaded (20)

Best SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency DallasBest SEO Services Company in Dallas | Best SEO Agency Dallas
Best SEO Services Company in Dallas | Best SEO Agency Dallas
 
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
2nd Solid Symposium: Solid Pods vs Personal Knowledge Graphs
 
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
原版制作美国爱荷华大学毕业证(iowa毕业证书)学位证网上存档可查
 
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
一比一原版(Curtin毕业证书)科廷大学毕业证原件一模一样
 
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
一比一原版(Offer)康考迪亚大学毕业证学位证靠谱定制
 
Real Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirtReal Men Wear Diapers T Shirts sweatshirt
Real Men Wear Diapers T Shirts sweatshirt
 
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
PowerDirector Explination Process...pptx
PowerDirector Explination Process...pptxPowerDirector Explination Process...pptx
PowerDirector Explination Process...pptx
 
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girlsRussian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
Russian Call girls in Abu Dhabi 0508644382 Abu Dhabi Call girls
 
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime NagercoilNagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
Nagercoil Escorts Service Girl ^ 9332606886, WhatsApp Anytime Nagercoil
 
Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.Meaning of On page SEO & its process in detail.
Meaning of On page SEO & its process in detail.
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx75539-Cyber Security Challenges PPT.pptx
75539-Cyber Security Challenges PPT.pptx
 
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
哪里办理美国迈阿密大学毕业证(本硕)umiami在读证明存档可查
 
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi EscortsIndian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
Indian Escort in Abu DHabi 0508644382 Abu Dhabi Escorts
 
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
Top profile Call Girls In Dindigul [ 7014168258 ] Call Me For Genuine Models ...
 
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi EscortsRussian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
Russian Escort Abu Dhabi 0503464457 Abu DHabi Escorts
 
Power point inglese - educazione civica di Nuria Iuzzolino
Power point inglese - educazione civica di Nuria IuzzolinoPower point inglese - educazione civica di Nuria Iuzzolino
Power point inglese - educazione civica di Nuria Iuzzolino
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
best call girls in Hyderabad Finest Escorts Service 📞 9352988975 📞 Available ...
 

Getting started with sdr

  • 1. Getting started with SDR and GNURadio Prashanth Varma 23-06-2018
  • 2. About me • Security analyst at Defmax • Full Stack(MERN) & iOS developer • Part time bug bounty participant • Beginner in IOT security • Twitter - @cymtrick
  • 3. What is Frequency? What is Radio Frequencies? What is SDR?
  • 4. Frequency Frequency : Frequency is the number of occurrences of a repeating event per unit of time. The relation between the frequency and the period of a repeating event or oscillation is given by f=1/T Frequency is measured in Hz High Frequencies Low Frequencies
  • 5. Radio Frequencies Radio frequency (RF) refers to the rate of oscillation of electromagnetic radio waves in the range of 3 kHz to 300 GHz, as well as the alternating currents carrying the radio signals.
  • 7. Radio Frequencies - Bands Common RF Protocols • Bluetooth/BLE (2.4GHz) • Zigbee(2.4GHz) • Z-wave (900MHz) • Wifi(2.4GHz) • Cellular (900/1800/1900/2100MHz)
  • 8. Radio Frequencies - Bands Common ISM bands used in IoT systems • 315 MHz • 433 MHz • 902-928 MHz • 863 –870 MHz • 2.4 GHz • 5.8 GHz
  • 10. General RF Communication Basics • Channel BandWidth • Modulation • Bit rate • Preamble • Sync word • CRC?
  • 11. Communication Basics • Channel BandWidth - Channel is a medium through which information is transmitted between transmitter and receiver. Channel bandwidth is the frequency range that constitutes the channel. • Modulation - Modulation is the process of superimposing the information of a modulating signal on a carrier signal (which is of high frequency) by varying the characteristic of carrier signal according to the modulating signal.
  • 12. Communication Basics • Bit rate : bit rate (bitrate or as a variable R) is the number of bits that are conveyed or processed per unit of time. Ex 1M-bps • Preamble : A preamble is a signal used in network communications to synchronize transmission timing between two or more systems. • Sync word: a syncword, sync character, sync sequence or preamble is used to synchronize a data transmission by indicating the end of header. • CRC : A cyclic redundancy check (CRC) is an error-detecting code commonly used in digital networks and storage devices to detect accidental changes to raw data.
  • 14. Warning • The spectrum is a limited public resource. Playing with illegal radio might get you arrested. • It can interfere with critical systems, Marine, Army, etc. • It is advised to use a Faraday cage (“RF cage”)
  • 15. SDR • a radio communication system where components that have been typically implemented in hardware ( mixers, filters, amplifiers, modulators, etc.) are instead implemented by means of software • Drag and drop components and create a flow graph!
  • 16. SDR
  • 17. HackRF • A Software Defined Radio peripheral capable of transmission or reception of radio signals from 1 MHz to 6 GHz. • One of the best peripherals that are out there • Can receive or transmit (half duplex) • Cost: RS 30000/-
  • 18. RTL-SDR • RTL-SDR is a very cheap software defined radio that uses a DVB-T TV tuner dongle based on the RTL2832U chipset. • Drawback –receive only. But still great for analysis!
  • 19.
  • 20. Demo GSM Sniffer Tools required : SDR(Hackrf), GNURadio, WireShark, GQRX Modules : gr-gsm sudo apt-get install gnuradio gnuradio-dev gr- osmosdr gr-osmosdr gqrx-sdr wireshark ubuntu sudo port install gnuradio gnuradio-dev gr- osmosdr gr-osmosdr gqrx wireshark Mac Ports
  • 21. Listening to Radio Signals Using GQRX
  • 22. GSM Sniffer Tools required : SDR(Hackrf), GNURadio, WireShark, GQRX Modules : gr-gsm Using Kalibrate to find Channels git clone https://github.com/scateu/kalibrate-hackrf.git
  • 23. GSM Sniffer Tools required : SDR(Hackrf), GNURadio, WireShark, GQRX Modules : gr-gsm GRC Block : https://github.com/wi-fi-analyzer/gr-gsm/blob/master/apps/ airprobe_rtlsdr.grc
  • 24. GSM Sniffer Setting Frequency according to channel results from kalibrate
  • 25. GSM Sniffer Using WireShark to decode the Captured Packets sudo wireshark -k -Y 'gsmtap && !icmp' -i lo
  • 26. Bluetooth Sniffer (NRF24) $ git clone https://github.com/omriiluz/NRF24-BTLE-Decoder https://wiki.bitcraze.io/misc:hacks:hackrf
  • 27. Bluetooth Sniffer (NRF24) $ cat /tmp/fifo | ./nrf24-btle-decoder -d 1
  • 28. Planning (Demo Car Jacking Using Replay Attack) • Information gathering • Frequency • Modulation • Preamble and Syncword • Transmission!
  • 29. https://www.fcc.gov/general/fcc-id-search-page http://fcc.io/ Information Gathering Every Device has it’s own FCC id or you can it by opening your hardware
  • 30. Finding Frequency Using GQRX to find my car remote radio frequency. Swift Dzire remote uses 433.900 MHz
  • 31. Modulation Most of the car remotes use OOK(On off shift keying) part of ASK ASK(Amplitude shift keying) FSK(Frequency shift keying) PSK(Phase shift keying)
  • 32. Capturing the raw data $ hackrf_transfer -r data.iq -f 433900000 -g 50 -l 24
  • 33. Analysing the raw data in audacity Preamble and SyncWord 1 0 1 10 10 01 1 1 0 0 00 1 1 0 0 0 1 0 01 1 Payload
  • 34. Transmission $ hackrf_transfer -t data.iq -f 433900000
  • 37. Dealing with Rolling Codes • Jamming the key while transmission • Capture the signal with another receiver $ git clone https://github.com/furrtek/portapack-havoc.git
  • 38. Dealing with Rolling Codes • Capture the first signal and replay it • Keep the second signal for future replay attack Yard Stick One (<1GHz) Half duplex mode TC1111-chipset rfcat pre built d = RfCat(idx=0) d.setMdmModulation(MOD_ASK_OOK) #on of key d.setFreq(433920000) # frequency d.setMdmDRate(4800)# how long each bit is transmited for d.setMdmChanBW(60000)# how wide channel is d.setMdmChanSpc(24000) d.setChannel(0) d.setMaxPower() # max power d.lowball(1) # need inorder to read data