Disabling REPL on esp32 UART0

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
Geoffrey
Posts: 1
Joined: Sun Aug 30, 2020 12:12 pm

Disabling REPL on esp32 UART0

Post by Geoffrey » Mon Aug 31, 2020 8:28 am

Could someone please guide me through how to disable REPL on UART0.
My thoughts: this could be a security vulnerability on your system when deployed as someone can easily plug in a USB cable and see everything in your system
Kindly assist.

ihornehrutsa
Posts: 22
Joined: Sat Oct 26, 2019 8:38 pm

Re: Disabling REPL on esp32 UART0

Post by ihornehrutsa » Wed Oct 21, 2020 7:18 pm

Write in boot.py:

Code: Select all

from uos import dupterm
dupterm(None, 1)  # Disable REPL on UART(0)
But not ideal, if a hacker breaks the boot.py before this code, he can catch the REPR.

Post Reply