{"id":1815,"date":"2020-01-28T17:08:01","date_gmt":"2020-01-28T15:08:01","guid":{"rendered":"http:\/\/hacktivity.com\/?p=1815"},"modified":"2020-04-27T13:44:15","modified_gmt":"2020-04-27T11:44:15","slug":"hacktivity2019-december-badge-contest-winner","status":"publish","type":"post","link":"https:\/\/2022.hacktivity.com\/index.php\/hacktivity2019-december-badge-contest-winner\/","title":{"rendered":"Hacktivity2019 Badge Contest DECEMBER Winner!"},"content":{"rendered":"

Hi Folks, we are thrilled to announce the winner of the #Hacktivity2019<\/strong><\/em> Badge Contest in December! Dhiraj Mishra<\/strong>, one of our workshop leaders in 2019 has made the best egg for the gadget in December! Congratulations to him! We will launch a new contest for the #Hacktivity2019 badge soon!<\/p>\n

<\/p>\n

The blog post of Dhiraj can be seen below:<\/p>\n

(original source: https:\/\/www.inputzero.io\/2019\/10\/hacktivity-badge.html<\/a>)<\/p>\n

So, this year I presented my workshop on fuzzing in\u00a0Hacktivity<\/a>\u00a0which is a two day conference in Budapest, Hungary\u00a0& I had an amazing experience over there, I would personally endorse infosec geeks to be part of that conference.<\/p>\n

Nevertheless, I came across the electronic badge which was provided to every attendee in that conference and here is the introductory part of how to get started with the badge.<\/p>\n

The badge runs with the\u00a0MicroPython on ESP32 (low-power microcontroller) so you can develop apps via MicroPython and once the application is ready, you can upload it to the\u00a0Hatchery<\/a>\u00a0as an egg, and the badge will be able to download and run it.<\/p>\n\n\n\n\n
<\/a><\/td>\n<\/tr>\n
<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n
<\/div>\n

Connect your badge via USB and run `lsusb<\/b>` or something alternative of `lsusb<\/b>` in this case I have used `usb-devices<\/b>` which prints usb device details.<\/p>\n

<\/div>\n
<\/a><\/div>\n

Further I used `dmseg<\/b>` to list more details of the connected USB devices.<\/p>\n

<\/a><\/p>\n

So this gives a name of the badge which would be helpfully to connect and interact further with the badge using screen.<\/p>\n

$<\/b>\u00a0screen \/dev\/ttyACM0<\/p><\/blockquote>\n

<\/div>\n

Once you are connected a welcome message is shown,<\/p>\n

<\/a><\/div>\n

After `Enter` is touch the badge would give you main menu and setting options the badge screen is small so moving forward we would be setting up the WiFi manually via cmdline.<\/p>\n

<\/a><\/div>\n

Navigate to Settings\u00a0–><\/b>\u00a0WiFi and scan for networks, select your SSID and punch in the password.<\/p>\n

<\/a><\/div>\n

Now, every time you start your badge or perform any activity which requires WiFi it will auto select the SSID which you configured above and that’s how you download\/install apps or upgrade the badge firmware.<\/p>\n

With the help of MicroPython\u00a0wiki<\/a>\u00a0page I understood different functions for MicroPython and wrote a simple program that displays your name on badge.<\/p>\n\n\n\n\n
<\/a><\/td>\n<\/tr>\n
__init__.py<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

Register to\u00a0Hatchery<\/a>, then login and upload the above code to Hatchery under a category. In this case I uploaded this code under graphic category with the name\u00a0 `input`. The below video PoC demonstrates that under Installer section you would have different category, select any one category which fetches the egg’s from\u00a0Hatchery<\/a>\u00a0select any one of the egg and the badge will install it.<\/p>\n