- you are a huge fan of Hacktivity
- you bought this badge around a year ago
- you are just interested in hacker conference badge hacking.
- a computer with USB port and macOS, Linux or Windows. You can use other OS as well, but this guide covers these
- USB mini cable to connect the badge to the computer
- the Hacktivity badge from 2018
Let's get started
Linux
[267300.206966] usb 2-2.2: new full-speed USB device number 14 using uhci_hcd [267300.326484] usb 2-2.2: New USB device found, idVendor=0403, idProduct=6001 [267300.326486] usb 2-2.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [267300.326487] usb 2-2.2: Product: FT232R USB UART [267300.326488] usb 2-2.2: Manufacturer: FTDI [267300.326489] usb 2-2.2: SerialNumber: AC01U4XN [267300.558684] usbcore: registered new interface driver usbserial_generic [267300.558692] usbserial: USB Serial support registered for generic [267300.639673] usbcore: registered new interface driver ftdi_sio [267300.639684] usbserial: USB Serial support registered for FTDI USB Serial Device [267300.639713] ftdi_sio 2-2.2:1.0: FTDI USB Serial Device converter detected [267300.639741] usb 2-2.2: Detected FT232RL [267300.643235] usb 2-2.2: FTDI USB Serial Device converter now attached to ttyUSB0
macOS
# ioreg -p IOUSB -w0 -l
+-o FT232R USB UART@14100000 <class AppleUSBDevice, id 0x100005465, registered, matched, active, busy 0 (712 ms), retain 20> | { | "sessionID" = 71217335583342 | "iManufacturer" = 1 | "bNumConfigurations" = 1 | "idProduct" = 24577 | "bcdDevice" = 1536 | "Bus Power Available" = 250 | "USB Address" = 2 | "bMaxPacketSize0" = 8 | "iProduct" = 2 | "iSerialNumber" = 3 | "bDeviceClass" = 0 | "Built-In" = No | "locationID" = 336592896 | "bDeviceSubClass" = 0 | "bcdUSB" = 512 | "USB Product Name" = "FT232R USB UART" | "PortNum" = 1 | "non-removable" = "no" | "IOCFPlugInTypes" = {"9dc7b780-9ec0-11d4-a54f-000a27052861"="IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle"} | "bDeviceProtocol" = 0 | "IOUserClientClass" = "IOUSBDeviceUserClientV2" | "IOPowerManagement" = {"DevicePowerState"=0,"CurrentPowerState"=3,"CapabilityFlags"=65536,"MaxPowerState"=4,"DriverPowerState"=3} | "kUSBCurrentConfiguration" = 1 | "Device Speed" = 1 | "USB Vendor Name" = "FTDI" | "idVendor" = 1027 | "IOGeneralInterest" = "IOCommand is not serializable" | "USB Serial Number" = "AC01U4XN" | "IOClassNameOverride" = "IOUSBDevice" | }
Another way to get this information is
# system_profiler SPUSBDataTypewhich will give back something similar to:
FT232R USB UART: Product ID: 0x6001 Vendor ID: 0x0403 (Future Technology Devices International Limited) Version: 6.00 Serial Number: AC01U4XN Speed: Up to 12 Mb/sec Manufacturer: FTDI Location ID: 0x14100000 / 2 Current Available (mA): 500 Current Required (mA): 90 Extra Operating Current (mA): 0
What you are trying to achieve here is to connect to the device, but in order to connect to it, you have to know where the device in the /dev folder is mapped to. A quick and dirty solution is to list all devices under /dev when the device is disconnected, once when it is connected, and diff the outputs. For example, the following should do the job:
ls -lha /dev/tty* > plugged.txt ls -lha /dev/tty* > np.txt vimdiff plugged.txt np.txt
The result should be obvious, /dev/tty.usbserial-AC01U4XN is the new device in case macOS. In the case of Linux, it was /dev/ttyUSB0.
Linux users, read it from here. macOS users, please continue reading
Now you can use either the built-in screen command or minicom to get data out from the badge. Usually, you need three information in order to communicate with a badge. Path on /dev (you already got that), speed in baud, and the async config parameters. Either you can guess the speed or you can Google that for the specific device. Standard baud rates include 110, 300, 600, 1200, 2400, 4800, 9600, 14400, 19200, 38400, 57600, 115200, 128000 and 256000 bits per second. I usually found 1200, 9600 and 115200 a common choice, but that is just me.Regarding the async config parameters, the default is that 8 bits are used, there is no parity bit, and 1 stop bit is used. The short abbreviation for this is 8n1. In the next example, you will use the screen command. By default, it uses 8n1, but it is called cs8 to confuse the beginners.
If you type:
# screen /dev/tty.usbserial-AC01U4XN 9600
or
# screen /dev/ttyUSB0 9600
and wait for minutes and nothing happens, it is because the badge already tried to communicate via the USB port, but no-one was listening there. Disconnect the badge from the computer, connect again, and type the screen command above to connect. If you are quick enough you can see that the amber LED will stop blinking and your screen command is greeted with some interesting information. By quick enough I mean ˜90 seconds, as it takes the device 1.5 minutes to boot the OS and the CTF app.
Windows
You might check the end of the macOS section in case you can't see anything. Timing is everything.
The CTF
Welcome to the Hacktivity 2018 badge challenge! This challenge consists of several tasks with one or more levels of difficulty. They are all connected in some way or another to HW RE and there's no competition, the whole purpose is to learn things. Note: we recommend turning on local echo in your terminal! Also, feel free to ask for hints at the Hackcenter! Choose your destiny below: 1. Visual HW debugging 2. Reverse engineering 3. RF hacking 4. Crypto protection Enter the number of the challenge you're interested in and press [
I will not spoil any fun in giving out the challenge solutions here. It is still your task to find solutions for these.
But here is a catch. You can get a root shell on the device. And it is pretty straightforward. Just carefully remove the Omega shield from the badge. Now you see two jumpers; by default, these are connected together as UART1. As seen below.
- Pentest Tools Online
- Install Pentest Tools Ubuntu
- Hack Tools Github
- Hacker Tools For Ios
- Hacker Tools For Mac
- Hacker Tools Free
- Bluetooth Hacking Tools Kali
- Bluetooth Hacking Tools Kali
- Pentest Tools For Android
- Hack Tools Online
- Hacker Tools For Windows
- Hack And Tools
- Hack Tools For Games
- Underground Hacker Sites
- Hacker Tools Online
- Game Hacking
- Hacking Tools Windows 10
- Android Hack Tools Github
- Hack Rom Tools
- Pentest Tools Website
- Hacker Tools 2020
- Hacker Techniques Tools And Incident Handling
- Top Pentest Tools
- What Are Hacking Tools
- Hack And Tools
- Computer Hacker
- Pentest Tools For Ubuntu
- Hackers Toolbox
- Hacker Tools For Mac
- Hacking Tools For Beginners
- Pentest Box Tools Download
- Pentest Tools Port Scanner
- Install Pentest Tools Ubuntu
- Hacking Tools For Windows 7
- Pentest Tools Online
- Pentest Tools Alternative
- Hacker Tools Windows
- Best Hacking Tools 2019
- Hacker Search Tools
- Hack Tool Apk No Root
- Pentest Tools Apk
- Hackers Toolbox
- Wifi Hacker Tools For Windows
- Hacking Tools Pc
- Pentest Tools For Mac
- New Hacker Tools
- Game Hacking
- New Hack Tools
- Pentest Tools Github
- Best Hacking Tools 2020
- Hacking Tools Mac
- Hacking Tools Github
- Pentest Tools Website
- New Hacker Tools
- Hacker Search Tools
- Pentest Tools Free
- Hacker Tools Free Download
- Hack Tools Download
- Easy Hack Tools
- Pentest Tools Url Fuzzer
- Tools For Hacker
- Hack Tools Online
- Free Pentest Tools For Windows
- Hacking Tools For Windows
- Hacking App
- Hack Tools Download
- Tools 4 Hack
- New Hacker Tools
- Black Hat Hacker Tools
- New Hacker Tools
- Usb Pentest Tools
- World No 1 Hacker Software
- Hacker Tools Software
- Hacking Tools For Windows 7
- Hack Apps
- Hack Tools
- Hacker Tools For Ios
- Hack Tools For Games
- Hacking Tools Pc
- Pentest Tools Port Scanner
- Hacking Tools 2019
- Hacker Techniques Tools And Incident Handling
- Hacker Techniques Tools And Incident Handling
- Pentest Tools Subdomain
- How To Hack
- Pentest Tools Kali Linux
- Pentest Tools Download
- Hacker Tools For Mac
- Nsa Hack Tools
- Hacker Tools 2020
- Hack Rom Tools
- Pentest Tools Free
- Pentest Recon Tools
- Nsa Hack Tools Download
- Hacker Tools Windows
- Easy Hack Tools
- Pentest Tools Apk
- Tools 4 Hack
- Hacking Tools And Software
- Pentest Tools For Android
- Hack Tools For Mac
- Pentest Tools Subdomain
- Underground Hacker Sites
- New Hacker Tools
- Hacking Apps
- Hack Tools For Windows
- Pentest Tools Open Source
- Hacking Apps
- Hack Tools
- Hack Tools Online
- Hacking Tools And Software
- Hacking Tools Pc
- Best Pentesting Tools 2018
- Black Hat Hacker Tools
- Wifi Hacker Tools For Windows
- Underground Hacker Sites
- Pentest Tools Tcp Port Scanner
- Top Pentest Tools
- Hacker Tools Online
- Hacker Tools For Mac
- Best Hacking Tools 2019
- Hacker Tools Apk
- Hacking Apps
- Best Pentesting Tools 2018
- Hacking Tools For Beginners
- Hack Tool Apk
- Hack App
- Hacker Security Tools
- Hacking Tools For Mac
- Hacking Tools Online
- Hack Tools
- Hacking Tools 2020
- Hacking Tools Windows
- Hack Tools 2019
- Computer Hacker
- Hack Tools Mac
- Hacker Tools For Mac
- Pentest Tools Find Subdomains
- Pentest Tools Kali Linux
- Nsa Hacker Tools
- Pentest Reporting Tools
- Hack Tools For Windows
- How To Install Pentest Tools In Ubuntu
- Hacker
- Install Pentest Tools Ubuntu
- Hacking Tools For Kali Linux
- Nsa Hack Tools Download
- Hack Tools For Ubuntu
- Hacking Tools Free Download
- Tools Used For Hacking
- Hacking Tools For Windows Free Download
- Blackhat Hacker Tools
- Hacker Hardware Tools
- Pentest Tools Website
- Easy Hack Tools
- Hack Tools
- Pentest Tools Nmap
- Hacking Tools Hardware
- Usb Pentest Tools
- Hacker Tools For Pc
- Hack Tool Apk
- Top Pentest Tools
- Hacker Tools For Windows
- Hacker Tools Apk Download
- Hacker
Sem comentários:
Enviar um comentário