Lab 4 - Hardware Hacking
Lab 4 - Hardware Hacking
Unlike the last lab, the signals in question in this exercise are digital, rather than analog (RF).
Table of Contents
1. Using a logic analyzer
2. Your task
3. Hints
Logic Analyzers
Logic analyzers can be thought of as multi-channel, time-correlated oscilloscopes, with protocol
decode capabilities. Essentially, they understand certain common digital protocols and can directly
decode them into data. For instance, SPI, i2c, and UART are all common digital interfaces on a
computer (such as an arduino, raspberry pi, or similar). Logic analyzers can read the waveforms of
each of these, and decode them into the actual data being sent via the protocol.
Your task
Each of you has an arduino compatible Teensy 4.0, as well as a logic analyzer and probes.
To start, make sure you can do basic arduino things as per this guide
(https://canvas.oregonstate.edu/courses/1967043/pages/teensy-setup-and-testing) . You only technically
need the Teensy Loader application, but if you want to ever program this device yourself, follow the
rest of the steps! We will be doing things on either your Kali VMs or your host OSes (your choice).
After this completes, you will have an image running on your Teensy. At this point, you will need to
install the Logic software (https://www.saleae.com/downloads/) . You will need to run Logic as root
(if using Kali), most likely using sudo. Once it is up and running, connect some leads from your logic
https://canvas.oregonstate.edu/courses/1967043/assignments/9716528?module_item_id=24535877 1/3
8/17/24, 10:06 AM Lab 4 - Hardware Hacking
analyzer to the pins on the Teensy (we are only looking at the digital pins) using the leads that came
with your logic analyzer.
You will want to run a capture of at least 10 seconds or so in order to see everything. Take a look at
the below video for some getting started help with Logic -- it will auto start and end at the appropriate
times, but you can scrub around or watch the whole thing as you desire.
Hints
There are a lot of pins on a Teensy. I'd recommend identifying them. The silk screen is accurate, and
you should also have the pinout card that came with your device.
You may not find everything with only 8 channels. You might need to run the capture multiple times
with different pins connected.
Lots of protocol analyzers need a baud rate set. There are different rates for different protocols, but
most have standard options.
What To Submit
Write-up how you approached this problem, including any findings, pin diagrams, or the like you made
use of. How did you determine which pins had the signal? How did you determine how to decode the
signal once you'd determined you'd found it? Include scrolling screenshots of AI interactions.
https://canvas.oregonstate.edu/courses/1967043/assignments/9716528?module_item_id=24535877 2/3
8/17/24, 10:06 AM Lab 4 - Hardware Hacking
Lab 4 Rubric
Write-up how you approached this problem(any findings, pin 10 pts 0 pts
diagrams, etc.) Full Marks No Marks 10 pts
Write-up how you determined which pins had the signal. 15 pts 0 pts
Full Marks No Marks 15 pts
Write-up how you decoded the signal once you'd determined 15 pts 0 pts
you'd found it. Full Marks No Marks 15 pts
Total Points: 50
https://canvas.oregonstate.edu/courses/1967043/assignments/9716528?module_item_id=24535877 3/3