GithubHelp home page GithubHelp logo

nsec / nsec-badge Goto Github PK

View Code? Open in Web Editor NEW
44.0 26.0 8.0 128.98 MB

Software from the NorthSec badge

Home Page: https://nsec.io

License: Other

Makefile 7.47% C 71.07% C++ 20.86% HTML 0.07% Roff 0.01% Game Maker Language 0.01% CMake 0.26% Assembly 0.17% Shell 0.08% Python 0.01%
arm badge microcontroller bluetooth-low-energy firmware elf hardware

nsec-badge's Introduction

NorthSec 2024 badge

Brought to you by the Team badge of NorthSec.

Overview


Hardware

The NorthSec 2024 badge is loosely based on the ESP32-S3-DevKitC-1 design with an ESP32-S3 microcontroller (ESP32-S3-WROOM-1-N8R8) which is used to drive several periphery devices:

The badge is powered through a USB-C port or through 3 AAA batteries.

If you wish to hack your badge or create a new one based on the hardware. All the information is available here.

Building the firmware

The firmware is based on the Espressif IoT Development Framework. The build system uses PlatformIO to easily manage the dependencies.

You can install it on Debian / Ubuntu in a python virtualenv with these commands:

sudo apt install python3-virtualenv

virtualenv .venv
. .venv/bin/activate

pip install platformio

The installation procedure for your OS may differ a little, please consult the PlatformIO documentation if you have any difficulties.

Once the installation is complete you can build the firmware:

# Conference firmware
pio run -e conference

# CTF firmware
pio run -e ctf

# Addon firmware
pio run -e addon

Flashing

Flash the firmware with this command:

# Conference firmware
pio run -t upload -e conference

# CTF firmware
pio run -t upload -e ctf

# Addon firmware
pio run -t upload -e addon

if multiple badges are connected, you can select which badge will be flash with the "--upload-port [port name]" option:

# Conference firmware
pio run -t upload -e conference --upload-port [port name]

To improve the upload speed, you can skip the build validation/process with the "-t nobuild" option:

# Conference firmware
pio run -t upload -t nobuild -e conference

Debugging

To read the logging statements output on the USB serial interface, it is possible to use pio device monitor or idf.py's monitor command.

However, you can use your preferred terminal emulator by pointing it to the /dev/ttyACM0 device. The badge is configured to output at 115'200 bauds, without parity, and with one stop bit per character.

Note that electrically resetting the board using the hardware switch will cause the pseudo-terminal device to disappear, making it hard to read the logs emitted during boot.

Pulsing the DTR signal (lowering it for 1 second) will cause the board to reset without affecting the pseudo-terminal device, allowing you to read early-boot messages. This is supported by most terminal emulators.

Credits

NorthSec CTF badge 2024 is brought to you by the team work of:

Special thanks to:

nsec-badge's People

Contributors

20th avatar abdelq avatar bengardiner avatar bvanheu avatar cashew22 avatar einstein- avatar frankcharby avatar jgalar avatar jmarcil avatar lle avatar macmata avatar marc-etienne avatar mjeanson avatar nicolasaubry avatar nyx0 avatar obilodeau avatar p0ns avatar simark avatar svieg avatar sylemieux avatar ylm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.