Playback starts YouTube’s embedded player (privacy-enhanced mode).
#05 - How To Get The Root File System - Hardware Hacking Tutorial
ChannelMake Me HackDescription from the creator
If you have downloaded the firmware file for your device from the supplier's website or if you have dumped the EEPROM from your device and you want to extract the root file system and other information, this is the video for you!
In this episode I will talk about the available options to understand where the root file system is located in the firmware image, and the tools to use to extract it with the purpose to analyse it.
In this episode we will use 3 different types of firmware file:
- An encrypted firmware update file for a digital camera, downloaded from the supplier's website. I will not succeed to extract the root file system, but we will learn something useful anyway.
- Another file is a firmware upgrade for home router, downloaded from the supplier's website; we will successfully extract the file system, with some minor issues.
- The last file is an EEPROM dump that we dumped from the sample Gemtek router in the previous episode.
- We will do everything on our Linux box using some simple tools:
- The "file" command, that gives very basic information about any type of file.
- The "strings" command, that prints embedded strings in a binary file.
- The "hexdump" command, that prints the hex dump of a file, including the ASCII equivalent of each byte.
- The "binwalk" software, it is able to scan a binary file searching signatures of many different file system images, of compressed data segments, of digital certificates and of many other type of information embedded on a single binary file. It is also able to show the running entropy of a file allowing us to understand if we have an encrypted or compressed segment inside the binary file.
- The "dd" command, it is able to dissect a file, easily extracting part of it, or reassembling a file putting together different parts.
*** Links with additional Information ***
Channel's Author: makemehack.com/2020/02/a-short-introduction-of-…
Channel's Web Site: makemehack.com/
The sample router (Gemtek WVRTM-127ACN) on techinfodepot: en.techinfodepot.shoutwiki.com/wiki/Gemtek_WVRT…
The sample router (Gemtek WVRTM-127ACN) reverse engineered on GitHub, includes scripts to dump the EEPROM to a text file and to convert it back to binary file: github.com/digiampietro/hacking-gemtek
Canon EOS M50 firmware download page: canon.it/support/consumer_products/products/cam…
D-Link DVA-5592 firmware: media.dlink.eu/ftp/products/dva/dva-5592/driver…
adbtools2, tools to hack the DVA-5592 router: github.com/digiampietro/adbtools2
buildroot-armv7, emulation environment for the DVA-5592 router: github.com/digiampietro/buildroot-armv7
jefferson, to exctract JFFS2 file system images: github.com/sviehb/jefferson
Binwalk, a fast, easy to use tool for analyzing, reverse engineering, and extracting firmware images: github.com/ReFirmLabs/binwalk
One of the longest wikipedia article: en.wikipedia.org/wiki/List_of_mountains_of_the_…
U-Boot, The Universal Boot Loader: denx.de/wiki/U-Boot
In this episode I will talk about the available options to understand where the root file system is located in the firmware image, and the tools to use to extract it with the purpose to analyse it.
In this episode we will use 3 different types of firmware file:
- An encrypted firmware update file for a digital camera, downloaded from the supplier's website. I will not succeed to extract the root file system, but we will learn something useful anyway.
- Another file is a firmware upgrade for home router, downloaded from the supplier's website; we will successfully extract the file system, with some minor issues.
- The last file is an EEPROM dump that we dumped from the sample Gemtek router in the previous episode.
- We will do everything on our Linux box using some simple tools:
- The "file" command, that gives very basic information about any type of file.
- The "strings" command, that prints embedded strings in a binary file.
- The "hexdump" command, that prints the hex dump of a file, including the ASCII equivalent of each byte.
- The "binwalk" software, it is able to scan a binary file searching signatures of many different file system images, of compressed data segments, of digital certificates and of many other type of information embedded on a single binary file. It is also able to show the running entropy of a file allowing us to understand if we have an encrypted or compressed segment inside the binary file.
- The "dd" command, it is able to dissect a file, easily extracting part of it, or reassembling a file putting together different parts.
*** Links with additional Information ***
Channel's Author: makemehack.com/2020/02/a-short-introduction-of-…
Channel's Web Site: makemehack.com/
The sample router (Gemtek WVRTM-127ACN) on techinfodepot: en.techinfodepot.shoutwiki.com/wiki/Gemtek_WVRT…
The sample router (Gemtek WVRTM-127ACN) reverse engineered on GitHub, includes scripts to dump the EEPROM to a text file and to convert it back to binary file: github.com/digiampietro/hacking-gemtek
Canon EOS M50 firmware download page: canon.it/support/consumer_products/products/cam…
D-Link DVA-5592 firmware: media.dlink.eu/ftp/products/dva/dva-5592/driver…
adbtools2, tools to hack the DVA-5592 router: github.com/digiampietro/adbtools2
buildroot-armv7, emulation environment for the DVA-5592 router: github.com/digiampietro/buildroot-armv7
jefferson, to exctract JFFS2 file system images: github.com/sviehb/jefferson
Binwalk, a fast, easy to use tool for analyzing, reverse engineering, and extracting firmware images: github.com/ReFirmLabs/binwalk
One of the longest wikipedia article: en.wikipedia.org/wiki/List_of_mountains_of_the_…
U-Boot, The Universal Boot Loader: denx.de/wiki/U-Boot
About this tutorial
Make Me Hack published this 33:20 video tutorial on May 11, 2020. It has been watched 49,040 times on YouTube.
- Channel
- Make Me Hack
- Category
- Science & Technology
- Duration
- 33:20
- Published
- May 11, 2020
- Views
- 49,040
- Likes
- 1,794
Tags
Share
This tutorial in other languages
- FR# 05 - Comment faire pour obtenir le système de fichiers racine - Matériel Hacking Tutorial
- ES# 05 - Cómo conseguir el sistema de archivos raíz - Hardware de Hacking Tutorial
- PT# 05 - Como obter o arquivo Root System - Hardware Hacking Tutorial
- IT# 05 - Come ottenere il root file system - Hardware Hacking Tutorial
- DE# 05 - Wie man das Root-Dateisystem Get - Hardware Hacking Tutorial
- NL# 05 - How To Get The Root File System - Hardware Hacking Tutorial
- RU# 05 - Как получить корневой файловой системы - Hardware Hacking Учебник
- PL# 05 - Jak uzyskać korzenia File System - Hardware Hacking Tutorial
- JA#05 - ハードウェアハッキングチュートリアル - ルートファイルシステムを取得する方法
- AR# 05 - كيفية الحصول على نظام الملفات الجذر - الأجهزة التقطيع دروس
- HI# 05 - हार्डवेयर हैकिंग ट्यूटोरियल - कैसे रूट फाइल सिस्टम प्राप्त करने के लिए
- ID# 05 - Cara Dapatkan Root File System - Hardware Hacking Tutorial